Run this model with HF Jobs

Run Nori103/Inkling-2-Mini-char-lora on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/Nori103/Inkling-2-Mini-char-lora. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/Nori103/Inkling-2-Mini-char-lora on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Inkling-2-Mini Character-Manipulation LoRA (Multi-Effort Thinking Preserved)

A lightweight 38 MB attention-only LoRA adapter (rank 16, lora_alpha=32, 144 BF16 attention matrices across all 24 physical layers) for thinkingmachines/Inkling-2-Mini, trained on Tinker in ~45 minutes.

It targets two goals simultaneously:

  1. Fix Inkling-2-Mini's character-level manipulation and string-tracing weaknesses (270 held-out questions: 129 β†’ 248 / 270, including 48 β†’ 94 / 100 on untrained task formats).
  2. Preserve controllable multi-level thinking (none / low / medium / high), avoiding the SFT collapse where training only at effort=0.0 (or only 0.0 + 0.9) kills the thinking channel at low (0.2) or across all levels.

What is in this repository? This repo distributes only the 38 MB LoRA adapter (adapter_model.safetensors, adapter_config.json) plus a CPU merge script (scripts/merge_attention_lora.py), not a standalone GGUF or 19.5 GB full checkpoint. Because only the 144 BF16 attention matrices are modified (all NVFP4/MXFP8 MoE experts stay untouched), merging into your local copy of thinkingmachines/Inkling-2-Mini takes ~15 seconds on CPU and produces a drop-in checkpoint ready for inference engines.


Quick Start (Install, Merge, and Run)

Step 1: Install dependencies

pip install -U torch safetensors huggingface_hub

Step 2: Download the base model and this adapter

Make sure you have 40 GB of free disk space (20 GB for the official base model + ~20 GB for the merged output copy):

hf download thinkingmachines/Inkling-2-Mini --local-dir ./Inkling-2-Mini
hf download Nori103/Inkling-2-Mini-char-lora --local-dir ./Inkling-2-Mini-char-lora-adapter

Step 3: Merge the LoRA on CPU (~15 seconds)

Optional dry run first (checks weight norms without copying or modifying any files):

python ./Inkling-2-Mini-char-lora-adapter/scripts/merge_attention_lora.py \
  --base ./Inkling-2-Mini \
  --adapter ./Inkling-2-Mini-char-lora-adapter \
  --output ./Inkling-2-Mini-char-lora \
  --dry-run

Create the merged model directory:

python ./Inkling-2-Mini-char-lora-adapter/scripts/merge_attention_lora.py \
  --base ./Inkling-2-Mini \
  --adapter ./Inkling-2-Mini-char-lora-adapter \
  --output ./Inkling-2-Mini-char-lora

This leaves ./Inkling-2-Mini untouched and writes a complete drop-in checkpoint to ./Inkling-2-Mini-char-lora (identical layout to the official HF-NVFP4-MXFP8 release, with only the 144 BF16 attention tensors updated).

Step 4: Run the merged model

Use ./Inkling-2-Mini-char-lora anywhere you run the official thinkingmachines/Inkling-2-Mini safetensors checkpoint:

  • With vLLM (same flags as the official model):
    vllm serve ./Inkling-2-Mini-char-lora --served-model-name inkling-2-mini
    
  • With Strata (strata-inkling):
    strata-inkling --serve --native ./Inkling-2-Mini-char-lora \
      --max-context 32768 --kv fp8 --draft off
    
    (Note: on Strata v0.2.22, running official HF-NVFP4 safetensors requires the BF16β†’F32 trunk loader fix in Strata PR #7201.)
  • Thinking effort control: pass reasoning_effort ("none", "low", "medium", or "high") in your OpenAI-compatible request, just like on the base model.
  • Note for Ollama / LM Studio / llama.cpp users: those tools require a GGUF file and cannot load this 38 MB PEFT adapter directly. To use this adapter with llama.cpp/Ollama/LM Studio, first merge it in Step 3 above and convert the merged checkpoint to GGUF.

Key Finding: Why SFT Breaks Thinking Effort on Inkling-2-Mini

Inkling-2-Mini's chat_template.jinja maps client reasoning levels to numeric effort prompts (Thinking effort level: <num>):

none=0.0, minimal=0.1, low=0.2, medium=0.7, high=0.9, max=0.99
  • Run 1 (effort=0.0 only, 1,927 examples): Character accuracy jumped (129 β†’ 251 / 270), but thinking collapsed to 0 characters across low, medium, and high (0/9 chat prompts). On a hard combinatorics problem at high, the model skipped <|content_thinking|> and opened with a wrong answer before self-correcting mid-body.
  • Run 2 (effort=0.0 + 0.9 only, mostly synthetic short thoughts): medium and high partially recovered, but low (0.2) remained 0 characters (falling into the 0.0 basin), thinking length shrank by ~50%, and synthetic templates introduced artifacts.
  • This release (v2-ep2, multi-effort base self-distillation): Mixing 927 authentic base-model thinking traces across 0.1 (60), 0.2 (390), 0.7 (269), and 0.9 (208) + 350 char-thinking examples (0.2/0.7/0.9) + 1,927 direct (0.0) examples (3,204 examples total, 2 epochs, BS=48, LR=1.6e-4) restored monotonic thinking across all levels (low / medium / high) while recovering strong character-manipulation accuracy (248 / 270, and 94 / 100 on untrained task types).

Benchmarks

Evaluated locally on a single RTX 5060 Ti 16 GB (official HF-NVFP4-MXFP8 safetensors with merged BF16 attention weights, strata-inkling, --max-context 32768 --kv fp8 --draft off).

Benchmark Base (Inkling-2-Mini) SFT effort=0 only (141) SFT 0+0.9 (144) This adapter (v2-ep2, 145)
Held-out char tasks (270 Qs) 129 / 270 251 / 270 239 / 270 248 / 270
β€” Trained task kinds (170 Qs) 81 / 170 159 / 170 149 / 170 154 / 170
β€” Untrained task kinds (100 Qs) 48 / 100 92 / 100 90 / 100 94 / 100
Chat thinking (9 Qs: low / med / high avg chars) 402 / 625 / 815 (9/9) 0 / 0 / 0 (0/9) 0 / 352 / 464 (6/9) 339 / 508 / 1,120 (9/9)
Hard combinatorics 1 Q (high, temp=0) 6,470 chars, right 0 chars, wrong head 1,079 chars, right 7,319 chars, right
Hard reasoning 10 Qs (low / high, temp=0) 10/10 (795ch) / 10/10 (1,496ch) β€” β€” 10/10 (718ch) / 9/10 (1,973ch)
Usage suite (coding / agent / longdoc / parallel) FAIL / PASS(12) / PASS / PASS PASS / PASS(7) / PASS / PASS PASS / PASS(15) / PASS / β€” PASS / PASS(8) / PASS / PASS
Japanese RAG 36 Qs (mention check) 36/36 (1 misread) 36/36 β€” 36/36
Japanese table-lookup Grid 12 Qs 11/12 9/12 9/12 11/12
NLL (en / ja / en2 / ja2) 0.8165 / 1.7290 / 2.0345 / 1.7384 0.8480 / 1.7640 / 2.0999 / 1.7693 0.8460 / 1.7806 / 2.1090 / 1.7873 0.8469 / 1.7743 / 2.0994 / 1.7894

Also verified on 2 GPUs (RTX 5060 Ti 16 GB + RTX 3060 12 GB, zero host experts, zero Host KV Offload): 12/12 general QA, 40/50 on the 50-question subset, and 16/16 Japanese RAG without regression.

Honest Limitations

  • Slight NLL increase over base (en +0.030, ja +0.045, en2 +0.065, ja2 +0.051), typical of attention LoRA SFT.
  • Hard reasoning 10-Q check: v2-ep2 scored 10/10 at low and 9/10 at high (vs base 10/10 and 10/10; one Japanese permutation constraint error at high that passed at low).
  • Scope: Trained on character-level string manipulation, general QA/RAG/JSON retention, and multi-effort self-distilled thinking. It is not a general-purpose instruction overhaul and does not remove safety refusals.

License & Attribution

Downloads last month
53
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for Nori103/Inkling-2-Mini-char-lora

Adapter
(104)
this model