Instructions to use AngelSlim/Hy4-flash-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 AngelSlim/Hy4-flash-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 AngelSlim/Hy4-flash-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf AngelSlim/Hy4-flash-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf AngelSlim/Hy4-flash-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf AngelSlim/Hy4-flash-GGUF: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 AngelSlim/Hy4-flash-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf AngelSlim/Hy4-flash-GGUF:Q4_K_M
Use Docker
docker model run hf.co/AngelSlim/Hy4-flash-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use AngelSlim/Hy4-flash-GGUF with Ollama:
ollama run hf.co/AngelSlim/Hy4-flash-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use AngelSlim/Hy4-flash-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AngelSlim/Hy4-flash-GGUF: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": "AngelSlim/Hy4-flash-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use AngelSlim/Hy4-flash-GGUF with Docker Model Runner:
docker model run hf.co/AngelSlim/Hy4-flash-GGUF:Q4_K_M
- Lemonade
How to use AngelSlim/Hy4-flash-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull AngelSlim/Hy4-flash-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Hy4-flash-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use AngelSlim/Hy4-flash-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AngelSlim/Hy4-flash-GGUF: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 AngelSlim/Hy4-flash-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use AngelSlim/Hy4-flash-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AngelSlim/Hy4-flash-GGUF: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 "AngelSlim/Hy4-flash-GGUF: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"
Update README_MAC-Metal.md
Browse files140 unmodified lines1411421431441451461471481491501511521531541551561571582 unmodified lines161162163164165166167138 unmodified lines3063073083093103113123133143153163173183193203213223232 unmodified lines326327328329330331332140 unmodified lines### 7. Measured results#### 7.1 AR (this patch, K=0)128 GB Apple silicon, Metal, `Q4_K_M`, real agent prompts, 2 warm-up rounds discarded, ±1 tok/s between rounds.| Scenario | Before | After ||---|---|---|| decode, 48k greedy | 31.76 tok/s | 37.2 tok/s || decode, 64k, default sampling | 32.06 tok/s | 36.9 tok/s || prefill, `llama-bench` pp4096 | 353 tok/s | 774 tok/s || prefill, server 2k / 16k | 483 tok/s | 764 / 641 tok/s |#### 7.2 MTP (shipped draft block)From the [AngelSlim/Hy4-flash-GGUF model card](https://huggingface.co/AngelSlim/Hy4-flash-GGUF), 128 GB Mac M5 Max, Metal:2 unmodified lines| Q4_K_M | 629.8 / 448.1 / 418.6 | 48.13 / 45.18 / 44.15 || Q3_K | 743.2 / 563.0 / 520.6 | 50.34 / 49.47 / 47.37 |#### 7.3 DFly (this patch)128 GB Apple silicon, Metal, `Q4_K_M`, real agent prompt, K=4, B=8, greedy.138 unmodified lines### 7. 实测结果#### 7.1 AR(本 patch,K=0)128 GB 统一内存 Apple silicon,Metal,`Q4_K_M`,真实 agent prompt,丢弃前两轮预热,±1 tok/s 波动。| 场景 | 之前 | 之后 ||---|---|---|| decode,48k,greedy | 31.76 tok/s | 37.2 tok/s || decode,64k,默认采样 | 32.06 tok/s | 36.9 tok/s || prefill,`llama-bench` pp4096 | 353 tok/s | 774 tok/s || prefill,server 2k / 16k | 483 tok/s | 764 / 641 tok/s |#### 7.2 MTP(自带草稿块)来自 [AngelSlim/Hy4-flash-GGUF 模型主页](https://huggingface.co/AngelSlim/Hy4-flash-GGUF),128 GB Mac M5 Max,Metal:2 unmodified lines| Q4_K_M | 629.8 / 448.1 / 418.6 | 48.13 / 45.18 / 44.15 || Q3_K | 743.2 / 563.0 / 520.6 | 50.34 / 49.47 / 47.37 |#### 7.3 DFly(本 patch)128 GB Apple silicon,Metal,`Q4_K_M`,真实 agent prompt,K=4,B=8,greedy。140 unmodified lines1411421431441451461472 unmodified lines150151152153154155156138 unmodified lines2952962972982993003012 unmodified lines304305306307308309310140 unmodified lines### 7. Measured results#### 7.1 MTP (shipped draft block)From the [AngelSlim/Hy4-flash-GGUF model card](https://huggingface.co/AngelSlim/Hy4-flash-GGUF), 128 GB Mac M5 Max, Metal:2 unmodified lines| Q4_K_M | 629.8 / 448.1 / 418.6 | 48.13 / 45.18 / 44.15 || Q3_K | 743.2 / 563.0 / 520.6 | 50.34 / 49.47 / 47.37 |#### 7.2 DFly (this patch)128 GB Apple silicon, Metal, `Q4_K_M`, real agent prompt, K=4, B=8, greedy.138 unmodified lines### 7. 实测结果#### 7.1 MTP(自带草稿块)来自 [AngelSlim/Hy4-flash-GGUF 模型主页](https://huggingface.co/AngelSlim/Hy4-flash-GGUF),128 GB Mac M5 Max,Metal:2 unmodified lines| Q4_K_M | 629.8 / 448.1 / 418.6 | 48.13 / 45.18 / 44.15 || Q3_K | 743.2 / 563.0 / 520.6 | 50.34 / 49.47 / 47.37 |#### 7.2 DFly(本 patch)128 GB Apple silicon,Metal,`Q4_K_M`,真实 agent prompt,K=4,B=8,greedy。
README_MAC-Metal.md+4-26