Grok
GGUF
granite
granite-4.0-h-1b
distillation
sft
coding
code-generation
math
reasoning
instruction-following
hybrid-mamba-2
local-llm
edge-ai
conversational
en
Instructions to use ITLL/IBM-Grok4-UltraFast-Coder-1B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Grok
How to use ITLL/IBM-Grok4-UltraFast-Coder-1B-GGUF with Grok:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use ITLL/IBM-Grok4-UltraFast-Coder-1B-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 ITLL/IBM-Grok4-UltraFast-Coder-1B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf ITLL/IBM-Grok4-UltraFast-Coder-1B-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 ITLL/IBM-Grok4-UltraFast-Coder-1B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf ITLL/IBM-Grok4-UltraFast-Coder-1B-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 ITLL/IBM-Grok4-UltraFast-Coder-1B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf ITLL/IBM-Grok4-UltraFast-Coder-1B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/ITLL/IBM-Grok4-UltraFast-Coder-1B-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use ITLL/IBM-Grok4-UltraFast-Coder-1B-GGUF with Ollama:
ollama run hf.co/ITLL/IBM-Grok4-UltraFast-Coder-1B-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use ITLL/IBM-Grok4-UltraFast-Coder-1B-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ITLL/IBM-Grok4-UltraFast-Coder-1B-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": "ITLL/IBM-Grok4-UltraFast-Coder-1B-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use ITLL/IBM-Grok4-UltraFast-Coder-1B-GGUF with Docker Model Runner:
docker model run hf.co/ITLL/IBM-Grok4-UltraFast-Coder-1B-GGUF:Q4_K_M
- Lemonade
How to use ITLL/IBM-Grok4-UltraFast-Coder-1B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ITLL/IBM-Grok4-UltraFast-Coder-1B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.IBM-Grok4-UltraFast-Coder-1B-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use ITLL/IBM-Grok4-UltraFast-Coder-1B-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 ITLL/IBM-Grok4-UltraFast-Coder-1B-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 ITLL/IBM-Grok4-UltraFast-Coder-1B-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use ITLL/IBM-Grok4-UltraFast-Coder-1B-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ITLL/IBM-Grok4-UltraFast-Coder-1B-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 "ITLL/IBM-Grok4-UltraFast-Coder-1B-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.md
Browse files
README.md
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
- ibm-granite/granite-4.0-h-1b
|
| 4 |
datasets:
|
| 5 |
- Antired/tradehax-xai-grok-trading-visual-prompts
|
| 6 |
- lvogel123/arc-agi-1-grok-4
|
|
@@ -11,137 +10,81 @@ datasets:
|
|
| 11 |
- TeichAI/grok-code-fast-1-1000x
|
| 12 |
- nmayorga7/math-grok-4
|
| 13 |
- Liontix/grok-code-fast-1-200x
|
| 14 |
-
- Antired/tradehax-xai-grok-image-capabilities
|
| 15 |
language:
|
| 16 |
-
- en
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
| 18 |
tags:
|
| 19 |
- granite
|
| 20 |
- ibm
|
| 21 |
-
- granite-4.0
|
| 22 |
- full-finetune
|
| 23 |
-
-
|
|
|
|
| 24 |
- code
|
| 25 |
- text-generation
|
| 26 |
-
- gguf
|
| 27 |
-
license: apache-2.0
|
| 28 |
-
|
| 29 |
---
|
|
|
|
| 30 |
|
| 31 |
-
#
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
##
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
| **Fine-tuned from** | [ibm-granite/granite-4.0-h-1b](https://huggingface.co/ibm-granite/granite-4.0-h-1b) (IBM Granite 4.0 Nano, instruct) |
|
| 41 |
-
| **Fine-tuning method** | Full fine-tune (all parameters updated) |
|
| 42 |
-
| **Training data** | 10 open Grok-4 / Grok Code Fast–derived datasets (see below) |
|
| 43 |
-
| **Parameters** | \~1.46B (1,461,538,368) |
|
| 44 |
-
| **Context length** | 128K tokens (131,072) |
|
| 45 |
-
| **Languages** | English |
|
| 46 |
-
| **License** | Apache 2.0 |
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
## Base Model: Granite-4.0-H-1B
|
| 50 |
-
|
| 51 |
-
[Granite-4.0-H-1B](https://huggingface.co/ibm-granite/granite-4.0-h-1b) is IBM's lightweight instruct model from the Granite 4.0 Nano family, fine-tuned by IBM from Granite-4.0-H-1B-Base using supervised fine-tuning, reinforcement learning, and model merging. It inherits a **hybrid Mamba-2 / transformer ("granitemoehybrid") decoder architecture** combining:
|
| 52 |
-
|
| 53 |
-
- 4 grouped-query-attention (GQA) transformer layers + 36 Mamba-2 layers
|
| 54 |
-
- MLP with SwiGLU activation, RMSNorm, and shared input/output embeddings
|
| 55 |
-
- NoPE position encoding (no RoPE on the hybrid variant)
|
| 56 |
-
|
| 57 |
-
Key specs of the base model: embedding size 1536, attention head size 128, 12 attention heads / 4 KV heads, Mamba-2 state size 128, MLP hidden size 4096, validated 128K context. The hybrid Mamba-2 design gives the model substantially lower memory use and faster inference than a comparable dense transformer — which carries over to this fine-tune, making it well suited for edge, on-device, and latency-sensitive coding workloads.
|
| 58 |
-
|
| 59 |
-
## Fine-Tuning Datasets
|
| 60 |
-
|
| 61 |
-
The full fine-tune used the following 10 datasets, largely consisting of Grok-4 and Grok Code Fast outputs covering code generation, math, ARC-style reasoning, brainstorming, trading/visual prompting, and general instruction data:
|
| 62 |
|
|
|
|
| 63 |
|
| 64 |
-
|
| 65 |
-
| --- | ------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------- |
|
| 66 |
-
| 1 | [TeichAI/grok-code-fast-1-1000x](https://huggingface.co/datasets/TeichAI/grok-code-fast-1-1000x) | Coding (Grok Code Fast) |
|
| 67 |
-
| 2 | [Liontix/grok-code-fast-1-200x](https://huggingface.co/datasets/Liontix/grok-code-fast-1-200x) | Coding (Grok Code Fast) |
|
| 68 |
-
| 3 | [nmayorga7/math-grok-4](https://huggingface.co/datasets/nmayorga7/math-grok-4) | Math |
|
| 69 |
-
| 4 | [lvogel123/arc-agi-1-grok-4](https://huggingface.co/datasets/lvogel123/arc-agi-1-grok-4) | Abstract reasoning (ARC-AGI-1) |
|
| 70 |
-
| 5 | [Crownelius/Hyper-Logic-Grok-V1](https://huggingface.co/datasets/Crownelius/Hyper-Logic-Grok-V1) | Logical reasoning |
|
| 71 |
-
| 6 | [Crownelius/Hyper-Creative-Grok-V1](https://huggingface.co/datasets/Crownelius/Hyper-Creative-Grok-V1) | Creative writing |
|
| 72 |
-
| 7 | [Crownelius/Hyper-UltraData-Grok-V1](https://huggingface.co/datasets/Crownelius/Hyper-UltraData-Grok-V1) | General knowledge / data |
|
| 73 |
-
| 8 | [TeichAI/brainstorm-v3.1-grok-4-fast-200x](https://huggingface.co/datasets/TeichAI/brainstorm-v3.1-grok-4-fast-200x) | Brainstorming / ideation |
|
| 74 |
-
| 9 | [Antired/tradehax-xai-grok-trading-visual-prompts](https://huggingface.co/datasets/Antired/tradehax-xai-grok-trading-visual-prompts) | Trading prompts / visual prompting |
|
| 75 |
-
| 10 | [Antired/tradehax-xai-grok-image-capabilities](https://huggingface.co/datasets/Antired/tradehax-xai-grok-image-capabilities) | Image-capability prompting |
|
| 76 |
|
|
|
|
|
|
|
| 77 |
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
- **Method:** Full fine-tune (all weights updated, no LoRA/adapters)
|
| 85 |
-
- **Hardware:**
|
| 86 |
-
- **Hyperparameters:**
|
| 87 |
-
- **Framework:**
|
| 88 |
-
- **Chat template:** inherited from Granite-4.0-H-1B
|
| 89 |
-
|
| 90 |
-
## Intended Use
|
| 91 |
-
|
| 92 |
-
- Local code generation and completion with low latency and a small footprint
|
| 93 |
-
- Math, logic, and reasoning tasks on consumer hardware
|
| 94 |
-
- Edge / on-device deployment via llama.cpp, LM Studio, Ollama, or any GGUF-compatible runtime
|
| 95 |
|
| 96 |
## Provided Quants
|
| 97 |
|
|
|
|
| 98 |
|
| 99 |
-
| Type
|
| 100 |
-
|
|
| 101 |
-
|
|
| 102 |
-
|
|
| 103 |
-
|
|
| 104 |
-
|
|
| 105 |
-
|
|
| 106 |
-
|
|
| 107 |
-
|
|
| 108 |
-
|
|
| 109 |
-
|
|
| 110 |
-
|
|
| 111 |
-
|
|
| 112 |
-
| f16
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
## Usage
|
| 116 |
-
|
| 117 |
-
Example with llama.cpp:
|
| 118 |
-
|
| 119 |
-
```bash
|
| 120 |
-
./llama-cli -m IBM-Grok4-UltraFast-Coder-1B.Q4_K_M.gguf -c 8192 -p "Write a Python function that merges two sorted lists."
|
| 121 |
-
```
|
| 122 |
|
| 123 |
-
|
|
|
|
| 124 |
|
| 125 |
-
|
| 126 |
-
from llama_cpp import Llama
|
| 127 |
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
{"role": "user", "content": "Write a Python function that merges two sorted lists."}
|
| 131 |
-
]))
|
| 132 |
-
```
|
| 133 |
|
| 134 |
-
|
| 135 |
|
| 136 |
-
|
|
|
|
| 137 |
|
| 138 |
-
|
| 139 |
-
- Distilled from Grok-4 / Grok Code Fast outputs: behavior, style, and refusal patterns reflect those datasets, not IBM's Granite alignment.
|
| 140 |
-
- Text-only: it cannot accept image inputs.
|
| 141 |
-
- Not intended for high-stakes trading or financial decision-making, despite trading-related training data.
|
| 142 |
|
| 143 |
-
|
|
|
|
|
|
|
| 144 |
|
| 145 |
-
-
|
| 146 |
-
- The creators of the 10 open datasets listed above
|
| 147 |
-
- [mradermacher](https://huggingface.co/mradermacher) for GGUF quantization tooling
|
|
|
|
| 1 |
+
--
|
| 2 |
+
base_model: WithinUsAI/IBM-Grok4-Ultra.Fast.Coder-1B
|
|
|
|
| 3 |
datasets:
|
| 4 |
- Antired/tradehax-xai-grok-trading-visual-prompts
|
| 5 |
- lvogel123/arc-agi-1-grok-4
|
|
|
|
| 10 |
- TeichAI/grok-code-fast-1-1000x
|
| 11 |
- nmayorga7/math-grok-4
|
| 12 |
- Liontix/grok-code-fast-1-200x
|
| 13 |
+
- Antired/tradehax-xai-grok-image-capabilities
|
| 14 |
language:
|
| 15 |
+
- en
|
| 16 |
+
library_name: transformers
|
| 17 |
+
mradermacher:
|
| 18 |
+
readme_rev: 1
|
| 19 |
+
quantized_by: mradermacher
|
| 20 |
tags:
|
| 21 |
- granite
|
| 22 |
- ibm
|
|
|
|
| 23 |
- full-finetune
|
| 24 |
+
- multi-gpu
|
| 25 |
+
- pytorch
|
| 26 |
- code
|
| 27 |
- text-generation
|
|
|
|
|
|
|
|
|
|
| 28 |
---
|
| 29 |
+
## About
|
| 30 |
|
| 31 |
+
<!-- ### quantize_version: 2 -->
|
| 32 |
+
<!-- ### output_tensor_quantised: 1 -->
|
| 33 |
+
<!-- ### convert_type: hf -->
|
| 34 |
+
<!-- ### vocab_type: -->
|
| 35 |
+
<!-- ### tags: -->
|
| 36 |
+
<!-- ### quants: x-f16 Q4_K_S Q2_K Q8_0 Q6_K Q3_K_M Q3_K_S Q3_K_L Q4_K_M Q5_K_S Q5_K_M IQ4_XS -->
|
| 37 |
+
<!-- ### quants_skip: -->
|
| 38 |
+
<!-- ### skip_mmproj: -->
|
| 39 |
+
static quants of https://huggingface.co/WithinUsAI/IBM-Grok4-Ultra.Fast.Coder-1B
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
+
<!-- provided-files -->
|
| 42 |
|
| 43 |
+
***For a convenient overview and download list, visit our [model page for this model](https://hf.tst.eu/model#IBM-Grok4-UltraFast-Coder-1B-GGUF).***
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
+
weighted/imatrix quants seem not to be available (by me) at this time. If they do not show up a week or so after the static ones, I have probably not planned for them. Feel free to request them by opening a Community Discussion.
|
| 46 |
+
## Usage
|
| 47 |
|
| 48 |
+
If you are unsure how to use GGUF files, refer to one of [TheBloke's
|
| 49 |
+
READMEs](https://huggingface.co/TheBloke/KafkaLM-70B-German-V0.1-GGUF) for
|
| 50 |
+
more details, including on how to concatenate multi-part files.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
## Provided Quants
|
| 53 |
|
| 54 |
+
(sorted by size, not necessarily quality. IQ-quants are often preferable over similar sized non-IQ quants)
|
| 55 |
|
| 56 |
+
| Link | Type | Size/GB | Notes |
|
| 57 |
+
|:-----|:-----|--------:|:------|
|
| 58 |
+
| [GGUF](https://huggingface.co/mradermacher/IBM-Grok4-UltraFast-Coder-1B-GGUF/resolve/main/IBM-Grok4-UltraFast-Coder-1B.Q2_K.gguf) | Q2_K | 0.8 | |
|
| 59 |
+
| [GGUF](https://huggingface.co/mradermacher/IBM-Grok4-UltraFast-Coder-1B-GGUF/resolve/main/IBM-Grok4-UltraFast-Coder-1B.Q3_K_S.gguf) | Q3_K_S | 0.9 | |
|
| 60 |
+
| [GGUF](https://huggingface.co/mradermacher/IBM-Grok4-UltraFast-Coder-1B-GGUF/resolve/main/IBM-Grok4-UltraFast-Coder-1B.Q3_K_M.gguf) | Q3_K_M | 1.0 | lower quality |
|
| 61 |
+
| [GGUF](https://huggingface.co/mradermacher/IBM-Grok4-UltraFast-Coder-1B-GGUF/resolve/main/IBM-Grok4-UltraFast-Coder-1B.Q3_K_L.gguf) | Q3_K_L | 1.0 | |
|
| 62 |
+
| [GGUF](https://huggingface.co/mradermacher/IBM-Grok4-UltraFast-Coder-1B-GGUF/resolve/main/IBM-Grok4-UltraFast-Coder-1B.IQ4_XS.gguf) | IQ4_XS | 1.0 | |
|
| 63 |
+
| [GGUF](https://huggingface.co/mradermacher/IBM-Grok4-UltraFast-Coder-1B-GGUF/resolve/main/IBM-Grok4-UltraFast-Coder-1B.Q4_K_S.gguf) | Q4_K_S | 1.1 | fast, recommended |
|
| 64 |
+
| [GGUF](https://huggingface.co/mradermacher/IBM-Grok4-UltraFast-Coder-1B-GGUF/resolve/main/IBM-Grok4-UltraFast-Coder-1B.Q4_K_M.gguf) | Q4_K_M | 1.1 | fast, recommended |
|
| 65 |
+
| [GGUF](https://huggingface.co/mradermacher/IBM-Grok4-UltraFast-Coder-1B-GGUF/resolve/main/IBM-Grok4-UltraFast-Coder-1B.Q5_K_S.gguf) | Q5_K_S | 1.3 | |
|
| 66 |
+
| [GGUF](https://huggingface.co/mradermacher/IBM-Grok4-UltraFast-Coder-1B-GGUF/resolve/main/IBM-Grok4-UltraFast-Coder-1B.Q5_K_M.gguf) | Q5_K_M | 1.3 | |
|
| 67 |
+
| [GGUF](https://huggingface.co/mradermacher/IBM-Grok4-UltraFast-Coder-1B-GGUF/resolve/main/IBM-Grok4-UltraFast-Coder-1B.Q6_K.gguf) | Q6_K | 1.4 | very good quality |
|
| 68 |
+
| [GGUF](https://huggingface.co/mradermacher/IBM-Grok4-UltraFast-Coder-1B-GGUF/resolve/main/IBM-Grok4-UltraFast-Coder-1B.Q8_0.gguf) | Q8_0 | 1.8 | fast, best quality |
|
| 69 |
+
| [GGUF](https://huggingface.co/mradermacher/IBM-Grok4-UltraFast-Coder-1B-GGUF/resolve/main/IBM-Grok4-UltraFast-Coder-1B.f16.gguf) | f16 | 3.4 | 16 bpw, overkill |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
|
| 71 |
+
Here is a handy graph by ikawrakow comparing some lower-quality quant
|
| 72 |
+
types (lower is better):
|
| 73 |
|
| 74 |
+

|
|
|
|
| 75 |
|
| 76 |
+
And here are Artefact2's thoughts on the matter:
|
| 77 |
+
https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9
|
|
|
|
|
|
|
|
|
|
| 78 |
|
| 79 |
+
## FAQ / Model Request
|
| 80 |
|
| 81 |
+
See https://huggingface.co/mradermacher/model_requests for some answers to
|
| 82 |
+
questions you might have and/or if you want some other model quantized.
|
| 83 |
|
| 84 |
+
## Thanks
|
|
|
|
|
|
|
|
|
|
| 85 |
|
| 86 |
+
I thank my company, [nethype GmbH](https://www.nethype.de/), for letting
|
| 87 |
+
me use its servers and providing upgrades to my workstation to enable
|
| 88 |
+
this work in my free time.
|
| 89 |
|
| 90 |
+
<!-- end -->
|
|
|
|
|
|