Instructions to use magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-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 magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-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 magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-GGUF:Q8_0 # Run inference directly in the terminal: llama cli -hf magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-GGUF:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-GGUF:Q8_0 # Run inference directly in the terminal: llama cli -hf magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-GGUF:Q8_0
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 magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-GGUF:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-GGUF:Q8_0
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 magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-GGUF:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-GGUF:Q8_0
Use Docker
docker model run hf.co/magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-GGUF:Q8_0
- LM Studio
- Jan
- vLLM
How to use magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-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": "magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-GGUF:Q8_0
- Ollama
How to use magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-GGUF with Ollama:
ollama run hf.co/magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-GGUF:Q8_0
- Unsloth Studio
How to use magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-GGUF to start chatting
- Pi
How to use magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-GGUF:Q8_0
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:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-GGUF:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-GGUF with Docker Model Runner:
docker model run hf.co/magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-GGUF:Q8_0
- Lemonade
How to use magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-GGUF:Q8_0
Run and chat with the model
lemonade run user.Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-GGUF-Q8_0
List all available models
lemonade list
- Hermes Agent
How to use magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-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 magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-GGUF:Q8_0
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:8080/v1 hermes config set model.default magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-GGUF:Q8_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-GGUF:Q8_0
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:8080/v1 \ --custom-model-id "magiccodingman/Granite-4.0-H-350M-Unsloth-MagicQuant-Hybrid-GGUF:Q8_0" \ --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"
Read me updated
Browse files|
@@ -1,3 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# MagicQuant GGUF Hybrids - granite 4.0 h 350m unsloth
|
| 2 |
|
| 3 |
> **MagicQuant is an automated quantization, benchmarking, and evolutionary hybrid-GGUF search system for LLMs.**
|
|
@@ -11,24 +29,21 @@ These hybrid GGUFs are built to be as small, fast, and low-drift as possible whi
|
|
| 11 |
To dive deeper into how MagicQuant works, see the main repo:
|
| 12 |
[MagicQuant on GitHub (by MagicCodingMan)](https://github.com/magiccodingman)
|
| 13 |
|
|
|
|
|
|
|
| 14 |
### Table - File Size + TPS + Avg Precision Loss
|
| 15 |
|
| 16 |
| model_name | file_size_gb | bench_tps | avg_prec_loss |
|
| 17 |
| ---------- | ------------ | --------- | ------------- |
|
| 18 |
| [mxfp4_moe-EKUD:B16-O:Q6K-Q:Q8_0](./../../resolve/main/granite-4.0-h-350m-unsloth-mxfp4_moe-EKUD:B16-O:Q6K-Q:Q8_0.gguf?download=true) | 0.54 | 1705.35 | 0.0816 |
|
| 19 |
| [mxfp4_moe-O:Q6K-EQKUD:Q8_0](./../../resolve/main/granite-4.0-h-350m-unsloth-mxfp4_moe-O:Q6K-EQKUD:Q8_0.gguf?download=true) | 0.34 | 1605.97 | 0.2555 |
|
| 20 |
-
| [mxfp4_moe-O:Q5K-Q:Q6K-EKUD:Q8_0](./../../resolve/main/granite-4.0-h-350m-unsloth-mxfp4_moe-O:Q5K-Q:Q6K-EKUD:Q8_0.gguf?download=true) | 0.34 | 1626.49 | 0.2776 |
|
| 21 |
-
| [mxfp4_moe-QKO:Q6K-EUD:Q8_0](./../../resolve/main/granite-4.0-h-350m-unsloth-mxfp4_moe-QKO:Q6K-EUD:Q8_0.gguf?download=true) | 0.34 | 1642.13 | 0.3407 |
|
| 22 |
|
| 23 |
### Table - PPL Columns
|
| 24 |
|
| 25 |
| model_name | gen | gen_er | code | code_er | math | math_er |
|
| 26 |
| ---------- | --- | ------ | ---- | ------- | ---- | ------- |
|
| 27 |
| [mxfp4_moe-EKUD:B16-O:Q6K-Q:Q8_0](./../../resolve/main/granite-4.0-h-350m-unsloth-mxfp4_moe-EKUD:B16-O:Q6K-Q:Q8_0.gguf?download=true) | 18.1560 | 0.4667 | 1.9548 | 0.0175 | 10.2986 | 0.2319 |
|
| 28 |
-
| [mxfp4_moe-O:Q6K-EQKUD:Q8_0](./../../resolve/main/granite-4.0-h-350m-unsloth-mxfp4_moe-O:Q6K-EQKUD:Q8_0.gguf?download=true) | 18.2304 | 0.4691 | 1.9555 | 0.0175 | 10.3074 | 0.2320
|
| 29 |
-
| [mxfp4_moe-O:Q5K-Q:Q6K-EKUD:Q8_0](./../../resolve/main/granite-4.0-h-350m-unsloth-mxfp4_moe-O:Q5K-Q:Q6K-EKUD:Q8_0.gguf?download=true) | 18.2468 | 0.4695 | 1.9583 | 0.0176 | 10.2902 | 0.2312 |
|
| 30 |
-
| [mxfp4_moe-QKO:Q6K-EUD:Q8_0](./../../resolve/main/granite-4.0-h-350m-unsloth-mxfp4_moe-QKO:Q6K-EUD:Q8_0.gguf?download=true) | 18.2573 | 0.4696 | 1.9580 | 0.0175 | 10.3053 | 0.2318 |
|
| 31 |
-
| [Q5_K](./../../resolve/main/granite-4.0-h-350m-unsloth-Q5_K.gguf?download=true) | 18.9974 | 0.4899 | 1.9842 | 0.0180 | 10.5335 | 0.2365 |
|
| 32 |
|
| 33 |
### Table - Precision Loss Columns
|
| 34 |
|
|
@@ -36,9 +51,6 @@ To dive deeper into how MagicQuant works, see the main repo:
|
|
| 36 |
| ---------- | ------------ | --------- | --------- |
|
| 37 |
| [mxfp4_moe-EKUD:B16-O:Q6K-Q:Q8_0](./../../resolve/main/granite-4.0-h-350m-unsloth-mxfp4_moe-EKUD:B16-O:Q6K-Q:Q8_0.gguf?download=true) | 0.1368 | 0.0051 | 0.1030 |
|
| 38 |
| [mxfp4_moe-O:Q6K-EQKUD:Q8_0](./../../resolve/main/granite-4.0-h-350m-unsloth-mxfp4_moe-O:Q6K-EQKUD:Q8_0.gguf?download=true) | 0.5471 | 0.0307 | 0.1886 |
|
| 39 |
-
| [mxfp4_moe-O:Q5K-Q:Q6K-EKUD:Q8_0](./../../resolve/main/granite-4.0-h-350m-unsloth-mxfp4_moe-O:Q5K-Q:Q6K-EKUD:Q8_0.gguf?download=true) | 0.6376 | 0.1739 | 0.0214 |
|
| 40 |
-
| [mxfp4_moe-QKO:Q6K-EUD:Q8_0](./../../resolve/main/granite-4.0-h-350m-unsloth-mxfp4_moe-QKO:Q6K-EUD:Q8_0.gguf?download=true) | 0.6955 | 0.1586 | 0.1682 |
|
| 41 |
-
| [Q5_K](./../../resolve/main/granite-4.0-h-350m-unsloth-Q5_K.gguf?download=true) | 4.7774 | 1.4988 | 2.3863 |
|
| 42 |
|
| 43 |
---
|
| 44 |
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
tags:
|
| 4 |
+
- mxfp4_hybrid
|
| 5 |
+
- gguf
|
| 6 |
+
- text-generation
|
| 7 |
+
- quantized
|
| 8 |
+
- cpu
|
| 9 |
+
- gpu
|
| 10 |
+
- mxfp4
|
| 11 |
+
- mxfp4_moe
|
| 12 |
+
- qwen3
|
| 13 |
+
- magicquant
|
| 14 |
+
- magic_quant
|
| 15 |
+
base_model:
|
| 16 |
+
- unsloth/granite-4.0-350m
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
# MagicQuant GGUF Hybrids - granite 4.0 h 350m unsloth
|
| 20 |
|
| 21 |
> **MagicQuant is an automated quantization, benchmarking, and evolutionary hybrid-GGUF search system for LLMs.**
|
|
|
|
| 29 |
To dive deeper into how MagicQuant works, see the main repo:
|
| 30 |
[MagicQuant on GitHub (by MagicCodingMan)](https://github.com/magiccodingman)
|
| 31 |
|
| 32 |
+
> **IMPORTANT NOTE:** Due to this model being so small. The test was significantly stricter in what precision loss was allowed.
|
| 33 |
+
|
| 34 |
### Table - File Size + TPS + Avg Precision Loss
|
| 35 |
|
| 36 |
| model_name | file_size_gb | bench_tps | avg_prec_loss |
|
| 37 |
| ---------- | ------------ | --------- | ------------- |
|
| 38 |
| [mxfp4_moe-EKUD:B16-O:Q6K-Q:Q8_0](./../../resolve/main/granite-4.0-h-350m-unsloth-mxfp4_moe-EKUD:B16-O:Q6K-Q:Q8_0.gguf?download=true) | 0.54 | 1705.35 | 0.0816 |
|
| 39 |
| [mxfp4_moe-O:Q6K-EQKUD:Q8_0](./../../resolve/main/granite-4.0-h-350m-unsloth-mxfp4_moe-O:Q6K-EQKUD:Q8_0.gguf?download=true) | 0.34 | 1605.97 | 0.2555 |
|
|
|
|
|
|
|
| 40 |
|
| 41 |
### Table - PPL Columns
|
| 42 |
|
| 43 |
| model_name | gen | gen_er | code | code_er | math | math_er |
|
| 44 |
| ---------- | --- | ------ | ---- | ------- | ---- | ------- |
|
| 45 |
| [mxfp4_moe-EKUD:B16-O:Q6K-Q:Q8_0](./../../resolve/main/granite-4.0-h-350m-unsloth-mxfp4_moe-EKUD:B16-O:Q6K-Q:Q8_0.gguf?download=true) | 18.1560 | 0.4667 | 1.9548 | 0.0175 | 10.2986 | 0.2319 |
|
| 46 |
+
| [mxfp4_moe-O:Q6K-EQKUD:Q8_0](./../../resolve/main/granite-4.0-h-350m-unsloth-mxfp4_moe-O:Q6K-EQKUD:Q8_0.gguf?download=true) | 18.2304 | 0.4691 | 1.9555 | 0.0175 | 10.3074 | 0.2320
|
|
|
|
|
|
|
|
|
|
| 47 |
|
| 48 |
### Table - Precision Loss Columns
|
| 49 |
|
|
|
|
| 51 |
| ---------- | ------------ | --------- | --------- |
|
| 52 |
| [mxfp4_moe-EKUD:B16-O:Q6K-Q:Q8_0](./../../resolve/main/granite-4.0-h-350m-unsloth-mxfp4_moe-EKUD:B16-O:Q6K-Q:Q8_0.gguf?download=true) | 0.1368 | 0.0051 | 0.1030 |
|
| 53 |
| [mxfp4_moe-O:Q6K-EQKUD:Q8_0](./../../resolve/main/granite-4.0-h-350m-unsloth-mxfp4_moe-O:Q6K-EQKUD:Q8_0.gguf?download=true) | 0.5471 | 0.0307 | 0.1886 |
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
---
|
| 56 |
|