Views
No views yet
| Configuration | VRAM | TPS | TTFT |
|---|---|---|---|
| GPU-only | 77.7GB | 13.8 | 730ms |
| CPU Offload | 2.8GB | 4.5 | 2,251ms |
1huggingface-cli download MikeKuykendall/phi-3.5-moe-cpu-offload-gguf \
2 --include "phi-3.5-moe-f16.gguf" \
3 --local-dir ./models1# Standard loading (requires ~80GB VRAM)
2./llama-server -m phi-3.5-moe-f16.gguf -c 4096
3
4# With MoE CPU offloading (requires ~3GB VRAM + 80GB RAM)
5./llama-server -m phi-3.5-moe-f16.gguf -c 4096 --cpu-moe1# Install Shimmy
2cargo install --git https://github.com/Michael-A-Kuykendall/shimmy --features llama-cuda
3
4# Standard loading
5shimmy serve --model phi-3.5-moe-f16.gguf
6
7# With MoE CPU offloading
8shimmy serve --model phi-3.5-moe-f16.gguf --cpu-moe
9
10# Query the API
11curl http://localhost:11435/api/generate \
12 -d '{
13 "model": "phi-3.5-moe",
14 "prompt": "Explain mixture of experts in simple terms",
15 "max_tokens": 256,
16 "stream": false
17 }'<|system|>
You are a helpful assistant.<|end|>
<|user|>
Your question here<|end|>
<|assistant|>1@techreport{abdin2024phi,
2 title={Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phone},
3 author={Abdin, Marah and others},
4 year={2024},
5 institution={Microsoft}
6}