Instructions to use nace-ai/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 nace-ai/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 nace-ai/Hy4-flash-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf nace-ai/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 nace-ai/Hy4-flash-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf nace-ai/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 nace-ai/Hy4-flash-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf nace-ai/Hy4-flash-GGUF:Q4_K_M
Use Docker
docker model run hf.co/nace-ai/Hy4-flash-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use nace-ai/Hy4-flash-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nace-ai/Hy4-flash-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": "nace-ai/Hy4-flash-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/nace-ai/Hy4-flash-GGUF:Q4_K_M
- Ollama
How to use nace-ai/Hy4-flash-GGUF with Ollama:
ollama run hf.co/nace-ai/Hy4-flash-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use nace-ai/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 nace-ai/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": "nace-ai/Hy4-flash-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use nace-ai/Hy4-flash-GGUF with Docker Model Runner:
docker model run hf.co/nace-ai/Hy4-flash-GGUF:Q4_K_M
- Lemonade
How to use nace-ai/Hy4-flash-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull nace-ai/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 nace-ai/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 nace-ai/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 nace-ai/Hy4-flash-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use nace-ai/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 nace-ai/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 "nace-ai/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"
We introduce Hy4 flash GGUF from Nace.AI: Tencent's Hy4-flash in four GGUF sizes, starting at 87.8 GB and 3.21 bits per weight.
Results
37 measured Hy4-flash variants on the same 11 texts, 5,621 scored tokens. Chart sizes use text-weight payload, including required Engram tables, excluding vision/MTP. Complete weight-file sizes and exact scores are in the comparison data.
| GGUF | Bits per weight | Download size | LiveCodeBench |
|---|---|---|---|
| IQ3_XXS | 3.21 | 87.8 GB | 39/100 |
| Q3_K_M | 3.9 | 107.49 GB | |
| Q3_K_M-norm096 | 3.9 | 107.49 GB | |
| IQ4_XS-4.48bpw | 4.48 | 122.58 GB | |
| Q4_K_M | 4.6 | 127.22 GB |
IQ3_XXS has lower KL than AtomicChat's 84.7 GB IQ2 file on these texts. KL divergence measures how far the next-token probabilities are from the native Hy4-flash. Lower is closer.
IQ4_XS-4.48bpw has the lowest KL of every measured file at its size or smaller.
Q3_K_M-norm096 is the same size as Q3_K_M with different weight scaling: all 41 routed down-expert tensors are multiplied by 1.03 and the output norm by 0.96, where Q3_K_M scales the output norm by 0.95. On the same 11 texts its mean KL is 0.195, below 0.237, the line between AtomicChat's 84.7 GB file and Xylolabs' 114.2 GB file at its size. It is not in the chart above.
Nace Weight Space Quantization
Precision goes where Hy4-flash needs it.
Nace Weight Space Quantization assigns precision by weight class and rebalances weights before compression. The IQ3_XXS variant stores its Engram lookup table as Q4_0. Q3_K_M and Q4_K_M store it as IQ4_NL. IQ4_XS-4.48bpw is requantized from Q8, retaining higher-precision tensors and an IQ4_NL Engram table.
Run it
Use Little0o0/llama.cpp at 0a054d0, the CUDA build used for the IQ3_XXS LiveCodeBench run.
hf download nace-ai/Hy4-flash-GGUF \
IQ3_XXS/Hy4-flash-IQ3_XXS.gguf --local-dir models
git clone https://github.com/Little0o0/llama.cpp.git hy4-llama.cpp
git -C hy4-llama.cpp checkout \
0a054d0b02454c998e068381d15f3f6615bdd987
cmake -S hy4-llama.cpp -B hy4-llama.cpp/build \
-DGGML_CUDA=ON -DCMAKE_BUILD_TYPE=Release
cmake --build hy4-llama.cpp/build --target llama-cli -j
hy4-llama.cpp/build/bin/llama-cli \
-m models/IQ3_XXS/Hy4-flash-IQ3_XXS.gguf \
-c 4096 -ngl 999 -n 32 --temp 0 --top-k 1 -s 1 \
-st --simple-io --no-display-prompt --no-warmup \
--chat-template-kwargs '{"reasoning_effort":"no_think"}' \
-p "Name three primary colors."
IQ3_XXS is one file, including its Engram table. For Q3_K_M or Q4_K_M, download Hy4-flash-Q3_K_M-*.gguf or Hy4-flash-Q4_K_M-*.gguf from this repo and pass the first shard to llama-cli. It loads the other two shards from the same folder.
For Q3_K_M-norm096, download the three shards from its folder and pass the first shard to llama-cli.
For IQ4_XS-4.48bpw, download all GGUF shards from its folder and pass the first shard to llama-cli. Keep all shards in the same folder.
License
Tencent Hy License, Version 1.0, including its Section 10 commercial terms for large Model-as-a-Service operators. See also NOTICE and MODIFICATIONS.md.
- Downloads last month
- 4,944
3-bit
4-bit
Model tree for nace-ai/Hy4-flash-GGUF
Base model
tencent/Hy4-flash