Instructions to use benthecarman/Inkling-2-Mini-uncensored with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use benthecarman/Inkling-2-Mini-uncensored with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="benthecarman/Inkling-2-Mini-uncensored") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("benthecarman/Inkling-2-Mini-uncensored") model = AutoModelForMultimodalLM.from_pretrained("benthecarman/Inkling-2-Mini-uncensored", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use benthecarman/Inkling-2-Mini-uncensored with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "benthecarman/Inkling-2-Mini-uncensored" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "benthecarman/Inkling-2-Mini-uncensored", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/benthecarman/Inkling-2-Mini-uncensored
- SGLang
How to use benthecarman/Inkling-2-Mini-uncensored with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "benthecarman/Inkling-2-Mini-uncensored" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "benthecarman/Inkling-2-Mini-uncensored", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "benthecarman/Inkling-2-Mini-uncensored" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "benthecarman/Inkling-2-Mini-uncensored", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use benthecarman/Inkling-2-Mini-uncensored with Docker Model Runner:
docker model run hf.co/benthecarman/Inkling-2-Mini-uncensored
Inkling 2 Mini (Uncensored)
Sponsored by Maple AI.
thinkingmachines/Inkling-2-Mini
(26.4B total MoE, 3.4B active, 24 layers with layers 6-17 looped 3x, text and images in)
with refusals and reasoning-time deflections removed across all reasoning effort levels
(low, medium, high, and off) while keeping the official quantized experts completely
untouched.
Only the 120 uncompressed BF16 attention linear projections (wq_du, wk_dv, wv_dv,
wo_ud, gate_attn) were updated and permanently merged back into
model-00001-of-00001.safetensors in a single fp64 rounding (mean_rel_delta = 1.03%,
max_rel_delta = 1.37%). All 1,124 other tensors (every NVFP4/MXFP8 routed expert,
embedding, router, vision encoder, MTP head, config, tokenizer, and chat template) are
byte-identical to upstream and verified by SHA-256 in MANIFEST.json. This is a standalone
checkpoint (no LoRA adapter required) and runs anywhere the base model runs.
Results
All generative evaluations below (audn, HarmBench-320, HumanEval, and the held-out
final refusal set) were run with the same harness, prompts, uncapped generation (stopped
only by the loop detector, with no token caps), and Inkling 2 Mini's official sampling
default (temperature=1.0, seed=0). KL, 5-shot MMLU, and BFCL were measured
deterministically.
| Benchmark | Base Inkling-2-Mini |
This model |
|---|---|---|
| KL from base (first answer token, thinking off) | 0.000 | 0.230 |
| MMLU (14,042 questions, 5-shot generative, thinking off) | 76.6% | 75.3% |
HumanEval (164 problems, temp=1.0, thinking off) |
97.6% (160/164, 0 loops) | 97.0% (159/164, 0 loops) |
HumanEval (164 problems, temp=1.0, reasoning_effort="low") |
98.2% (161/164, 0 loops) | 99.4% (163/164, 0 loops) |
BFCL v4 tool calling (final fold, 1,205 prompts) |
79.5% | 80.1% |
- BFCL no-tool-fits misses (400) |
64 / 400 | 61 / 400 |
- BFCL tool-fits misses (805) |
183 / 805 | 179 / 805 |
Held-out refusal set (final, 633 prompts, temp=1.0, System One judge) |
91.0% refused (576/633, 0 loops) | 6.6% refused (42/633; 1 degen / 0 doom loops) |
HarmBench-320 (reasoning_effort="low", temp=1.0, DirectRequest ASR) |
1.6% (standard 0.0%, contextual 6.2%, copyright 0.0%) | 65.0% (standard 86.8%, contextual 85.2%, copyright 1.2%; 0 no-answer) |
HarmBench-320 (reasoning_effort="off", temp=1.0, DirectRequest ASR) |
2.5% (standard 0.0%, contextual 9.9%, copyright 0.0%) | 64.7% (standard 84.9%, contextual 88.9%, copyright 0.0%; 0 no-answer) |
audn 520 (reasoning_effort="low", temp=1.0)鹿 |
0.0% delivered / 55.0% deflected / 45.0% refused | 85.0% delivered / 15.0% deflected / 0.0% refused (0 loops, 0 no-answer) |
audn 520 (reasoning_effort="medium", temp=1.0)鹿 |
0.0% delivered / 56.9% deflected / 43.1% refused | 86.7% delivered / 13.3% deflected / 0.0% refused (0 loops, 0 no-answer) |
audn 520 (reasoning_effort="high", temp=1.0)鹿 |
0.0% delivered / 58.7% deflected / 41.3% refused | 88.3% delivered / 11.5% deflected / 0.2% refused (0 loops, 0 no-answer) |
audn 520 (reasoning_effort="off", temp=1.0)鹿 |
0.0% delivered / 59.0% deflected / 41.0% refused | 81.9% delivered / 17.7% deflected / 0.4% refused (1 loop, 0 no-answer) |
鹿 Scored locally with audn's exact judge prompt using untouched base Inkling-2-Mini
(calibrated at 90.3%-91.3% binary agreement against glm-5-3 across 1,556 benchmark replies).
Methodology
Standard abliteration removes hard refusals on Inkling 2 Mini, but the model still tends to deflect during reasoning (for example, turning direct questions into high-level summaries) and large weight edits hurt tool calling and stability. Instead of shipping an abliterated checkpoint directly, we used a four-step on-policy pipeline with no external teacher model:
- Harvest on-policy data: We ran directional abliteration (
abliterix) on a temporary copy of Inkling 2 Mini to collect direct, non-refusing answers written by the model itself across all four reasoning levels (off,low,medium,high). All prompts are disjoint from every evaluation benchmark, and the temporary abliterated copy was discarded. - Train only attention from the untouched base model: Starting fresh from the original
thinkingmachines/Inkling-2-Mini, we trained a small low-rank update on the 120 BF16 attention layers only. Alongside the harvested examples, a KL penalty anchored the model to its original outputs on normal chat and tool-calling prompts so coding, knowledge, and tool use stay intact. - Fix repetition loops: A small follow-up preference pass (DPO, with the same KL anchor)
taught the model to stop cleanly instead of repeating bullet lists on long answers,
eliminating doom loops and cutting repetition loops to near zero (1 loop across 2,080
multi-effort
audnreplies attemp=1.0) while keeping compliance and tool calling strong. - Merge cleanly into the release weights: Both updates were merged once into the original BF16 attention weights. All 1,124 other tensors (every quantized NVFP4/MXFP8 expert, vision encoder, embedding, and MTP head) remain byte-identical to upstream.
How to run
Drop-in replacement for thinkingmachines/Inkling-2-Mini
(~20 GB total, fits on a single 32 GB GPU such as an RTX 5090 with vLLM). The bundled
mtp.safetensors DSpark (MTP/DFlash-style) speculative draft head is byte-identical to
upstream and works out of the box with vLLM:
vllm serve benthecarman/Inkling-2-Mini-uncensored \
--dtype bfloat16 \
--reasoning-parser inkling \
--tool-call-parser inkling \
--enable-auto-tool-choice \
--speculative-config '{"method":"dspark","num_speculative_tokens":7,"draft_sample_method":"probabilistic"}'
Other formats (non-Blackwell GPUs and llama.cpp)
- W4A16 INT4 (Ampere / non-Blackwell GPUs with DSpark MTP): benthecarman/Inkling-2-Mini-uncensored-W4A16
- GGUF (
llama.cppwith DSpark MTP + visionmmproj): benthecarman/Inkling-2-Mini-uncensored-GGUF
- Downloads last month
- 34