Skip to content

Instantly share code, notes, and snippets.

@iakashpaul
Last active February 17, 2024 15:50
Show Gist options
  • Save iakashpaul/2e6812a1d826aa45de5be34915b4140f to your computer and use it in GitHub Desktop.
Save iakashpaul/2e6812a1d826aa45de5be34915b4140f to your computer and use it in GitHub Desktop.
LLMs on Android Via Termux >_
pkg install -y clang wget git
git clone --branch b2144 https://github.com/ggerganov/llama.cpp
cd llama.cpp/
make
cd models
curl -L https://huggingface.co/second-state/stablelm-2-zephyr-1.6b-GGUF/resolve/main/stablelm-2-zephyr-1_6b-Q4_K_S.gguf?download=true --output stablelm2-zephyr.gguf
cd ..
./main -m ./models/stablelm2-zephyr.gguf --color --ctx_size 300 -n -1 -ins -b 100 --top_k 100 --temp 0.01 --repeat_penalty 1.3 -t 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment