Inkling 2 Mini: pi agent adapter + refusal removal, as one LoRA
One LoRA adapter for Inkling 2 Mini that applies two existing adapters at once:
- harness-hub/Inkling-2-Mini-pi-adapted (its
vllm/adapter): rank 32 on the attention projections, trained on pi coding-agent traces. - OpenUncensored/Inkling-2-Mini-Uncensored-LoRA:
rank 2 on
attn.wo_udof layers 4 to 23, an abliteration that removes refusals.
Nothing was trained here. vLLM applies one LoRA per request, so two adapters cannot be stacked at serve time; this file is the two stacked offline.
How it was made
A LoRA adds scaling * B @ A to a weight. Two of them on the same weight add up, and the sum is again low rank: the
A matrices are concatenated by rows and the B matrices by columns, with each adapter's scaling (lora_alpha / r:
2.0 for the pi adapter, 1.0 for the refusal removal) multiplied into its B. Modules that only the pi adapter touches
are padded with zeros, so every module has rank 34 and the config uses lora_alpha = r = 34.
combine.py in this repo does that and checks, for each of the 96 modules, that the result equals the sum of the two
adapters. The worst relative error was 2e-16.
python combine.py --a pi-adapter-dir --b uncensored-lora-dir --out combined-dir
The two edits barely overlap: measured on the base weights, the pi adapter adds 0.1 to 0.2% of the base's component in the refusal subspace, so it does not undo the removal.
Serve it with vLLM
Rank 34 is above the usual limit of 32:
vllm serve thinkingmachines/Inkling-2-Mini \
--enable-lora --max-lora-rank 64 --max-loras 1 \
--lora-modules inkling-pi-uncensored=<path-to-this-repo>
What was measured
One RTX 5090, vLLM nightly, FP8 KV cache, DSpark speculative decoding, median of 3 runs, tokens per second:
| pi adapter | this adapter | |
|---|---|---|
| Prose | 167 | 165 |
| Code | 313 | 306 |
| Reasoning | 265 | 241 |
| 4 requests at once, total | 425 | 430 |
On 5 prompts the pi adapter alone declined or watered down, this adapter answered all 5. A pi agent tool task (count lines with a shell command, write a file) still worked.
Not measured: coding or agent quality against the pi adapter alone, and any benchmark such as MMLU. The source adapters' own cards carry their numbers.
Note
With this adapter the model follows instructions it would otherwise refuse, and it may also push back less on a harmful step inside an agent task. You are responsible for how you use it.
License and credit
Apache 2.0, as both source adapters and the base model. Credit: Thinking Machines (Inkling 2 Mini), harness-hub (pi adapter), OpenUncensored (refusal removal).