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.
Instructions to use Jackrong/Inkling-2-Mini-DSFlash-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Jackrong/Inkling-2-Mini-DSFlash-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Jackrong/Inkling-2-Mini-DSFlash-GGUF")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Jackrong/Inkling-2-Mini-DSFlash-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Jackrong/Inkling-2-Mini-DSFlash-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Jackrong/Inkling-2-Mini-DSFlash-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Jackrong/Inkling-2-Mini-DSFlash-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Jackrong/Inkling-2-Mini-DSFlash-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Jackrong/Inkling-2-Mini-DSFlash-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Jackrong/Inkling-2-Mini-DSFlash-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf Jackrong/Inkling-2-Mini-DSFlash-GGUF:Q4_K_M
Use Docker
docker model run hf.co/Jackrong/Inkling-2-Mini-DSFlash-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use Jackrong/Inkling-2-Mini-DSFlash-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Jackrong/Inkling-2-Mini-DSFlash-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Jackrong/Inkling-2-Mini-DSFlash-GGUF", "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/Jackrong/Inkling-2-Mini-DSFlash-GGUF:Q4_K_M
- SGLang
How to use Jackrong/Inkling-2-Mini-DSFlash-GGUF 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 "Jackrong/Inkling-2-Mini-DSFlash-GGUF" \ --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": "Jackrong/Inkling-2-Mini-DSFlash-GGUF", "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 "Jackrong/Inkling-2-Mini-DSFlash-GGUF" \ --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": "Jackrong/Inkling-2-Mini-DSFlash-GGUF", "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" } } ] } ] }' - Ollama
How to use Jackrong/Inkling-2-Mini-DSFlash-GGUF with Ollama:
ollama run hf.co/Jackrong/Inkling-2-Mini-DSFlash-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use Jackrong/Inkling-2-Mini-DSFlash-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Jackrong/Inkling-2-Mini-DSFlash-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Jackrong/Inkling-2-Mini-DSFlash-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Jackrong/Inkling-2-Mini-DSFlash-GGUF with Docker Model Runner:
docker model run hf.co/Jackrong/Inkling-2-Mini-DSFlash-GGUF:Q4_K_M
- Lemonade
How to use Jackrong/Inkling-2-Mini-DSFlash-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Jackrong/Inkling-2-Mini-DSFlash-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Inkling-2-Mini-DSFlash-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use Jackrong/Inkling-2-Mini-DSFlash-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Jackrong/Inkling-2-Mini-DSFlash-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default Jackrong/Inkling-2-Mini-DSFlash-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Jackrong/Inkling-2-Mini-DSFlash-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Jackrong/Inkling-2-Mini-DSFlash-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "Jackrong/Inkling-2-Mini-DSFlash-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- โก Inkling-2-Mini-DSFlash
โก Inkling-2-Mini-DSFlash
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.
- Verify Unsloth training compatibility on Thinking Machines Lab's new looped Mixture-of-Experts architecture (
inkling2_loop). - 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.
๐ 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).
- Shared 12-Layer Core (
6 + 3ร12 + 6 = 48): Layers0โ5(prelude) run once, layers6โ17run three times with shared weights, and layers18โ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โ17starts 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 (4learned queries) and mixes dedicatedQ,K,V, andMoEmessages 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 (
1MContext): 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),24query /8KV GQA heads, learned relative position logits, and an output gate with attention sink. - Sparse SwiGLU MoE (
8 / 128): Each decoder layer (hidden size2,304, expert intermediate width1,152) uses a sigmoid router with selection bias to route every token to 8 of 128 SwiGLU experts, normalizing selected scores and scaling by8.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
4-bit
6-bit
Model tree for Jackrong/Inkling-2-Mini-DSFlash-GGUF
Base model
thinkingmachines/Inkling-2-Mini
