Text Generation
GGUF
Spanish
English
Mixture of Experts
sparse-upcycling
phi4
edge-ai
ufs-streaming
hot-warm-cold
kaze
mit
conversational
Instructions to use shebxyd/Kaze-Phi4-MoE-MIT 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 shebxyd/Kaze-Phi4-MoE-MIT 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 shebxyd/Kaze-Phi4-MoE-MIT:Q4_K_M # Run inference directly in the terminal: llama cli -hf shebxyd/Kaze-Phi4-MoE-MIT:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf shebxyd/Kaze-Phi4-MoE-MIT:Q4_K_M # Run inference directly in the terminal: llama cli -hf shebxyd/Kaze-Phi4-MoE-MIT:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf shebxyd/Kaze-Phi4-MoE-MIT:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf shebxyd/Kaze-Phi4-MoE-MIT:Q4_K_M
Use Docker
docker model run hf.co/shebxyd/Kaze-Phi4-MoE-MIT:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use shebxyd/Kaze-Phi4-MoE-MIT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "shebxyd/Kaze-Phi4-MoE-MIT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "shebxyd/Kaze-Phi4-MoE-MIT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/shebxyd/Kaze-Phi4-MoE-MIT:Q4_K_M
- Ollama
How to use shebxyd/Kaze-Phi4-MoE-MIT with Ollama:
ollama run hf.co/shebxyd/Kaze-Phi4-MoE-MIT:Q4_K_M
- Unsloth Desktop
- Pi
How to use shebxyd/Kaze-Phi4-MoE-MIT with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf shebxyd/Kaze-Phi4-MoE-MIT:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "shebxyd/Kaze-Phi4-MoE-MIT:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use shebxyd/Kaze-Phi4-MoE-MIT with Docker Model Runner:
docker model run hf.co/shebxyd/Kaze-Phi4-MoE-MIT:Q4_K_M
- Lemonade
How to use shebxyd/Kaze-Phi4-MoE-MIT with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull shebxyd/Kaze-Phi4-MoE-MIT:Q4_K_M
Run and chat with the model
lemonade run user.Kaze-Phi4-MoE-MIT-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use shebxyd/Kaze-Phi4-MoE-MIT with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf shebxyd/Kaze-Phi4-MoE-MIT:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default shebxyd/Kaze-Phi4-MoE-MIT:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use shebxyd/Kaze-Phi4-MoE-MIT with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf shebxyd/Kaze-Phi4-MoE-MIT:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "shebxyd/Kaze-Phi4-MoE-MIT:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Kaze-Phi4-MoE-MIT
Kaze-Phi4-MoE-MIT aplica Sparse Upcycling sin pérdida sobre microsoft/Phi-4-mini-instruct (3.8B, licencia MIT), añadiendo 6 expertos enrutados (top_k = 2) por capa con arquitectura de memoria Hot / Warm / Cold optimizada para streaming UFS en el ecosistema Proyecto Kofu (Kofu_Mobile).
Arquitectura Hot / Warm / Cold
- HOT (RAM residente, congelado):
microsoft/Phi-4-mini-instruct(3.837Bparams,~2.30 GBenQ4_K_M) + Routers lineales por capa. - WARM (LRU RAM) / COLD (UFS streaming):
6expertos enrutados por capa (bottleneck = 64,75.5Mparams totales =152.2 MBenBF16/~45.3 MBenQ4_K_M). - Balanceo Aux-Loss-Free: Distribución verificada
[15.8%, 17.7%, 17.8%, 16.7%, 15.4%, 16.6%](desviación ±1.3%).
Resultados de Prueba de Presión (10 tests automatizados no vistos)
- Código Python ejecutable (
exec+assert): 4 / 4 (100%) - Aritmética y Finanzas (
Kofu_Mobile): 4 / 5 (80%) (0 alucinaciones) - Contexto largo (Aguja en Pajar a
1,597tokens): 1 / 1 (100%) (pico VRAM+364 MBKV-cache) - Score total: 9 / 10 (90%) con 0% olvido catastrófico respecto al modelo base.
Archivos
kaze_phi4_moe_routed_experts.safetensors(152.2 MB,BF16) — pesos de routers + 6 expertos enrutados × 32 capas.hot_warm_cold_manifest.json— metadatos de partición Hot / Warm / Cold para UFS.
- Downloads last month
- 47
Hardware compatibility
Log In to add your hardware
4-bit
Model tree for shebxyd/Kaze-Phi4-MoE-MIT
Base model
microsoft/Phi-4-mini-instruct