Instructions to use MikeKuykendall/phi-3.5-moe-cpu-offload-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use MikeKuykendall/phi-3.5-moe-cpu-offload-gguf with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf MikeKuykendall/phi-3.5-moe-cpu-offload-gguf:F16 # Run inference directly in the terminal: llama cli -hf MikeKuykendall/phi-3.5-moe-cpu-offload-gguf:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf MikeKuykendall/phi-3.5-moe-cpu-offload-gguf:F16 # Run inference directly in the terminal: llama cli -hf MikeKuykendall/phi-3.5-moe-cpu-offload-gguf:F16
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf MikeKuykendall/phi-3.5-moe-cpu-offload-gguf:F16 # Run inference directly in the terminal: ./llama-cli -hf MikeKuykendall/phi-3.5-moe-cpu-offload-gguf:F16
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf MikeKuykendall/phi-3.5-moe-cpu-offload-gguf:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf MikeKuykendall/phi-3.5-moe-cpu-offload-gguf:F16
Use Docker
docker model run hf.co/MikeKuykendall/phi-3.5-moe-cpu-offload-gguf:F16
- LM Studio
- Jan
- vLLM
How to use MikeKuykendall/phi-3.5-moe-cpu-offload-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MikeKuykendall/phi-3.5-moe-cpu-offload-gguf" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MikeKuykendall/phi-3.5-moe-cpu-offload-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/MikeKuykendall/phi-3.5-moe-cpu-offload-gguf:F16
- Ollama
How to use MikeKuykendall/phi-3.5-moe-cpu-offload-gguf with Ollama:
ollama run hf.co/MikeKuykendall/phi-3.5-moe-cpu-offload-gguf:F16
- Unsloth Desktop
- Docker Model Runner
How to use MikeKuykendall/phi-3.5-moe-cpu-offload-gguf with Docker Model Runner:
docker model run hf.co/MikeKuykendall/phi-3.5-moe-cpu-offload-gguf:F16
- Lemonade
How to use MikeKuykendall/phi-3.5-moe-cpu-offload-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull MikeKuykendall/phi-3.5-moe-cpu-offload-gguf:F16
Run and chat with the model
lemonade run user.phi-3.5-moe-cpu-offload-gguf-F16
List all available models
lemonade list
- Atomic Chat
Phi-3.5-MoE Instruct - F16 GGUF with MoE CPU Offloading Support
F16 GGUF conversion of microsoft/Phi-3.5-MoE-instruct with Rust bindings for llama.cpp's MoE CPU offloading functionality.
Model Details
- Base Model: microsoft/Phi-3.5-MoE-instruct
- Format: GGUF F16 precision
- File Size: 79GB
- Parameters: 41.9B total (6.6B active per token)
- Architecture: 32 layers, 16 experts per layer, 2 active experts per token
- Context Length: 131K tokens
- Converted by: MikeKuykendall
MoE CPU Offloading
This model supports MoE CPU offloading via llama.cpp (implemented in PR #15077). Shimmy provides Rust bindings for this functionality, enabling:
- VRAM Reduction: 96.5% (77.7GB → 2.8GB measured on GH200)
- Performance Trade-off: 3.1x slower generation (13.8 → 4.5 TPS)
- Use Case: Running 42B parameter MoE on consumer GPUs (<10GB VRAM)
Controlled Baseline (NVIDIA GH200, N=3)
| Configuration | VRAM | TPS | TTFT |
|---|---|---|---|
| GPU-only | 77.7GB | 13.8 | 730ms |
| CPU Offload | 2.8GB | 4.5 | 2,251ms |
Trade-off: Memory for speed. Best for VRAM-constrained scenarios where generation speed is less critical than model size.
Download
huggingface-cli download MikeKuykendall/phi-3.5-moe-cpu-offload-gguf \
--include "phi-3.5-moe-f16.gguf" \
--local-dir ./models
Usage
llama.cpp (CPU Offloading)
# Standard loading (requires ~80GB VRAM)
./llama-server -m phi-3.5-moe-f16.gguf -c 4096
# With MoE CPU offloading (requires ~3GB VRAM + 80GB RAM)
./llama-server -m phi-3.5-moe-f16.gguf -c 4096 --cpu-moe
Shimmy (Rust Bindings)
# Install Shimmy
cargo install --git https://github.com/Michael-A-Kuykendall/shimmy --features llama-cuda
# Standard loading
shimmy serve --model phi-3.5-moe-f16.gguf
# With MoE CPU offloading
shimmy serve --model phi-3.5-moe-f16.gguf --cpu-moe
# Query the API
curl http://localhost:11435/api/generate \
-d '{
"model": "phi-3.5-moe",
"prompt": "Explain mixture of experts in simple terms",
"max_tokens": 256,
"stream": false
}'
Prompt Format
<|system|>
You are a helpful assistant.<|end|>
<|user|>
Your question here<|end|>
<|assistant|>
Performance Notes
Standard GPU Loading:
- VRAM: 77.7GB
- Speed: 13.8 TPS
- Latency: 730ms TTFT
- Use when: VRAM is plentiful, speed is critical
CPU Offloading:
- VRAM: 2.8GB (96.5% reduction)
- Speed: 4.5 TPS (3.1x slower)
- Latency: 2,251ms TTFT
- Use when: Limited VRAM, speed less critical
Original Model
- Developers: Microsoft
- License: MIT
- Paper: Phi-3 Technical Report
- Blog: Phi-3.5-MoE Announcement
Technical Validation
Full validation report with controlled baselines: Shimmy MoE CPU Offloading Technical Report
Citation
@techreport{abdin2024phi,
title={Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phone},
author={Abdin, Marah and others},
year={2024},
institution={Microsoft}
}
GGUF conversion and MoE offloading validation by MikeKuykendall
- Downloads last month
- 28
16-bit
Model tree for MikeKuykendall/phi-3.5-moe-cpu-offload-gguf
Base model
microsoft/Phi-3.5-MoE-instruct