Llama cpp setup
Gh200 - setup
sudo apt-get update
sudo apt-get install ninja-build
sudo apt-get install libcurl4-openssl-dev
sudo apt-get install -y build-essential python3-dev python3-setuptools make cmake
sudo apt-get install -y ffmpeg libavcodec-dev libavfilter-dev libavformat-dev libavutil-dev
sudo apt install -y poppler-utils
mkdir dwani_org
cd dwani_org
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
cmake -B build -DGGML_CUDA=ON
cmake --build build --config Release -j2
python -m venv --system-site-packages venv
source venv/bin/activate
pip install huggingface_hub
mkdir hf_models
- gemma3
huggingface-cli download google/gemma-3-27b-it-qat-q4_0-gguf --local-dir hf_models/
./build/bin/llama-server --model hf_models/gemma-3-27b-it-q4_0.gguf --mmproj hf_models/mmproj-model-f16-27B.gguf --host 0.0.0.0 --port 9000 --n-gpu-layers 100 --threads 4 --ctx-size 4096 --batch-size 256
- qwen3
-
https://huggingface.co/Qwen/Qwen3-8B-GGUF - 8.71
huggingface-cli download Qwen/Qwen3-8B-GGUF --local-dir hf_models/ ./build/bin/llama-server --model hf_models/Qwen3-8B-Q8_0.gguf --host 0.0.0.0 --port 7880 --n-gpu-layers 100 --threads 4 --ctx-size 4096 --batch-size 256 -
https://huggingface.co/Qwen/Qwen3-14B-GGUF - 15 GB
huggingface-cli download Qwen/Qwen3-14B-GGUF --local-dir hf_models/ ./build/bin/llama-server --model hf_models/Qwen3-14B-Q8_0.gguf --host 0.0.0.0 --port 7880 --n-gpu-layers 100 --threads 4 --ctx-size 4096 --batch-size 256 -
https://huggingface.co/Qwen/Qwen3-30B-A3B-GGUF - 32 GB
huggingface-cli download Qwen/Qwen3-30B-A3B-GGUF --local-dir hf_models/
./build/bin/llama-server --model hf_models/Qwen3-30B-A3B-Q8_0.gguf --host 0.0.0.0 --port 7880 --n-gpu-layers 100 --threads 4 --ctx-size 4096 --batch-size 256
-
moondream
huggingface-cli download ggml-org/moondream2-20250414-GGUF --local-dir hf_models/ ./build/bin/llama-server --model hf_models/moondream2-text-model-f16_ct-vicuna.gguf --mmproj hf_models/moondream2-mmproj-f16-20250414.gguf --host 0.0.0.0 --port 9000 --n-gpu-layers 100 --threads 4 --ctx-size 4096 --batch-size 256 -
sarvam-m
huggingface-cli download sarvamai/sarvam-m-q8-gguf --local-dir hf_models/
./build/bin/llama-server --model hf_models/sarvam-m-q8_0.gguf --host 0.0.0.0 --port 7884 --n-gpu-layers 100 --threads 4 --ctx-size 4096 --batch-size 256
curl -X POST http://localhost:7860/v1/chat/completions\ -H "Content-Type: application/json" \ -d '{ "model": "gemma-3-12b-it", "messages": [ {"role": "user", "content": "Hello, how are you?"} ], "max_tokens": 100, "temperature": 0.7 }'
curl -X POST https://abcd.hf.space/v1/chat/completions\ -H "Content-Type: application/json" \ -d '{ "model": "gemma-3-12b-it", "messages": [ {"role": "user", "content": "Hello, how are you?"} ], "max_tokens": 100, "temperature": 0.7 }'
-
https://docs.lambda.ai/education/running-huggingface-diffusers-transformers-gh200/
-
https://lambda.ai/blog/putting-the-nvidia-gh200-grace-hopper-superchip-to-good-use-superior-inference-performance-and-economics
-
https://docs.lambda.ai/education/fine-tune-mochi-gh200/
-
https://docs.lambda.ai/public-cloud/on-demand/troubleshooting/#why-lambdas-gh200-specifications-differ-from-nvidias
pixtral
huggingface-cli download bartowski/mistral-community_pixtral-12b-GGUF --include "mistral-community_pixtral-12b-Q4_K_M.gguf" --local-dir hf_models
huggingface-cli download bartowski/mistral-community_pixtral-12b-GGUF --include "mistral-community_pixtral-12b-Q8_0.gguf" --local-dir hf_models
./build/bin/llama-server --model hf_models/mistral-community_pixtral-12b-Q8_0.gguf --mmproj hf_models/pixtral-12b-mmproj.gguf --host 0.0.0.0 --port 9000 --n-gpu-layers 100 --threads 4 --ctx-size 4096 --batch-size 256
./build/bin/llama-server --model hf_models/mistral-community_pixtral-12b-Q8_0.gguf --host 0.0.0.0 --port 9000 --n-gpu-layers 100 --threads 4 --ctx-size 4096 --batch-size 256
./build/bin/llama-server -hf ggml-org/pixtral-12b-GGUF --host 0.0.0.0 --port 9000 --n-gpu-layers 100 --threads 4 --ctx-size 4096 --batch-size 256
./build/bin/llama-server -hf ggml-org/Qwen2.5-VL-32B-Instruct-GGUF --host 0.0.0.0 --port 9000 --n-gpu-layers 100 --threads 4 --ctx-size 4096 --batch-size 256
https://github.com/ggml-org/llama.cpp/blob/master/docs/multimodal.md