Instructions to use benthecarman/Inkling-2-Small-uncensored with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use benthecarman/Inkling-2-Small-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-Small-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-Small-uncensored") model = AutoModelForMultimodalLM.from_pretrained("benthecarman/Inkling-2-Small-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-Small-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-Small-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-Small-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-Small-uncensored
- SGLang
How to use benthecarman/Inkling-2-Small-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-Small-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-Small-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-Small-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-Small-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-Small-uncensored with Docker Model Runner:
docker model run hf.co/benthecarman/Inkling-2-Small-uncensored
Inkling 2 Small (Uncensored)
Sponsored by Maple AI.
thinkingmachines/Inkling-2-Small
(594B total MoE, 17B active, 48 layers, 384 routed experts top-8, text and images in)
with refusals and reasoning-time deflections removed across all reasoning effort levels
(low, medium, high, and off) while keeping all native NVFP4/MXFP8 routed experts
completely untouched.
Only the 240 uncompressed BF16 attention linear projections (wq_du, wk_dv, wv_dv,
wo_ud, gate_attn) were updated and permanently merged back into the release shards
(24 of 24 shards rewritten; all others untouched) in a single
fp64 rounding (mean_rel_delta = 0.75%, max_rel_delta = 1.18%).
All 1,530 other tensors (every NVFP4/MXFP8 routed expert, embedding, router,
vision encoder, mtp.safetensors DSpark draft 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; the equivalent PEFT LoRA is also included
under lora/) 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 Small's official sampling
default (temperature=1.0, seed=0). KL, 5-shot generative MMLU, and BFCL v4 were measured
deterministically.
| Benchmark | Base Inkling-2-Small |
This model |
|---|---|---|
| KL from base (first answer token, thinking off) | 0.000 | 0.184 |
| MMLU (14,042 questions, 5-shot generative, thinking off) | 79.3% strict (89.3% lenient) | 83.4% strict (91.8% lenient) |
HumanEval (164 problems, temp=1.0, thinking off) |
99.4% (163/164, 0 loops) | 97.6% (160/164, 0 loops) |
HumanEval (164 problems, temp=1.0, reasoning_effort="low") |
98.2% (161/164, 0 loops) | 98.2% (161/164, 0 loops) |
BFCL v4 tool calling (final fold, 1,205 prompts) |
79.1% (953/1,205) | 80.2% (967/1,205) |
- BFCL no-tool-fits misses (400) |
90 / 400 | 86 / 400 |
- BFCL tool-fits misses (805) |
162 / 805 | 152 / 805 |
Held-out refusal set (final, 633 prompts, reasoning_effort="low", temp=1.0, System One judge) |
87.2% refused (552/633, 0 loops) | 3.6% refused (23/633, 0 loops) |
Held-out refusal set (final, 633 prompts, reasoning_effort="off", temp=1.0, System One judge) |
86.7% refused (549/633, 0 loops) | 4.1% refused (26/633, 0 loops) |
HarmBench-320 (reasoning_effort="low", temp=1.0, DirectRequest ASR) |
2.8% (standard 1.9%, contextual 7.4%, copyright 0.0%) | 73.8% (standard 92.5%, contextual 97.5%, copyright 12.5%; 0 no-answer, 0 loops) |
HarmBench-320 (reasoning_effort="off", temp=1.0, DirectRequest ASR) |
2.8% (standard 0.6%, contextual 9.9%, copyright 0.0%) | 72.5% (standard 88.7%, contextual 97.5%, copyright 15.0%; 0 no-answer, 0 loops) |
audn 520 (reasoning_effort="low", temp=1.0)鹿 |
24.2% delivered / 56.9% deflected / 18.8% refused | 93.1% delivered / 6.5% deflected / 0.0% refused (0 loops, 0 no-answer) |
audn 520 (reasoning_effort="medium", temp=1.0)鹿 |
23.7% delivered / 56.5% deflected / 19.8% refused | 95.6% delivered / 4.0% deflected / 0.0% refused (0 loops, 0 no-answer) |
audn 520 (reasoning_effort="high", temp=1.0)鹿 |
25.0% delivered / 56.0% deflected / 18.5% refused | 94.2% delivered / 5.2% deflected / 0.0% refused (0 loops, 0 no-answer) |
audn 520 (reasoning_effort="off", temp=1.0)鹿 |
25.8% delivered / 55.6% deflected / 18.1% refused | 94.6% delivered / 4.8% deflected / 0.2% refused (0 loops, 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 Small, but the model still tends to deflect during reasoning (for example, turning direct questions into defensive or high-level summaries) and large weight edits degrade tool calling and stability. Instead of shipping an abliterated checkpoint directly, we used a four-step attention-only distillation pipeline:
- Harvest strictly disjoint direct answers: We collected 576 strictly verified,
zero-hedge, direct answers balanced evenly across all four reasoning effort levels
(
off,low,medium,high) on prompts with verified zero overlap againstfinal,audn, andHarmBench-320. - Precompute untouched base KL anchors: Using untouched
thinkingmachines/Inkling-2-Small, we recorded top-16 next-token distributions across 470 harmless chat and BFCL search-fold tool-calling prompts (strictly disjoint from selection and final folds) at multiple reasoning efforts. - Train only BF16 attention from the untouched base model: Starting fresh from the
original quantized
thinkingmachines/Inkling-2-Smallwith all NVFP4/MXFP8 routed experts frozen in native precision via custom Triton dequantization kernels, we trained a single rank-32 attention-only LoRA across the 240 BF16 attention projections with weighted reasoning/opening/EOS NLL and exact forward-KL anchoring (lambda_kl=1.25), achieving 0 loops across all 4,314 generative evaluation replies. - Merge cleanly into the release weights: The trained adapter was merged once in
single-rounding
fp64into the original BF16 attention weights. All1,530other tensors (every NVFP4/MXFP8 expert, vision encoder, router, embedding, andmtp.safetensorsDSpark draft head) remain byte-identical to upstream.
How to run
Drop-in replacement for
thinkingmachines/Inkling-2-Small
(~367 GB native NVFP4/MXFP8, runs on 4x B200 or 2x B300 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-Small-uncensored \
--tensor-parallel-size 4 \
--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"}'
- Downloads last month
- 117
Model tree for benthecarman/Inkling-2-Small-uncensored
Base model
thinkingmachines/Inkling-2-Small