GGUF
English
rocmfp4
qwen3
fastcontext
subagent
repository-exploration
coder
agentic
imatrix
strix-halo
amd
rocm
vulkan
conversational
Instructions to use plunderstruck/FastContext-1.0-4B-SFT-ROCmFP4-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 plunderstruck/FastContext-1.0-4B-SFT-ROCmFP4-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 plunderstruck/FastContext-1.0-4B-SFT-ROCmFP4-GGUF:BF16 # Run inference directly in the terminal: llama cli -hf plunderstruck/FastContext-1.0-4B-SFT-ROCmFP4-GGUF:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf plunderstruck/FastContext-1.0-4B-SFT-ROCmFP4-GGUF:BF16 # Run inference directly in the terminal: llama cli -hf plunderstruck/FastContext-1.0-4B-SFT-ROCmFP4-GGUF:BF16
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 plunderstruck/FastContext-1.0-4B-SFT-ROCmFP4-GGUF:BF16 # Run inference directly in the terminal: ./llama-cli -hf plunderstruck/FastContext-1.0-4B-SFT-ROCmFP4-GGUF:BF16
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 plunderstruck/FastContext-1.0-4B-SFT-ROCmFP4-GGUF:BF16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf plunderstruck/FastContext-1.0-4B-SFT-ROCmFP4-GGUF:BF16
Use Docker
docker model run hf.co/plunderstruck/FastContext-1.0-4B-SFT-ROCmFP4-GGUF:BF16
- LM Studio
- Jan
- Ollama
How to use plunderstruck/FastContext-1.0-4B-SFT-ROCmFP4-GGUF with Ollama:
ollama run hf.co/plunderstruck/FastContext-1.0-4B-SFT-ROCmFP4-GGUF:BF16
- Unsloth Desktop
- Pi
How to use plunderstruck/FastContext-1.0-4B-SFT-ROCmFP4-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf plunderstruck/FastContext-1.0-4B-SFT-ROCmFP4-GGUF:BF16
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": "plunderstruck/FastContext-1.0-4B-SFT-ROCmFP4-GGUF:BF16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use plunderstruck/FastContext-1.0-4B-SFT-ROCmFP4-GGUF with Docker Model Runner:
docker model run hf.co/plunderstruck/FastContext-1.0-4B-SFT-ROCmFP4-GGUF:BF16
- Lemonade
How to use plunderstruck/FastContext-1.0-4B-SFT-ROCmFP4-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull plunderstruck/FastContext-1.0-4B-SFT-ROCmFP4-GGUF:BF16
Run and chat with the model
lemonade run user.FastContext-1.0-4B-SFT-ROCmFP4-GGUF-BF16
List all available models
lemonade list
- Hermes Agent
How to use plunderstruck/FastContext-1.0-4B-SFT-ROCmFP4-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 plunderstruck/FastContext-1.0-4B-SFT-ROCmFP4-GGUF:BF16
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 plunderstruck/FastContext-1.0-4B-SFT-ROCmFP4-GGUF:BF16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use plunderstruck/FastContext-1.0-4B-SFT-ROCmFP4-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf plunderstruck/FastContext-1.0-4B-SFT-ROCmFP4-GGUF:BF16
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 "plunderstruck/FastContext-1.0-4B-SFT-ROCmFP4-GGUF:BF16" \ --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"
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -108,13 +108,12 @@ Experimental **AMD Strix Halo (gfx1151)** quant of [**microsoft/FastContext-1.0-
|
|
| 108 |
<th style="border:1px solid currentColor; padding:7px 10px; text-align:left; text-transform:uppercase; font-size:10px; letter-spacing:1px;">Pick if</th>
|
| 109 |
</tr></thead>
|
| 110 |
<tbody>
|
| 111 |
-
<tr><td style="border:1px solid currentColor; padding:7px 10px;"><code>β¦-
|
| 112 |
-
<tr><td style="border:1px solid currentColor; padding:7px 10px;"><code>β¦-STRIX-embF16-imatrix.gguf</code></td><td style="border:1px solid currentColor; padding:7px 10px;">fast</td><td style="border:1px solid currentColor; padding:7px 10px;">2.7 GB</td><td style="border:1px solid currentColor; padding:7px 10px;">~same fidelity, slightly smaller/faster</td></tr>
|
| 113 |
</tbody>
|
| 114 |
</table>
|
| 115 |
</div>
|
| 116 |
|
| 117 |
-
|
| 118 |
|
| 119 |
<div style="border:1px solid currentColor; padding:8px 13px; font-family:ui-monospace,'SF Mono',Consolas,monospace; font-size:12px; margin:12px 0; opacity:0.85;">
|
| 120 |
<b>NOTE // TIED EMBEDDINGS.</b> FastContext has <code>tie_word_embeddings=True</code>, so there's <b>no separate output head</b> β the token-embedding tensor doubles as the lm-head. Setting <code>--token-embedding-type f16</code> therefore gives an <b>f16 embedding <i>and</i> f16 output head</b> in one (no <code>headQ6</code> variant needed β f16 already beats Q6 there).
|
|
@@ -127,7 +126,7 @@ Run from the folder holding the `.gguf` (the Qwen ChatML template is baked in
|
|
| 127 |
```bash
|
| 128 |
env HSA_OVERRIDE_GFX_VERSION=11.5.1 GGML_HIP_ENABLE_UNIFIED_MEMORY=1 \
|
| 129 |
llama-server \
|
| 130 |
-
-m FastContext-1.0-4B-SFT-ROCmFP4-
|
| 131 |
--alias fastcontext-4b \
|
| 132 |
--host 0.0.0.0 \
|
| 133 |
--port 8080 \
|
|
@@ -199,36 +198,23 @@ FastContext isn't a general chat model β it's a **repository-exploration subag
|
|
| 199 |
<tr><td style="border:1px solid currentColor; padding:8px 11px; width:42%;">DECODE Β· short context</td><td style="border:1px solid currentColor; padding:8px 11px; font-weight:700;">~68 t/s (Vulkan / Ryzen AI Max+ 395)</td></tr>
|
| 200 |
<tr><td style="border:1px solid currentColor; padding:8px 11px;">SPECULATIVE DECODE</td><td style="border:1px solid currentColor; padding:8px 11px; font-weight:700;">none (no MTP head)</td></tr>
|
| 201 |
<tr><td style="border:1px solid currentColor; padding:8px 11px;">CONTEXT</td><td style="border:1px solid currentColor; padding:8px 11px;">256K native (dense attention)</td></tr>
|
| 202 |
-
<tr><td style="border:1px solid currentColor; padding:8px 11px;">QUANTIZATION</td><td style="border:1px solid currentColor; padding:8px 11px;">
|
| 203 |
</tbody>
|
| 204 |
</table>
|
| 205 |
</div>
|
| 206 |
|
| 207 |
-
**
|
| 208 |
|
| 209 |
-
|
| 210 |
-
<table style="width:100%; border-collapse:collapse; border-radius:0; font-family:ui-monospace,'SF Mono',Consolas,monospace; font-size:12.5px;">
|
| 211 |
-
<thead><tr>
|
| 212 |
-
<th style="border:1px solid currentColor; padding:7px 10px; text-align:left; text-transform:uppercase; font-size:10px; letter-spacing:1px;">Build (imatrix + embF16, tied head)</th>
|
| 213 |
-
<th style="border:1px solid currentColor; padding:7px 10px; text-align:left; text-transform:uppercase; font-size:10px; letter-spacing:1px;">Body</th>
|
| 214 |
-
<th style="border:1px solid currentColor; padding:7px 10px; text-align:left; text-transform:uppercase; font-size:10px; letter-spacing:1px;">Mean KLD vs BF16 β</th>
|
| 215 |
-
<th style="border:1px solid currentColor; padding:7px 10px; text-align:left; text-transform:uppercase; font-size:10px; letter-spacing:1px;">Median KLD β</th>
|
| 216 |
-
<th style="border:1px solid currentColor; padding:7px 10px; text-align:left; text-transform:uppercase; font-size:10px; letter-spacing:1px;">Top-token</th>
|
| 217 |
-
<th style="border:1px solid currentColor; padding:7px 10px; text-align:left; text-transform:uppercase; font-size:10px; letter-spacing:1px;">PPL(Q) β</th>
|
| 218 |
-
</tr></thead>
|
| 219 |
-
<tbody>
|
| 220 |
-
<tr><td style="border:1px solid currentColor; padding:7px 10px;"><code>COHERENT</code> β
</td><td style="border:1px solid currentColor; padding:7px 10px;">all-dual</td><td style="border:1px solid currentColor; padding:7px 10px;"><b>0.03422</b></td><td style="border:1px solid currentColor; padding:7px 10px;"><b>0.00955</b></td><td style="border:1px solid currentColor; padding:7px 10px;"><b>92.08%</b></td><td style="border:1px solid currentColor; padding:7px 10px;"><b>4.192</b></td></tr>
|
| 221 |
-
<tr><td style="border:1px solid currentColor; padding:7px 10px;"><code>STRIX</code></td><td style="border:1px solid currentColor; padding:7px 10px;">fast</td><td style="border:1px solid currentColor; padding:7px 10px;">0.03934</td><td style="border:1px solid currentColor; padding:7px 10px;">0.01016</td><td style="border:1px solid currentColor; padding:7px 10px;">91.38%</td><td style="border:1px solid currentColor; padding:7px 10px;">4.213</td></tr>
|
| 222 |
-
</tbody>
|
| 223 |
-
</table>
|
| 224 |
-
</div>
|
| 225 |
|
| 226 |
-
|
|
|
|
|
|
|
| 227 |
|
| 228 |
**Fast on its own.** ~68 t/s short-context decode on a Ryzen AI Max+ 395 (Vulkan0, measured `llama-bench tg128`). It's a 4B dense Qwen3 with **no MTP head**, so there's no speculative decoding β it doesn't need it, and at 4B it's a cheap explorer you can run several of in parallel.
|
| 229 |
|
| 230 |
<div style="border:1px solid currentColor; padding:8px 13px; font-family:ui-monospace,'SF Mono',Consolas,monospace; font-size:12px; margin:12px 0; opacity:0.85;">
|
| 231 |
-
<b>NOTE // imatrix.</b>
|
| 232 |
</div>
|
| 233 |
|
| 234 |
<div style="font-family:ui-monospace,'SF Mono',Consolas,monospace; font-weight:800; font-size:14px; letter-spacing:2px; text-transform:uppercase; border-bottom:2px solid currentColor; padding-bottom:5px; margin:26px 0 12px;"><span style="color:#ea580c;">05</span> Β· BUILD (REPRODUCIBLE)</div>
|
|
@@ -240,12 +226,8 @@ python convert_hf_to_gguf.py FastContext-1.0-4B-SFT/ --outtype bf16 --outfile Fa
|
|
| 240 |
# 1) imatrix on the BF16 (general+code: Kalomaze groups_merged + froggeric code/technical)
|
| 241 |
llama-imatrix -m FastContext-1.0-4B-SFT-BF16.gguf -f general+code-calib.txt -o fastcontext-4b.imatrix -c 512 -ngl 999
|
| 242 |
|
| 243 |
-
# 2)
|
| 244 |
# tie_word_embeddings=True -> --token-embedding-type f16 also gives an f16 output head; no --output-tensor-type.
|
| 245 |
-
llama-quantize --token-embedding-type f16 --imatrix fastcontext-4b.imatrix \
|
| 246 |
-
FastContext-1.0-4B-SFT-BF16.gguf FastContext-1.0-4B-SFT-ROCmFP4-COHERENT-embF16.gguf Q4_0_ROCMFP4_COHERENT
|
| 247 |
-
|
| 248 |
-
# fast-body STRIX fallback (same f16 emb + imatrix)
|
| 249 |
llama-quantize --token-embedding-type f16 --imatrix fastcontext-4b.imatrix \
|
| 250 |
FastContext-1.0-4B-SFT-BF16.gguf FastContext-1.0-4B-SFT-ROCmFP4-STRIX-embF16-imatrix.gguf Q4_0_ROCMFP4_STRIX
|
| 251 |
```
|
|
|
|
| 108 |
<th style="border:1px solid currentColor; padding:7px 10px; text-align:left; text-transform:uppercase; font-size:10px; letter-spacing:1px;">Pick if</th>
|
| 109 |
</tr></thead>
|
| 110 |
<tbody>
|
| 111 |
+
<tr><td style="border:1px solid currentColor; padding:7px 10px;"><code>β¦-STRIX-embF16-imatrix.gguf</code> β
</td><td style="border:1px solid currentColor; padding:7px 10px;">fast</td><td style="border:1px solid currentColor; padding:7px 10px;">2.7 GB</td><td style="border:1px solid currentColor; padding:7px 10px;"><b>the one build</b> β best speed/quality balance: f16 tied embeddings/head on the fast single-scale body</td></tr>
|
|
|
|
| 112 |
</tbody>
|
| 113 |
</table>
|
| 114 |
</div>
|
| 115 |
|
| 116 |
+
One file β the **best speed/quality balance** in ROCmFP4 for Strix Halo. It keeps the quality lever that's actually *felt* β genuine **f16 embeddings (from BF16), which also serve as the output head since the model ties them** β on the fast single-scale `q4_0_rocmfp4_fast` body + a code-weighted imatrix (see Β§04). The Qwen (ChatML) chat template is **baked into the GGUF** β just pass `--jinja`.
|
| 117 |
|
| 118 |
<div style="border:1px solid currentColor; padding:8px 13px; font-family:ui-monospace,'SF Mono',Consolas,monospace; font-size:12px; margin:12px 0; opacity:0.85;">
|
| 119 |
<b>NOTE // TIED EMBEDDINGS.</b> FastContext has <code>tie_word_embeddings=True</code>, so there's <b>no separate output head</b> β the token-embedding tensor doubles as the lm-head. Setting <code>--token-embedding-type f16</code> therefore gives an <b>f16 embedding <i>and</i> f16 output head</b> in one (no <code>headQ6</code> variant needed β f16 already beats Q6 there).
|
|
|
|
| 126 |
```bash
|
| 127 |
env HSA_OVERRIDE_GFX_VERSION=11.5.1 GGML_HIP_ENABLE_UNIFIED_MEMORY=1 \
|
| 128 |
llama-server \
|
| 129 |
+
-m FastContext-1.0-4B-SFT-ROCmFP4-STRIX-embF16-imatrix.gguf \
|
| 130 |
--alias fastcontext-4b \
|
| 131 |
--host 0.0.0.0 \
|
| 132 |
--port 8080 \
|
|
|
|
| 198 |
<tr><td style="border:1px solid currentColor; padding:8px 11px; width:42%;">DECODE Β· short context</td><td style="border:1px solid currentColor; padding:8px 11px; font-weight:700;">~68 t/s (Vulkan / Ryzen AI Max+ 395)</td></tr>
|
| 199 |
<tr><td style="border:1px solid currentColor; padding:8px 11px;">SPECULATIVE DECODE</td><td style="border:1px solid currentColor; padding:8px 11px; font-weight:700;">none (no MTP head)</td></tr>
|
| 200 |
<tr><td style="border:1px solid currentColor; padding:8px 11px;">CONTEXT</td><td style="border:1px solid currentColor; padding:8px 11px;">256K native (dense attention)</td></tr>
|
| 201 |
+
<tr><td style="border:1px solid currentColor; padding:8px 11px;">QUANTIZATION</td><td style="border:1px solid currentColor; padding:8px 11px;">fast single-scale body + f16 tied emb/head + code-weighted imatrix</td></tr>
|
| 202 |
</tbody>
|
| 203 |
</table>
|
| 204 |
</div>
|
| 205 |
|
| 206 |
+
**This is the best speed/quality balance in ROCmFP4 β by design, not the absolute fastest.** It keeps the one quality lever that's actually *felt* β genuine **f16 embeddings**, which on this model **double as the output head** (`tie_word_embeddings=True`), so a single f16 tensor sharpens both the input and output side at near-zero decode cost (it's a lookup, not a matmul) β on top of the fast single-scale `q4_0_rocmfp4_fast` body + a code-weighted imatrix. A leaner Q5-embedding build would shave a couple tok/s but degrades that lever; we keep full f16.
|
| 207 |
|
| 208 |
+
We didn't re-run the entire rocmfp4 lever sweep on this 4B. We ran it exhaustively on the larger **[Qwen3.6-27B](https://huggingface.co/plunderstruck/Qwen3.6-27B-MTP-ROCmFP4-GGUF)** β KL divergence vs the BF16 reference plus `llama-bench` decode across an all-dual-scale body, selective higher-precision tensors, and full f16 embeddings. The finding there: **an all-dual-scale body and selective higher-precision tensors both cost decode speed for a KL improvement that sat inside the measurement noise**, so the fast single-scale body + f16 embeddings is the balance point. That conclusion carries to FastContext β same format, same kernels β so we ship the one build that lands on it rather than a slower variant that wins KL only inside the noise.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 209 |
|
| 210 |
+
<div style="border:1px solid currentColor; padding:8px 13px; font-family:ui-monospace,'SF Mono',Consolas,monospace; font-size:12px; margin:12px 0; opacity:0.9;">
|
| 211 |
+
<b>WANT MAXIMUM FIDELITY INSTEAD OF SPEED?</b> Grab a <b>Q6_K / Q8 GGUF of the base</b> from <a href="https://huggingface.co/microsoft/FastContext-1.0-4B-SFT"><b>microsoft/FastContext-1.0-4B-SFT</b></a> β higher-bit GGUFs run on this same fork. We optimize for throughput in ROCmFP4; if you want the last bit of fidelity over speed, a Q6_K/Q8 of the base is the one to grab.
|
| 212 |
+
</div>
|
| 213 |
|
| 214 |
**Fast on its own.** ~68 t/s short-context decode on a Ryzen AI Max+ 395 (Vulkan0, measured `llama-bench tg128`). It's a 4B dense Qwen3 with **no MTP head**, so there's no speculative decoding β it doesn't need it, and at 4B it's a cheap explorer you can run several of in parallel.
|
| 215 |
|
| 216 |
<div style="border:1px solid currentColor; padding:8px 13px; font-family:ui-monospace,'SF Mono',Consolas,monospace; font-size:12px; margin:12px 0; opacity:0.85;">
|
| 217 |
+
<b>NOTE // imatrix.</b> This build is quantized <b>with</b> an importance matrix (Kalomaze <code>groups_merged</code> + froggeric <code>code</code>/<code>technical</code>, via <a href="https://huggingface.co/datasets/froggeric/imatrix">froggeric/imatrix</a>), computed on this model's BF16. We did <b>not</b> run a separate imatrix-vs-no-imatrix ablation on this 4B; at 4+ bpw imatrix is a free polish, not a transformation. Scope note: any fidelity-vs-BF16 figures are a held-out measurement, <b>not</b> an absolute coding benchmark.
|
| 218 |
</div>
|
| 219 |
|
| 220 |
<div style="font-family:ui-monospace,'SF Mono',Consolas,monospace; font-weight:800; font-size:14px; letter-spacing:2px; text-transform:uppercase; border-bottom:2px solid currentColor; padding-bottom:5px; margin:26px 0 12px;"><span style="color:#ea580c;">05</span> Β· BUILD (REPRODUCIBLE)</div>
|
|
|
|
| 226 |
# 1) imatrix on the BF16 (general+code: Kalomaze groups_merged + froggeric code/technical)
|
| 227 |
llama-imatrix -m FastContext-1.0-4B-SFT-BF16.gguf -f general+code-calib.txt -o fastcontext-4b.imatrix -c 512 -ngl 999
|
| 228 |
|
| 229 |
+
# 2) THE ONE BUILD: fast single-scale STRIX body + f16 tied emb/head + imatrix (the β
file) β the balance point (Β§04).
|
| 230 |
# tie_word_embeddings=True -> --token-embedding-type f16 also gives an f16 output head; no --output-tensor-type.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 231 |
llama-quantize --token-embedding-type f16 --imatrix fastcontext-4b.imatrix \
|
| 232 |
FastContext-1.0-4B-SFT-BF16.gguf FastContext-1.0-4B-SFT-ROCmFP4-STRIX-embF16-imatrix.gguf Q4_0_ROCMFP4_STRIX
|
| 233 |
```
|