Skip to content

Instantly share code, notes, and snippets.

View bobmayuze's full-sized avatar
🤟
Exploring the future

Yuze Ma bobmayuze

🤟
Exploring the future
View GitHub Profile
@bobmayuze
bobmayuze / main.py
Last active July 23, 2024 22:46
llama3 405B Hosted by Lepton AI for Emergency Llama 3.1 Hacknight
import os
import openai
client = openai.OpenAI(
base_url="https://llama3-405b-hackathon.lepton.run/api/v1/",
# Get your token from lepton.ai under Settings -> Tokens -> Workspace Token
api_key="YOUR_LEPTONAI_TOKEN"
)
completion = client.chat.completions.create(
@bobmayuze
bobmayuze / DOCKERFILE
Created June 19, 2024 02:12
Dockerfile with conda setup
ARG CUDA_VERSION=12.1.0
ARG CUDNN_VERSION=8
ARG UBUNTU_VERSION=22.04
FROM nvcr.io/nvidia/cuda:${CUDA_VERSION}-cudnn${CUDNN_VERSION}-devel-ubuntu${UBUNTU_VERSION}
WORKDIR /workspace
RUN apt update
RUN apt install wget openssh-server -y
@bobmayuze
bobmayuze / DOCKERFILE
Created June 12, 2024 00:27
Dockerfile for CUDA + Conda + Ubuntu
ARG CUDA_VERSION=12.1.0
ARG CUDNN_VERSION=8
ARG UBUNTU_VERSION=22.04
FROM nvcr.io/nvidia/cuda:${CUDA_VERSION}-cudnn${CUDNN_VERSION}-devel-ubuntu${UBUNTU_VERSION}
WORKDIR /workspace
RUN apt update
RUN apt install wget openssh-server -y
@bobmayuze
bobmayuze / tmux-cheatsheet.markdown
Created November 8, 2018 02:24 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@bobmayuze
bobmayuze / README.md
Created November 9, 2017 23:32 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet