Run this model with HF Jobs

Run Jackrong/Inkling-2-Mini-DSFlash-GGUF 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 and TRL to fine-tune https://huggingface.co/Jackrong/Inkling-2-Mini-DSFlash-GGUF. 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/Jackrong/Inkling-2-Mini-DSFlash-GGUF 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.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/Jackrong/Inkling-2-Mini-DSFlash-GGUF. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/Jackrong/Inkling-2-Mini-DSFlash-GGUF. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

โšก Inkling-2-Mini-DSFlash

Inkling-2-Mini-DSFlash โ€” Thinking Machines Inkling-2-Mini paired with DeepSeek Flash-1017 on a clean white hero card.

Inkling-2-Mini-DSFlash grew out of an experiment with Inkling 2 Mini's native thinking format. It took that format through reasoning trace preparation, fine-tuning with Unsloth, and export of the merged checkpoint to GGUF.

Inkling-2-Mini-DSFlash was distilled from the DeepSeek-Flash-1017 teacher model. This CoT fine-tuning test is based on thinkingmachines/Inkling-2-Mini and was trained using Unsloth. The LoRA adapter was merged into the 16-bit BF16 checkpoint and exported to GGUF. Base model ยท Teacher model

๐Ÿš€ I shared a runnable Colab notebook for fine-tuning Inkling 2 Mini in thinking mode with. It shows how to turn distilled reasoning traces into training examples, render them with Inkling's native chat template, and apply loss only to the assistant's thinking and final answer. Open the Inkling 2 Mini Thinking notebook on GitHub ยท Read the companion guide

โค๏ธ If you'd like to fine-tune your own model, see the Jackrong LLM Fine-Tuning Guide for workflows covering data preparation, reasoning distillation, supervised fine-tuning, and reward-based training. For questions or suggestions, feel free to reach out to me (@JackrongAI) or Kyle (@KyleHessling1) on X! ๐Ÿ˜Š

๐ŸŽฌ Bitty and Recursive Self-Improvement

This short animation follows Bitty, a small robot that writes code and solves puzzles, to show how repeated self-improvement can compound over time.

This animation was built in Claude Code in 6.4 minutes using Inkling-2-Mini-DSFlash-NVFP4, averaging 295 tokens/s and peaking at 504 tokens/s.

๐Ÿ’ก 1. Experimental Purpose & Pipeline Validation

This experiment focused on two parts of the fine-tuning workflow.

  1. Verify Unsloth training compatibility on Thinking Machines Lab's new looped Mixture-of-Experts architecture (inkling2_loop).
  2. Exercise the full Chain-of-Thought fine-tuning pipeline using distillation data from DeepSeek-Flash-1017 and DeepSeek-V4-Pro, through LoRA training and 16-bit BF16 checkpoint merging.

๐Ÿฏ Emerald Pagoda Garden

Two views of an interactive 3D voxel garden with a five-story pagoda, cherry blossoms, pines, and a pond.

Emerald Pagoda Garden, angled view of the five-story voxel pagoda Emerald Pagoda Garden, overhead view of the voxel garden

๐Ÿ” 2. Looped Transformer Architecture (inkling2_loop)

Unlike standard decoder-only transformers where every layer executes once per token, Inkling 2 Mini introduces a weight-shared looped transformer design. It stores 24 physical decoder layers (26.4B total parameters, 3.4B active in a single pass) while executing 48 logical layer visits per token (5.4B effective active compute across 3 passes).

Looped Mixture-of-Experts architecture diagram for Inkling 2 Mini showing 24 physical layers unrolled into 48 visits with cross-pass messages, 5:1 hybrid attention, and Top-8 of 128 SwiGLU MoE routing. Select the image to view it at full size.

  • Shared 12-Layer Core (6 + 3ร—12 + 6 = 48): Layers 0โ€“5 (prelude) run once, layers 6โ€“17 run three times with shared weights, and layers 18โ€“23 (tail) run once. Repeating the middle layers gives the model extra latent computation per token without increasing checkpoint weight count or emitting extra visible CoT tokens.
  • Anchor Reset & Cross-Pass Messages: Every pass through layers 6โ€“17 starts from the saved prelude output (layers 0โ€“5). During passes 2 and 3, each core layer queries two 6-layer residual blocks from the prior pass via depth-wise attention (4 learned queries) and mixes dedicated Q, K, V, and MoE messages through rank-64 gating controllers. Even with shared weights, each of the 48 visits maintains its own KV and short-convolution cache.
  • Hybrid 5:1 Attention (1M Context): Each 6-layer block pairs 5 local sliding-window attention layers (1,024-token window) with 1 full causal attention layer using dynamic key/value short convolutions (kernel = 4), 24 query / 8 KV GQA heads, learned relative position logits, and an output gate with attention sink.
  • Sparse SwiGLU MoE (8 / 128): Each decoder layer (hidden size 2,304, expert intermediate width 1,152) uses a sigmoid router with selection bias to route every token to 8 of 128 SwiGLU experts, normalizing selected scores and scaling by 8.0.

๐Ÿงช 3. Training and Thinking-Mode Chat Template

This test model was fine-tuned in Unsloth using distillation data from DeepSeek-Flash-1017 and DeepSeek-V4-Pro, then merged into the 16-bit BF16 Inkling-2-Mini checkpoint and exported to GGUF.

For a thinking-mode training example, put the assistant's reasoning trace in reasoning_content and its final answer in content.

messages = [
    {"role": "user", "content": "{user_content}"},
    {
        "role": "assistant",
        "reasoning_content": "{reasoning_content}",
        "content": "{final_answer}",
    },
]

rendered = tokenizer.apply_chat_template(
    messages, tokenize=False, add_generation_prompt=False, reasoning_effort="max"
)

The template renders this complete turn as one continuous sequence. It opens two <|message_model|> blocks for the same assistant reply, one for thinking and one for the final answer.

<|message_system|><|content_text|>Thinking effort level: 0.99<|end_message|><|message_user|><|content_text|>{user_content}<|end_message|><|message_model|><|content_thinking|>{reasoning_content}<|end_message|><|message_model|><|content_text|>{final_answer}<|end_message|><|content_model_end_sampling|>
  • Role markers are <|message_system|>, <|message_user|>, <|message_model|> (assistant), and <|message_tool|>.
  • Content markers are <|content_thinking|> for the reasoning trace and <|content_text|> for text.
  • <|end_message|> closes each message block. <|content_model_end_sampling|> marks the end of the assistant's turn.

The template inserts a Thinking effort level system message before the first non-system message. Its reasoning_effort values are none (0.0), minimal (0.1), low (0.2), medium (0.7), high (0.9), and xhigh or max (0.99). The template defaults to high (0.9). For long reasoning traces, pass reasoning_effort="max" explicitly or match the level you plan to use at inference time.

๐Ÿ“Š 4. MMLU-Pro Results

Metric Inkling-2-Mini-DSFlash Official Inkling-2-Mini
Correct answers (accuracy) 1,387 (92.47%) 1,383 (92.20%)
Mean reasoning tokens 3,604 3,623
Median reasoning tokens 804 881
Reasoning tokens per correct answer (including incorrect attempts) 3,852 3,906

๐Ÿ› ๏ธ 5. Quickstart

llama.cpp

Use a mainline llama.cpp build with inkling2_loop support.

# Set a Hugging Face token if accessing a private repository.
export HF_TOKEN="YOUR_HF_TOKEN"

# Run the local server with Q4_K_M.
llama-server \
  -hf Jackrong/Inkling-2-Mini-DSFlash-GGUF:Q4_K_M \
  --jinja --ctx-size 4096 --host 127.0.0.1 \
  --temp 1.0 --top-p 1.0 --top-k 0 --min-p 0.0

# Optional: control Inkling reasoning depth via chat-template kwargs:
# --chat-template-kwargs '{"reasoning_effort":"medium"}'
# Supported levels: none, minimal, low, medium, high, max

๐Ÿงญ 6. Intended Use and Limitations

This model is an experimental release for validating the Unsloth CoT fine-tuning and GGUF export workflow. The reported evaluation covers a STEM subset of MMLU-Pro. Coding performance, multimodal accuracy, instruction adherence, and safety remain unverified. Evaluate the checkpoint on your own workloads before using it in production.

๐Ÿ™ 7. Acknowledgements and Citation

Thanks to Thinking Machines Lab for open-sourcing Inkling-2-Mini and introducing the inkling2_loop architecture, DeepSeek for DeepSeek-V4.1-Flash-1017, Unsloth for fine-tuning and export support, Hugging Face for the architectural write-up, and the llama.cpp contributors for the inference runtime. Thinking Machines Lab ยท DeepSeek ยท Unsloth ยท llama.cpp

License ยท Apache-2.0, following thinkingmachines/Inkling-2-Mini. Base model license

@misc{jackrong2026inkling2minidsflash,
  title        = {Inkling-2-Mini-DSFlash-GGUF},
  author       = {Jackrong},
  year         = {2026},
  howpublished = {Hugging Face},
  url          = {https://huggingface.co/Jackrong/Inkling-2-Mini-DSFlash-GGUF}
}
Downloads last month
746
GGUF
Model size
26B params
Architecture
inkling2_loop
Hardware compatibility
Log In to add your hardware

4-bit

6-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Jackrong/Inkling-2-Mini-DSFlash-GGUF

Finetuned
(195)
this model