GGUF
qwen
qwen3.8
qwen3.8-27b
rocm
rocmfpx
activefpx
promptforge
amd
strix-halo
gfx1151
mtp
heretic
uncensored
conversational
Instructions to use tonyrishwain/Qwen3.8-27B-Heretic-ROCmFPX-STRIX 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 tonyrishwain/Qwen3.8-27B-Heretic-ROCmFPX-STRIX 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 tonyrishwain/Qwen3.8-27B-Heretic-ROCmFPX-STRIX # Run inference directly in the terminal: llama cli -hf tonyrishwain/Qwen3.8-27B-Heretic-ROCmFPX-STRIX
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf tonyrishwain/Qwen3.8-27B-Heretic-ROCmFPX-STRIX # Run inference directly in the terminal: llama cli -hf tonyrishwain/Qwen3.8-27B-Heretic-ROCmFPX-STRIX
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 tonyrishwain/Qwen3.8-27B-Heretic-ROCmFPX-STRIX # Run inference directly in the terminal: ./build/bin/llama cli -hf tonyrishwain/Qwen3.8-27B-Heretic-ROCmFPX-STRIX
Use Docker
docker model run hf.co/tonyrishwain/Qwen3.8-27B-Heretic-ROCmFPX-STRIX
- Llama new
- LM Studio
- Jan
- Ollama
How to use tonyrishwain/Qwen3.8-27B-Heretic-ROCmFPX-STRIX with Ollama:
ollama run hf.co/tonyrishwain/Qwen3.8-27B-Heretic-ROCmFPX-STRIX
- Unsloth Desktop
- Pi
How to use tonyrishwain/Qwen3.8-27B-Heretic-ROCmFPX-STRIX with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf tonyrishwain/Qwen3.8-27B-Heretic-ROCmFPX-STRIX
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": "tonyrishwain/Qwen3.8-27B-Heretic-ROCmFPX-STRIX" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use tonyrishwain/Qwen3.8-27B-Heretic-ROCmFPX-STRIX with Docker Model Runner:
docker model run hf.co/tonyrishwain/Qwen3.8-27B-Heretic-ROCmFPX-STRIX
- Lemonade
How to use tonyrishwain/Qwen3.8-27B-Heretic-ROCmFPX-STRIX with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tonyrishwain/Qwen3.8-27B-Heretic-ROCmFPX-STRIX
Run and chat with the model
lemonade run user.Qwen3.8-27B-Heretic-ROCmFPX-STRIX-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use tonyrishwain/Qwen3.8-27B-Heretic-ROCmFPX-STRIX with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf tonyrishwain/Qwen3.8-27B-Heretic-ROCmFPX-STRIX
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 tonyrishwain/Qwen3.8-27B-Heretic-ROCmFPX-STRIX
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use tonyrishwain/Qwen3.8-27B-Heretic-ROCmFPX-STRIX with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf tonyrishwain/Qwen3.8-27B-Heretic-ROCmFPX-STRIX
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 "tonyrishwain/Qwen3.8-27B-Heretic-ROCmFPX-STRIX" \ --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,604 @@
|
|
| 1 |
---
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
base_model:
|
| 4 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
---
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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- activefpx
|
| 14 |
+
- promptforge
|
| 15 |
+
- amd
|
| 16 |
+
- strix-halo
|
| 17 |
+
- gfx1151
|
| 18 |
+
- mtp
|
| 19 |
+
- heretic
|
| 20 |
+
- uncensored
|
| 21 |
+
|
| 22 |
---
|
| 23 |
+
|
| 24 |
+
# Qwen3.8-27B-Heretic-ROCmFPX-STRIX
|
| 25 |
+
|
| 26 |
+
ROCmFPX / ActiveFPX build of [`trohrbaugh/Qwen3.8-27B-heretic-ara`](https://huggingface.co/trohrbaugh/Qwen3.8-27B-heretic-ara), targeting AMD Strix Halo / Radeon 8060S (`gfx1151`) and the specialized [CIRU ROCmFPX](https://github.com/ciru-ai/ROCmFPX) + PromptForge inference stack.
|
| 27 |
+
|
| 28 |
+
This repository contains:
|
| 29 |
+
|
| 30 |
+
* a compact ROCmFPX / ActiveFPX GGUF using the CIRU Qwen3.8 v3-style precision allocation;
|
| 31 |
+
* a model-specific full-W8 PromptForge FFN sidecar;
|
| 32 |
+
* a model-specific full-W8 PromptForge Gated DeltaNet sidecar.
|
| 33 |
+
|
| 34 |
+
The GGUF can be used on its own with a compatible ROCmFPX-capable llama.cpp runtime. The `.pfs` files are optional serving-time compute views for CIRU PromptForge and trade additional memory for substantially faster supported prompt-processing paths.
|
| 35 |
+
|
| 36 |
+
## Model provenance
|
| 37 |
+
|
| 38 |
+
### Original model
|
| 39 |
+
|
| 40 |
+
The architecture and original model weights originate from:
|
| 41 |
+
|
| 42 |
+
[`Qwen/Qwen3.8-27B`](https://huggingface.co/Qwen/Qwen3.8-27B)
|
| 43 |
+
|
| 44 |
+
Qwen3.8-27B is a dense 27B model with:
|
| 45 |
+
|
| 46 |
+
* 64 language-model layers;
|
| 47 |
+
* hidden dimension 5120;
|
| 48 |
+
* FFN intermediate dimension 17,408;
|
| 49 |
+
* a repeating hybrid Gated DeltaNet / gated-attention layout;
|
| 50 |
+
* native MTP support;
|
| 51 |
+
* a 248,320-token padded vocabulary;
|
| 52 |
+
* native 262,144-token context;
|
| 53 |
+
* native multimodal architecture.
|
| 54 |
+
|
| 55 |
+
### Heretic / ARA source
|
| 56 |
+
|
| 57 |
+
The full-precision source used for this repository is:
|
| 58 |
+
|
| 59 |
+
[`trohrbaugh/Qwen3.8-27B-heretic-ara`](https://huggingface.co/trohrbaugh/Qwen3.8-27B-heretic-ara)
|
| 60 |
+
|
| 61 |
+
That model is a behavior-modified Qwen3.8-27B produced using the [Heretic](https://github.com/p-e-w/heretic) project and its Arbitrary-Rank Ablation (ARA) approach.
|
| 62 |
+
|
| 63 |
+
This repository does **not** perform an additional fine-tune. The ROCmFPX GGUF and PromptForge sidecars were generated from the Heretic-Ara BF16 weights.
|
| 64 |
+
|
| 65 |
+
## Quantization and inference provenance
|
| 66 |
+
|
| 67 |
+
The quantization format and specialized inference implementation come from:
|
| 68 |
+
|
| 69 |
+
* [CIRU ROCmFPX](https://github.com/ciru-ai/ROCmFPX)
|
| 70 |
+
* [CIRU Qwen3.8 ActiveFPX + PromptForge reference release](https://huggingface.co/jcbtc/Qwen3.8-27B-CIRU-ActiveFPX-PromptForge)
|
| 71 |
+
* [llama.cpp](https://github.com/ggml-org/llama.cpp)
|
| 72 |
+
* [AMD Composable Kernel](https://github.com/ROCm/composable_kernel)
|
| 73 |
+
|
| 74 |
+
CIRU's Qwen3.8 work adds model-specific `gfx1151` paths including:
|
| 75 |
+
|
| 76 |
+
* fused FFN gate/up processing;
|
| 77 |
+
* accelerated SwiGLU/down projection;
|
| 78 |
+
* merged QKV/Z projection for Gated DeltaNet layers;
|
| 79 |
+
* prepacked W8 PromptForge compute views;
|
| 80 |
+
* small-row W8 execution;
|
| 81 |
+
* ROCmFPX low-bit decode paths;
|
| 82 |
+
* native Qwen3.8 MTP support.
|
| 83 |
+
|
| 84 |
+
## About this v3-style quant
|
| 85 |
+
|
| 86 |
+
The compact GGUF in this repository was generated from the Heretic-Ara BF16 source using the **per-tensor precision allocation from CIRU's Qwen3.8 v3 release** as the reference.
|
| 87 |
+
|
| 88 |
+
That includes the important v3 storage decisions such as:
|
| 89 |
+
|
| 90 |
+
* Q8 output projection;
|
| 91 |
+
* selected LateQ6 precision islands;
|
| 92 |
+
* the remaining mixed ROCmFPX tensor allocation.
|
| 93 |
+
|
| 94 |
+
### FFNEQ note
|
| 95 |
+
|
| 96 |
+
CIRU's official v3 model is named:
|
| 97 |
+
|
| 98 |
+
`Qwen3.8-27B-CIRU-ActiveFPX-PromptForge-v3-Q8-FFNEQ-LateQ6.gguf`
|
| 99 |
+
|
| 100 |
+
The `FFNEQ` part refers to an FFN-equalization treatment in CIRU's model-production process.
|
| 101 |
+
|
| 102 |
+
This Heretic build reproduces the **v3 tensor-type / precision allocation**, but does **not claim to reproduce CIRU's unpublished FFNEQ weight transformation** unless explicitly stated otherwise.
|
| 103 |
+
|
| 104 |
+
In other words:
|
| 105 |
+
|
| 106 |
+
```text
|
| 107 |
+
Heretic-Ara BF16
|
| 108 |
+
|
|
| 109 |
+
+--> CIRU v3-style Q8 / LateQ6 / ROCmFPX allocation
|
| 110 |
+
| |
|
| 111 |
+
| +--> compact GGUF
|
| 112 |
+
|
|
| 113 |
+
+--> BF16-derived PromptForge W8 views
|
| 114 |
+
|
|
| 115 |
+
+--> FFN.pfs
|
| 116 |
+
+--> GDN.pfs
|
| 117 |
+
```
|
| 118 |
+
|
| 119 |
+
## PromptForge sidecars
|
| 120 |
+
|
| 121 |
+
The `.pfs` files are **not independent models** and should not be mixed with another Qwen3.8 checkpoint.
|
| 122 |
+
|
| 123 |
+
They are prepacked W8 compute views generated from this model's BF16 weights.
|
| 124 |
+
|
| 125 |
+
### FFN sidecar
|
| 126 |
+
|
| 127 |
+
Contains W8 prompt-time views of:
|
| 128 |
+
|
| 129 |
+
```text
|
| 130 |
+
ffn_gate
|
| 131 |
+
ffn_up
|
| 132 |
+
ffn_down
|
| 133 |
+
```
|
| 134 |
+
|
| 135 |
+
for all 64 language-model layers.
|
| 136 |
+
|
| 137 |
+
The fixed Qwen3.8 PromptForge FFN ABI uses a file size of:
|
| 138 |
+
|
| 139 |
+
```text
|
| 140 |
+
17,123,004,416 bytes
|
| 141 |
+
```
|
| 142 |
+
|
| 143 |
+
### GDN sidecar
|
| 144 |
+
|
| 145 |
+
Contains the merged W8:
|
| 146 |
+
|
| 147 |
+
```text
|
| 148 |
+
attn_qkv + attn_gate/Z
|
| 149 |
+
```
|
| 150 |
+
|
| 151 |
+
views used by the 48 Gated DeltaNet layers.
|
| 152 |
+
|
| 153 |
+
The fixed GDN sidecar size is:
|
| 154 |
+
|
| 155 |
+
```text
|
| 156 |
+
4,029,685,760 bytes
|
| 157 |
+
```
|
| 158 |
+
|
| 159 |
+
## Output-K8 status
|
| 160 |
+
|
| 161 |
+
CIRU's official v3 release also includes a third sidecar:
|
| 162 |
+
|
| 163 |
+
```text
|
| 164 |
+
PromptForge-Output-K8.pfs
|
| 165 |
+
```
|
| 166 |
+
|
| 167 |
+
That file provides a draft-only top-8 output shortlist used by the v3 MTP path before authoritative Q8 reranking.
|
| 168 |
+
|
| 169 |
+
**This repository does not currently include a Heretic-specific Output-K8 proxy.**
|
| 170 |
+
|
| 171 |
+
Do not use CIRU's Output-K8 sidecar with this model: it was generated from CIRU's output weights, not the Heretic-Ara weights.
|
| 172 |
+
|
| 173 |
+
The FFN and GDN PromptForge paths work independently of Output-K8.
|
| 174 |
+
|
| 175 |
+
---
|
| 176 |
+
|
| 177 |
+
# Running with the CIRU PromptForge runtime
|
| 178 |
+
|
| 179 |
+
The optimized path is intended primarily for AMD Strix Halo / Radeon 8060S (`gfx1151`).
|
| 180 |
+
|
| 181 |
+
CIRU developed and validated the Qwen3.8 PromptForge work with a pinned TheRock ROCm 7.15 environment and a pinned Composable Kernel revision.
|
| 182 |
+
|
| 183 |
+
A sufficiently compatible ROCm toolchain with working `gfx1151` HIP support is required.
|
| 184 |
+
|
| 185 |
+
## 1. Download this repository
|
| 186 |
+
|
| 187 |
+
Install the Hugging Face CLI if necessary:
|
| 188 |
+
|
| 189 |
+
```bash
|
| 190 |
+
python3 -m pip install -U huggingface_hub
|
| 191 |
+
```
|
| 192 |
+
|
| 193 |
+
Download the repository:
|
| 194 |
+
|
| 195 |
+
```bash
|
| 196 |
+
export MODEL_DIR="$HOME/models/Qwen3.8-27B-Heretic-ROCmFPX-STRIX"
|
| 197 |
+
|
| 198 |
+
mkdir -p "$MODEL_DIR"
|
| 199 |
+
|
| 200 |
+
hf download \
|
| 201 |
+
tonyrishwain/Qwen3.8-27B-Heretic-ROCmFPX-STRIX \
|
| 202 |
+
--local-dir "$MODEL_DIR"
|
| 203 |
+
```
|
| 204 |
+
|
| 205 |
+
Find the artifacts:
|
| 206 |
+
|
| 207 |
+
```bash
|
| 208 |
+
export MODEL="$(find "$MODEL_DIR" -maxdepth 1 -type f -name '*.gguf' | head -n1)"
|
| 209 |
+
export FFN="$(find "$MODEL_DIR" -maxdepth 1 -type f -iname '*ffn*.pfs' | head -n1)"
|
| 210 |
+
export GDN="$(find "$MODEL_DIR" -maxdepth 1 -type f -iname '*gdn*.pfs' | head -n1)"
|
| 211 |
+
|
| 212 |
+
printf 'MODEL=%s\nFFN=%s\nGDN=%s\n' \
|
| 213 |
+
"$MODEL" "$FFN" "$GDN"
|
| 214 |
+
```
|
| 215 |
+
|
| 216 |
+
Verify the PFS sizes:
|
| 217 |
+
|
| 218 |
+
```bash
|
| 219 |
+
stat -c '%n %s' "$FFN" "$GDN"
|
| 220 |
+
```
|
| 221 |
+
|
| 222 |
+
Expected:
|
| 223 |
+
|
| 224 |
+
```text
|
| 225 |
+
FFN: 17123004416
|
| 226 |
+
GDN: 4029685760
|
| 227 |
+
```
|
| 228 |
+
|
| 229 |
+
## 2. Install build dependencies
|
| 230 |
+
|
| 231 |
+
### Fedora
|
| 232 |
+
|
| 233 |
+
```bash
|
| 234 |
+
sudo dnf install -y \
|
| 235 |
+
@development-tools \
|
| 236 |
+
cmake \
|
| 237 |
+
ninja-build \
|
| 238 |
+
git \
|
| 239 |
+
python3 \
|
| 240 |
+
libcurl-devel
|
| 241 |
+
```
|
| 242 |
+
|
| 243 |
+
You also need a ROCm/HIP installation capable of compiling and running `gfx1151`.
|
| 244 |
+
|
| 245 |
+
CIRU's published v3 measurements use ROCm 7.15. Distribution-provided ROCm versions may differ.
|
| 246 |
+
|
| 247 |
+
Verify your GPU:
|
| 248 |
+
|
| 249 |
+
```bash
|
| 250 |
+
rocminfo | grep -m1 gfx1151
|
| 251 |
+
```
|
| 252 |
+
|
| 253 |
+
You should see `gfx1151`.
|
| 254 |
+
|
| 255 |
+
## 3. Download CIRU's v3 runtime patch
|
| 256 |
+
|
| 257 |
+
The v3 runtime is built from CIRU's public v2.3 tag plus the v3 Output-K8 patch.
|
| 258 |
+
|
| 259 |
+
Even though this model does not currently use Output-K8, using the current patched runtime keeps the execution stack aligned with CIRU v3.
|
| 260 |
+
|
| 261 |
+
```bash
|
| 262 |
+
export CIRU_PATCH="$HOME/ciru-qwen38-v3"
|
| 263 |
+
|
| 264 |
+
mkdir -p "$CIRU_PATCH"
|
| 265 |
+
|
| 266 |
+
hf download \
|
| 267 |
+
jcbtc/Qwen3.8-27B-CIRU-ActiveFPX-PromptForge \
|
| 268 |
+
runtime/qwen38-v3-output-k8-runtime.patch \
|
| 269 |
+
--local-dir "$CIRU_PATCH"
|
| 270 |
+
```
|
| 271 |
+
|
| 272 |
+
## 4. Clone ROCmFPX
|
| 273 |
+
|
| 274 |
+
```bash
|
| 275 |
+
mkdir -p "$HOME/src"
|
| 276 |
+
cd "$HOME/src"
|
| 277 |
+
|
| 278 |
+
git clone https://github.com/ciru-ai/ROCmFPX.git
|
| 279 |
+
cd ROCmFPX
|
| 280 |
+
|
| 281 |
+
git checkout qwen3.8-activefpx-promptforge-v2.3
|
| 282 |
+
|
| 283 |
+
git am \
|
| 284 |
+
"$CIRU_PATCH/runtime/qwen38-v3-output-k8-runtime.patch"
|
| 285 |
+
```
|
| 286 |
+
|
| 287 |
+
## 5. Clone the pinned Composable Kernel
|
| 288 |
+
|
| 289 |
+
```bash
|
| 290 |
+
cd "$HOME/src"
|
| 291 |
+
|
| 292 |
+
git clone https://github.com/ROCm/composable_kernel.git
|
| 293 |
+
|
| 294 |
+
git -C composable_kernel checkout \
|
| 295 |
+
fdf4bb7fcc984811cef48ce817d89aac064b984a
|
| 296 |
+
```
|
| 297 |
+
|
| 298 |
+
Set:
|
| 299 |
+
|
| 300 |
+
```bash
|
| 301 |
+
export ROCMFPX="$HOME/src/ROCmFPX"
|
| 302 |
+
export CK="$HOME/src/composable_kernel"
|
| 303 |
+
```
|
| 304 |
+
|
| 305 |
+
## 6. Configure ROCm
|
| 306 |
+
|
| 307 |
+
If your ROCm installation is under `/opt/rocm`:
|
| 308 |
+
|
| 309 |
+
```bash
|
| 310 |
+
export ROCM_PATH=/opt/rocm
|
| 311 |
+
export PATH="$ROCM_PATH/bin:$ROCM_PATH/llvm/bin:$PATH"
|
| 312 |
+
export LD_LIBRARY_PATH="$ROCM_PATH/lib:$ROCM_PATH/lib/llvm/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
|
| 313 |
+
```
|
| 314 |
+
|
| 315 |
+
Check:
|
| 316 |
+
|
| 317 |
+
```bash
|
| 318 |
+
"$ROCM_PATH/bin/rocminfo" | grep -m1 gfx1151
|
| 319 |
+
```
|
| 320 |
+
|
| 321 |
+
On Fedora or a custom TheRock installation, `ROCM_PATH` may be somewhere else. Adjust the path accordingly.
|
| 322 |
+
|
| 323 |
+
## 7. Build the PromptForge server
|
| 324 |
+
|
| 325 |
+
```bash
|
| 326 |
+
cd "$ROCMFPX"
|
| 327 |
+
|
| 328 |
+
cmake -S . -B build-promptforge -G Ninja \
|
| 329 |
+
-DCMAKE_BUILD_TYPE=Release \
|
| 330 |
+
-DCMAKE_C_COMPILER="$ROCM_PATH/llvm/bin/clang" \
|
| 331 |
+
-DCMAKE_CXX_COMPILER="$ROCM_PATH/llvm/bin/clang++" \
|
| 332 |
+
-DCMAKE_HIP_COMPILER="$ROCM_PATH/llvm/bin/clang++" \
|
| 333 |
+
-DCMAKE_PREFIX_PATH="$ROCM_PATH" \
|
| 334 |
+
-DGGML_HIP=ON \
|
| 335 |
+
-DGGML_CUDA=OFF \
|
| 336 |
+
-DGGML_VULKAN=OFF \
|
| 337 |
+
-DGGML_HIP_FORCE_MMQ=ON \
|
| 338 |
+
-DGGML_HIP_GRAPHS=ON \
|
| 339 |
+
-DGGML_HIP_MMQ_MFMA=ON \
|
| 340 |
+
-DGGML_HIP_NO_VMM=ON \
|
| 341 |
+
-DGGML_HIP_ROCWMMA_FATTN=OFF \
|
| 342 |
+
-DGGML_NATIVE=ON \
|
| 343 |
+
-DAMDGPU_TARGETS=gfx1151 \
|
| 344 |
+
-DGPU_BUILD_TARGETS=gfx1151 \
|
| 345 |
+
-DPROMPTFORGE_CK_ROOT="$CK" \
|
| 346 |
+
-DGGML_BUILD_TESTS=OFF \
|
| 347 |
+
-DLLAMA_BUILD_TESTS=OFF \
|
| 348 |
+
-DLLAMA_BUILD_SERVER=ON
|
| 349 |
+
```
|
| 350 |
+
|
| 351 |
+
Build:
|
| 352 |
+
|
| 353 |
+
```bash
|
| 354 |
+
cmake --build build-promptforge \
|
| 355 |
+
--target llama-server \
|
| 356 |
+
-j"$(nproc)"
|
| 357 |
+
```
|
| 358 |
+
|
| 359 |
+
## 8. Configure PromptForge for this model
|
| 360 |
+
|
| 361 |
+
Enable the two model-specific sidecars:
|
| 362 |
+
|
| 363 |
+
```bash
|
| 364 |
+
export PROMPTFORGE_SIDECAR="$FFN"
|
| 365 |
+
export PROMPTFORGE_GDN_SIDECAR="$GDN"
|
| 366 |
+
|
| 367 |
+
export PROMPTFORGE_MODE=m2048_fused_tail1476
|
| 368 |
+
export PROMPTFORGE_ENABLE_SMALLM_W8=1
|
| 369 |
+
|
| 370 |
+
export GGML_CUDA_GRAPH_OPT=0
|
| 371 |
+
export HIP_VISIBLE_DEVICES=0
|
| 372 |
+
export HSA_OVERRIDE_GFX_VERSION=11.5.1
|
| 373 |
+
```
|
| 374 |
+
|
| 375 |
+
Because this repository does **not** contain a Heretic-specific Output-K8 proxy, explicitly disable that path:
|
| 376 |
+
|
| 377 |
+
```bash
|
| 378 |
+
unset PROMPTFORGE_MTP_OUTPUT_K8
|
| 379 |
+
unset PROMPTFORGE_MTP_OUTPUT_K8_VALIDATE
|
| 380 |
+
unset PROMPTFORGE_MTP_OUTPUT_K8_PROXY
|
| 381 |
+
```
|
| 382 |
+
|
| 383 |
+
Also keep the experimental IU4/ngram paths disabled:
|
| 384 |
+
|
| 385 |
+
```bash
|
| 386 |
+
unset PROMPTFORGE_IU4_SIDECAR
|
| 387 |
+
unset PROMPTFORGE_GDN_IU4_SIDECAR
|
| 388 |
+
unset PROMPTFORGE_ENABLE_NGRAM_MOD
|
| 389 |
+
unset PROMPTFORGE_ENABLE_NGRAM_M65_IU4
|
| 390 |
+
```
|
| 391 |
+
|
| 392 |
+
For the pre-Output-K8 MTP selection path:
|
| 393 |
+
|
| 394 |
+
```bash
|
| 395 |
+
export LLAMA_MTP_CPU_ARGMAX_FASTPATH=1
|
| 396 |
+
unset LLAMA_MTP_BACKEND_GREEDY
|
| 397 |
+
```
|
| 398 |
+
|
| 399 |
+
Set runtime library paths:
|
| 400 |
+
|
| 401 |
+
```bash
|
| 402 |
+
export LD_LIBRARY_PATH="$ROCMFPX/build-promptforge/bin:$ROCM_PATH/lib:$ROCM_PATH/lib/llvm/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
|
| 403 |
+
```
|
| 404 |
+
|
| 405 |
+
## 9. Start the server
|
| 406 |
+
|
| 407 |
+
```bash
|
| 408 |
+
cd "$ROCMFPX"
|
| 409 |
+
|
| 410 |
+
./build-promptforge/bin/llama-server \
|
| 411 |
+
-m "$MODEL" \
|
| 412 |
+
--alias heretic \
|
| 413 |
+
--host 127.0.0.1 \
|
| 414 |
+
--port 8080 \
|
| 415 |
+
--jinja \
|
| 416 |
+
-fit off \
|
| 417 |
+
-dev ROCm0 \
|
| 418 |
+
-ngl 999 \
|
| 419 |
+
-c 262144 \
|
| 420 |
+
-b 2048 \
|
| 421 |
+
-ub 2048 \
|
| 422 |
+
-fa on \
|
| 423 |
+
-ctk f16 \
|
| 424 |
+
-ctv f16 \
|
| 425 |
+
-t 16 \
|
| 426 |
+
-tb 16 \
|
| 427 |
+
-np 1 \
|
| 428 |
+
-ctxcp 0 \
|
| 429 |
+
--cache-ram 0 \
|
| 430 |
+
--no-cache-prompt \
|
| 431 |
+
--no-cache-idle-slots \
|
| 432 |
+
--timeout 3600 \
|
| 433 |
+
--metrics \
|
| 434 |
+
--spec-type draft-mtp \
|
| 435 |
+
--spec-draft-device ROCm0 \
|
| 436 |
+
--spec-draft-ngl 999 \
|
| 437 |
+
--spec-draft-type-k f16 \
|
| 438 |
+
--spec-draft-type-v f16 \
|
| 439 |
+
--spec-draft-n-max 4 \
|
| 440 |
+
--spec-draft-n-min 0 \
|
| 441 |
+
--spec-draft-p-min 0.0 \
|
| 442 |
+
--spec-draft-p-split 0.10 \
|
| 443 |
+
--spec-draft-backend-sampling \
|
| 444 |
+
--temp 0.7 \
|
| 445 |
+
--top-p 0.95 \
|
| 446 |
+
--reasoning off \
|
| 447 |
+
--reasoning-format none \
|
| 448 |
+
--reasoning-budget -1
|
| 449 |
+
```
|
| 450 |
+
|
| 451 |
+
The OpenAI-compatible API will be available at:
|
| 452 |
+
|
| 453 |
+
```text
|
| 454 |
+
http://127.0.0.1:8080/v1
|
| 455 |
+
```
|
| 456 |
+
|
| 457 |
+
## 10. Test the server
|
| 458 |
+
|
| 459 |
+
```bash
|
| 460 |
+
curl http://127.0.0.1:8080/v1/chat/completions \
|
| 461 |
+
-H 'Content-Type: application/json' \
|
| 462 |
+
-d '{
|
| 463 |
+
"model": "heretic",
|
| 464 |
+
"messages": [
|
| 465 |
+
{
|
| 466 |
+
"role": "user",
|
| 467 |
+
"content": "Explain why the sky appears blue."
|
| 468 |
+
}
|
| 469 |
+
],
|
| 470 |
+
"max_tokens": 256,
|
| 471 |
+
"temperature": 0.7
|
| 472 |
+
}'
|
| 473 |
+
```
|
| 474 |
+
|
| 475 |
+
## Smaller context configurations
|
| 476 |
+
|
| 477 |
+
The CIRU v3 reference profile uses:
|
| 478 |
+
|
| 479 |
+
```text
|
| 480 |
+
-c 262144
|
| 481 |
+
```
|
| 482 |
+
|
| 483 |
+
which is appropriate for a high-memory Strix Halo configuration but consumes substantial unified memory.
|
| 484 |
+
|
| 485 |
+
If you do not need the full context window, you can reduce it, for example:
|
| 486 |
+
|
| 487 |
+
```text
|
| 488 |
+
-c 65536
|
| 489 |
+
```
|
| 490 |
+
|
| 491 |
+
or:
|
| 492 |
+
|
| 493 |
+
```text
|
| 494 |
+
-c 131072
|
| 495 |
+
```
|
| 496 |
+
|
| 497 |
+
This does not change the GGUF or PFS files; it only changes runtime memory allocation.
|
| 498 |
+
|
| 499 |
+
---
|
| 500 |
+
|
| 501 |
+
# GGUF-only operation
|
| 502 |
+
|
| 503 |
+
The `.pfs` files are optional.
|
| 504 |
+
|
| 505 |
+
To run the compact model without PromptForge:
|
| 506 |
+
|
| 507 |
+
```bash
|
| 508 |
+
unset PROMPTFORGE_SIDECAR
|
| 509 |
+
unset PROMPTFORGE_GDN_SIDECAR
|
| 510 |
+
unset PROMPTFORGE_MODE
|
| 511 |
+
unset PROMPTFORGE_ENABLE_SMALLM_W8
|
| 512 |
+
unset PROMPTFORGE_MTP_OUTPUT_K8
|
| 513 |
+
unset PROMPTFORGE_MTP_OUTPUT_K8_PROXY
|
| 514 |
+
```
|
| 515 |
+
|
| 516 |
+
Then start a compatible llama.cpp / ROCmFPX server with the GGUF normally.
|
| 517 |
+
|
| 518 |
+
The GGUF remains the authoritative model representation. PromptForge sidecars are alternate compute views used only on qualified execution paths.
|
| 519 |
+
|
| 520 |
+
---
|
| 521 |
+
|
| 522 |
+
# Vision support
|
| 523 |
+
|
| 524 |
+
Qwen3.8-27B is natively multimodal, but this repository currently focuses on the language-model GGUF and PromptForge language-model sidecars.
|
| 525 |
+
|
| 526 |
+
No vision projector is assumed by the launch command above.
|
| 527 |
+
|
| 528 |
+
If adding multimodal support, use a compatible Qwen3.8 projector whose provenance has been verified against the source checkpoint rather than blindly mixing unrelated model artifacts.
|
| 529 |
+
|
| 530 |
+
---
|
| 531 |
+
|
| 532 |
+
# Why the PFS files are model-specific
|
| 533 |
+
|
| 534 |
+
PromptForge does not simply contain generic kernels.
|
| 535 |
+
|
| 536 |
+
The sidecars contain quantized/prepacked views of the actual model weights.
|
| 537 |
+
|
| 538 |
+
Therefore:
|
| 539 |
+
|
| 540 |
+
```text
|
| 541 |
+
Heretic GGUF + Heretic PFS correct
|
| 542 |
+
|
| 543 |
+
CIRU GGUF + CIRU PFS correct
|
| 544 |
+
|
| 545 |
+
Heretic GGUF + CIRU PFS incorrect
|
| 546 |
+
```
|
| 547 |
+
|
| 548 |
+
Mixing sidecars between different fine-tunes or ablations may silently cause PromptForge execution to use weights from a different model.
|
| 549 |
+
|
| 550 |
+
Always keep the GGUF and `.pfs` files from the same repository/build together.
|
| 551 |
+
|
| 552 |
+
---
|
| 553 |
+
|
| 554 |
+
# Hardware target
|
| 555 |
+
|
| 556 |
+
Primary target:
|
| 557 |
+
|
| 558 |
+
```text
|
| 559 |
+
AMD Ryzen AI Max+ 395
|
| 560 |
+
Radeon 8060S
|
| 561 |
+
gfx1151
|
| 562 |
+
Strix Halo
|
| 563 |
+
```
|
| 564 |
+
|
| 565 |
+
The ROCmFPX formats themselves may work on other AMD hardware, but PromptForge contains specialized model- and kernel-level paths and should not be assumed portable without testing.
|
| 566 |
+
|
| 567 |
+
CIRU's published Qwen3.8 performance work was developed specifically around `gfx1151`.
|
| 568 |
+
|
| 569 |
+
---
|
| 570 |
+
|
| 571 |
+
# Notes on "uncensored"
|
| 572 |
+
|
| 573 |
+
This repository inherits the behavioral modification of the Heretic-Ara source model.
|
| 574 |
+
|
| 575 |
+
"Uncensored" or "decensored" describes the model-building goal; it is not a guarantee that every prompt will produce a particular response, nor that the model is more accurate than the original Qwen checkpoint.
|
| 576 |
+
|
| 577 |
+
Quantization can also introduce small numerical differences relative to BF16.
|
| 578 |
+
|
| 579 |
+
Users should evaluate the model for their own workloads.
|
| 580 |
+
|
| 581 |
+
---
|
| 582 |
+
|
| 583 |
+
# Credits
|
| 584 |
+
|
| 585 |
+
Model:
|
| 586 |
+
|
| 587 |
+
* [Qwen / Qwen3.8-27B](https://huggingface.co/Qwen/Qwen3.8-27B)
|
| 588 |
+
* [trohrbaugh / Qwen3.8-27B-heretic-ara](https://huggingface.co/trohrbaugh/Qwen3.8-27B-heretic-ara)
|
| 589 |
+
* [p-e-w / Heretic](https://github.com/p-e-w/heretic)
|
| 590 |
+
|
| 591 |
+
Quantization and inference:
|
| 592 |
+
|
| 593 |
+
* [CIRU ROCmFPX](https://github.com/ciru-ai/ROCmFPX)
|
| 594 |
+
* [CIRU Qwen3.8 ActiveFPX + PromptForge](https://huggingface.co/jcbtc/Qwen3.8-27B-CIRU-ActiveFPX-PromptForge)
|
| 595 |
+
* [llama.cpp](https://github.com/ggml-org/llama.cpp)
|
| 596 |
+
* [AMD Composable Kernel](https://github.com/ROCm/composable_kernel)
|
| 597 |
+
|
| 598 |
+
Thanks to the Qwen team, the Heretic contributors, CIRU Inference Lab, llama.cpp contributors, and AMD ROCm/Composable Kernel contributors.
|
| 599 |
+
|
| 600 |
+
## License
|
| 601 |
+
|
| 602 |
+
The upstream Qwen3.8 model is released under Apache-2.0. This derived model repository follows the applicable upstream model license.
|
| 603 |
+
|
| 604 |
+
Runtime projects and third-party components retain their own respective licenses.
|