Skip to content

Instantly share code, notes, and snippets.

View dohooo's full-sized avatar
🎯
Focusing

Caspian Zhao dohooo

🎯
Focusing
View GitHub Profile
@adrienbrault
adrienbrault / llama2-mac-gpu.sh
Last active December 6, 2023 08:58
Run Llama-2-13B-chat locally on your M1/M2 Mac with GPU inference. Uses 10GB RAM. UPDATE: see https://twitter.com/simonw/status/1691495807319674880?s=20
View llama2-mac-gpu.sh
# Clone llama.cpp
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
# Build it
make clean
LLAMA_METAL=1 make
# Download model
export MODEL=llama-2-13b-chat.ggmlv3.q4_0.bin
@dreamlu
dreamlu / win-ss
Last active December 6, 2023 14:48
windows终端翻墙,简易方式
View win-ss
环境:shadowsocks、windows
本地ss端口设置(这里1080)
cmd命令行:(不用socks5)(临时设置)(也可放置环境变量)
set http_proxy=http://127.0.0.1:1080
set https_proxy=http://127.0.0.1:1080
ps:一定要用cmd命令行,千万别用powershell !!!
简易测试命令:curl https://www.google.com(别用ping)