Harsha001's picture
Card: inkling2-mini branch pushed, new ROCmIQ low-bit quant for Strix Halo
ba6cd5a verified
|
Raw History Blame Contribute Delete
8.48 kB
---
license: apache-2.0
base_model:
- thinkingmachines/Inkling-2-Mini
- AtomicChat/Inkling-2-Mini-Uncensored-GGUF
base_model_relation: quantized
pipeline_tag: text-generation
library_name: gguf
tags: [gguf, rocmfpx, amd, vulkan, rocm, strix-halo, quantized, moe, inkling, inkling2, uncensored, abliterated]
---
# Inkling 2 Mini Uncensored ROCmFPX (AMD GPUs and Strix Halo)
> **Update, 24 November 2026: the fork branch is pushed and up to date.** The `inkling2-mini` branch of
> [ROCmFPX](https://github.com/HarshaVardhan3002/ROCmFPX/tree/inkling2-mini) is now on GitHub, on top of the current
> fork `main`. It has everything these files need, and it now also has the Inkling chat format parser (ported from
> upstream llama.cpp): with `--jinja` the thinking comes back separately from the answer and tool calls are parsed.
> The files in this repository did not change.
> **New: a low-bit quant made for Strix Halo (ROCmIQ).** The ROCmFPX fork has two new weight formats built and tuned
> on Strix Halo (Radeon 8060S): `ROCMIQ2_XXS` (2.06 bits per weight) and `ROCMIQ1_S` (1.56 bits per weight).
> First result on Strix Halo with Vulkan, a 4B dense test model, same file size as the stock 2-bit quant:
>
> | 2-bit build | Size | Perplexity (lower is better) | Prompt tok/s | Generation tok/s |
> |---|---:|---:|---:|---:|
> | stock `IQ2_XXS` | 1.33 GB | 96.7 | 1846 | 95.4 |
> | **`ROCMIQ2_XXS`** | 1.35 GB | **49.6** | 1734 | 88.7 |
>
> That is about half the error at the same size, for 6 to 7% less speed. `ROCMIQ1_S` is meant for very large models
> (no 1-bit quant is usable on a 4B model). Upcoming models will come with a ROCmIQ low-bit file next to the regular
> ROCmFPX files. This repository has no ROCmIQ file yet: mixture-of-experts models like this one are still being checked.
>
> **Please test the new quant and tell us what you see.** Build branch
> [`rocmfpx-sub2`](https://github.com/HarshaVardhan3002/ROCmFPX/tree/rocmfpx-sub2) with Vulkan or ROCm, then quantize
> a model of your choice and measure it:
>
> ```
> LLAMA_ROCMFPX_TENSOR_SCALE=1 llama-quantize --imatrix imatrix.gguf model-F16.gguf model-ROCMIQ2_XXS.gguf ROCMIQ2_XXS
> llama-bench -m model-ROCMIQ2_XXS.gguf -ngl 99 -p 512 -n 128
> ```
>
> Post in the Community tab: your GPU, backend (Vulkan or ROCm) and driver, the prompt and generation speed, and how
> the answers compare with a stock quant of the same size.
> **Update, 21 November 2026: the files in this repository are now the uncensored model.** They are built from
> Thinking Machines' original weights with [AtomicChat's uncensoring edit](https://huggingface.co/AtomicChat/Inkling-2-Mini-Uncensored-GGUF)
> merged in, and they replace the earlier censored files. A 6-bit file was added. The repository and the files were
> renamed to Inkling-2-Mini-Uncensored (old links redirect here). The model now answers
> requests the original refuses. The earlier files are still in this repository's commit history.
Hardware-aware GGUF quants of [Inkling 2 Mini by Thinking Machines](https://huggingface.co/thinkingmachines/Inkling-2-Mini),
built with the [ROCmFPX](https://github.com/HarshaVardhan3002/ROCmFPX) weight formats for AMD GPUs (Vulkan and ROCm).
Inkling 2 Mini: 26.1B parameters, 24 layers, 128 experts per layer with 8 active per token (about 3.1B active
parameters per layer pass). It is a looped model: layers 6 to 17 run three times per token, so a token passes through
48 layers. Text only here: the vision encoder and the multi-token prediction drafter are not included.
> Not an official release. All credit for the model goes to Thinking Machines, and for the uncensoring edit to AtomicChat.
## Files
| File | Size | Weights | Fits |
|---|---:|---|---|
| `Inkling-2-Mini-Uncensored-Q8_0_ROCMFPX.gguf` | 26.9 GB | everything 8-bit ROCmFPX (token embedding Q8_0) | best quality: Strix Halo, 32 GB AMD GPUs |
| `Inkling-2-Mini-Uncensored-Q6_K_ROCMFPX.gguf` | 21.6 GB | experts 6-bit ROCmFPX, everything else 8-bit ROCmFPX | Strix Halo, 24 to 32 GB AMD GPUs |
| `Inkling-2-Mini-Uncensored-Q4_0_ROCMFP4_STRIX_O8.gguf` | 15.5 GB | experts ROCmFP4, everything else 8-bit ROCmFPX | smallest: 24 GB AMD GPUs, Strix Halo with room for long context |
The names start with a stock type name (`Q8_0`, `Q6_K`, `Q4_0`) only so the Hugging Face file list sorts them by
bit width. The weights are ROCmFPX formats and need the ROCmFPX fork.
## The uncensoring edit
AtomicChat's edit is a rank-1 LoRA on the attention output and the routed experts of all 24 layers plus the token
embedding. In each layer it removes that layer's refusal direction. Their measurements: no refusals on their harmful
test prompts in English and Russian (the original refused 91 to 100%), no refusals on XSTest's safe prompts (the
original refused 4%), MMLU 79.15% against 80.65% for the original. See their card for the full table.
Here their adapter (`Inkling-2-Mini-Uncensored-LoRA.gguf`, revision `40886ab6`) is merged at strength 1 into the original
checkpoint in full precision, and that merged model is the reference for the numbers below.
This model will answer requests that the original refuses. You are responsible for how you use it.
## Quality
KL divergence against the merged full-precision model, 40 chunks of 512 tokens of English Wikipedia text
(wikitext-2), CPU. Lower is better. "Same top token" is how often the file's most likely next token matches the
reference.
| Build | Size | Perplexity | KL to reference | Same top token |
|---|---:|---:|---:|---:|
| Merged reference (not published) | 50.5 GB | 6.775 | | |
| original model, for comparison (not published) | 22.9 GB | 6.743 | | |
| **Q8_0_ROCMFPX** | 26.9 GB | 6.758 | 0.0039 | 97.4% |
| **Q6_K_ROCMFPX** | 21.6 GB | 6.777 | 0.0046 | 96.9% |
| **Q4_0_ROCMFP4_STRIX_O8** | 15.5 GB | 6.799 | 0.0119 | 95.2% |
The quantization costs the same as in the earlier censored files (Q8 0.0039, 4-bit 0.0120 against their own
reference). The edit itself raises wikitext perplexity by about 0.5% (6.743 to 6.775).
Every file also passed a greedy chat check before upload ("What is the capital of France? Answer in one word." gives
"Paris"), and answered three prompts the original refuses.
## Running it
Inkling 2 Mini needs the looped `inkling2` graph, which is only in the ROCmFPX fork of llama.cpp (branch
`inkling2-mini`). These files do not load in upstream llama.cpp, and AtomicChat's files do not load in the fork: the
two use different tensor layouts. Build the fork with Vulkan or ROCm/HIP:
```
git clone -b inkling2-mini https://github.com/HarshaVardhan3002/ROCmFPX
```
then for example:
```
llama-server -m Inkling-2-Mini-Uncensored-Q4_0_ROCMFP4_STRIX_O8.gguf -ngl 99 -c 16384 --jinja
```
Known limits of this first version:
- Only the CPU path has been checked against the original PyTorch model (it matches to about 5e-6 on a small test
model, and the tokenizer matches exactly). Vulkan and ROCm have not been tried yet. Please report in the Community
tab whether it runs, how fast, and how the answers look.
- The chat parser for Inkling's message format is new (24 November). It passes the parser tests, but it has not
been tried end to end with these files yet, so please report anything that looks wrong (for example Inkling's own
markers such as `<|content_thinking|>` showing up in answers, or tool calls that are not picked up).
- The chat template accepts `reasoning_effort` as `none`, `minimal`, `low`, `medium`, `high`, `xhigh` or `max`,
or as a number from 0 to 0.99 (default 0.9).
## How it was made
- Converted from the original checkpoint. The expert down projections, the attention outputs and the token embedding
get the LoRA added in F32; the other NVFP4 experts are kept as they are. Then requantized with `llama-quantize`.
- ROCmFPX tensor scales on (a power-of-two scale per tensor, stored as `.scale`), token embedding Q8_0.
- Importance matrix from a general text mix (prose, code, chat), taken on the original weights (a rank-1 edit
barely changes it).
## Credits and license
- Model: [thinkingmachines/Inkling-2-Mini](https://huggingface.co/thinkingmachines/Inkling-2-Mini), Apache-2.0.
- Uncensoring edit: [AtomicChat/Inkling-2-Mini-Uncensored-GGUF](https://huggingface.co/AtomicChat/Inkling-2-Mini-Uncensored-GGUF), Apache-2.0.
- Runtime: [llama.cpp](https://github.com/ggml-org/llama.cpp), with Inkling 2 and ROCmFPX support in
[ROCmFPX](https://github.com/HarshaVardhan3002/ROCmFPX).
Apache-2.0. See `LICENSE`.