Run this model with HF Jobs
Run cambash23/Inkling-2-Mini-DFlash2-Global-L13 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/cambash23/Inkling-2-Mini-DFlash2-Global-L13. 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/cambash23/Inkling-2-Mini-DFlash2-Global-L13 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/cambash23/Inkling-2-Mini-DFlash2-Global-L13. 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/cambash23/Inkling-2-Mini-DFlash2-Global-L13. 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 cambash23/Inkling-2-Mini-DFlash2-Global-L13 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cambash23/Inkling-2-Mini-DFlash2-Global-L13 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cambash23/Inkling-2-Mini-DFlash2-Global-L13")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("cambash23/Inkling-2-Mini-DFlash2-Global-L13") model = AutoModel.from_pretrained("cambash23/Inkling-2-Mini-DFlash2-Global-L13", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use cambash23/Inkling-2-Mini-DFlash2-Global-L13 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cambash23/Inkling-2-Mini-DFlash2-Global-L13" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cambash23/Inkling-2-Mini-DFlash2-Global-L13", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/cambash23/Inkling-2-Mini-DFlash2-Global-L13
- SGLang
How to use cambash23/Inkling-2-Mini-DFlash2-Global-L13 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 "cambash23/Inkling-2-Mini-DFlash2-Global-L13" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cambash23/Inkling-2-Mini-DFlash2-Global-L13", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "cambash23/Inkling-2-Mini-DFlash2-Global-L13" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cambash23/Inkling-2-Mini-DFlash2-Global-L13", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use cambash23/Inkling-2-Mini-DFlash2-Global-L13 with Docker Model Runner:
docker model run hf.co/cambash23/Inkling-2-Mini-DFlash2-Global-L13
Inkling-2-Mini-DFlash2-Global (L13)
Engine (inkling-cmp-engine v1.3.0) | Target Model (thinkingmachines/Inkling-2-Mini) | Base Drafter (incoai/Inkling-2-Mini-DFlash2)
This repository contains Inkling-2-Mini-DFlash2-Global (L13) (s3_l13_sel_anc), a hybrid global-attention DFlash 2 lossless speculative draft model for thinkingmachines/Inkling-2-Mini, initialized from incoai/Inkling-2-Mini-DFlash2 and extended for full 262,144-token long-context speculative decoding.
It is not a standalone language model: it runs inside a speculative decoding engine (such as inkling-cmp-engine v1.3.0+) and drafts parallel blocks of tokens verified losslessly against thinkingmachines/Inkling-2-Mini.
What Changed vs. Stock Inkling-2-Mini-DFlash2
Stock Inkling-2-Mini-DFlash2 uses 5 sliding-window (SWA-2048) layers (layers 0..4), so its draft context cannot attend directly beyond 2,048 tokens. DFlash2-Global (L13) converts layers 1 and 3 to full-context global attention (global_rope_theta = 1,000,000) while preserving SWA-2048 on layers 0, 2, and 4, and calibrates the rank-256 bilinear candidate selector with stock-anchored long-context distillation:
- Architecture: 5-layer parallel block-diffusion drafter (
block_size = 8,hidden_size = 2304,32Q heads /8KV heads,head_dim = 128, 2-tap dynamic grouped convolutions, rank-256 bilinear candidate selector, target tap layers[5, 23, 41, 48]). - Hybrid layer map (
layer_types):[sliding_attention, full_attention, sliding_attention, full_attention, sliding_attention](global_layers = [1, 3],sliding_window = 2048,global_rope_theta = 1,000,000). - Paged
262Kfootprint ininkling-cmp-engine v1.3.0: Shares the engine's1,024-token global page table lazily with FP8 (E4M3) draft KV (3.97 GiBarena @ 504 pages /5.81 GiB@ 960 pages across 8 sessions, leaving996BF16 target KV pages =1.02Mtokens or1,789FP8 pages =1.83Mtokens per 64 GB CMP 170HX). - 100% lossless target distribution: Exact greedy argmax and exact Leviathan rejection/residual sampling preserve
thinkingmachines/Inkling-2-Mini's output distribution identically.
Quick Start (inkling-cmp-engine v1.3.0+)
# 1. Download this checkpoint
hf download cambash23/Inkling-2-Mini-DFlash2-Global-L13 --local-dir ./Inkling-2-Mini-DFlash2-Global-L13
# 2. Point inkling-cmp-engine at it in scripts/local.sh
echo 'DFLASH2_DIR="/path/to/Inkling-2-Mini-DFlash2-Global-L13"' >> scripts/local.sh
# 3. Start the server (or pass --draft-dflash2 directly to ink-server)
./start.sh restart
Direct ink-server flag:
ink-server \
--model-dir /path/to/Inkling-2-Mini \
--draft-dflash2 /path/to/Inkling-2-Mini-DFlash2-Global-L13 \
--draft-ctx 262144 \
--kv-pages 960 \
--prefill-chunk 8192 \
--lookup 8
Benchmarks (inkling-cmp-engine v1.3.0, 1ร NVIDIA CMP 170HX 64 GB sm_80)
1. 180 W MiaAI-Lab Decode Matrix (T=0, 400 tok/user, reasoning_effort=none, CHUNK=12288, 928 BF16 pages = 950K KV)
Measured on both 6D (1,728 MHz HBM) and 67 (1,458 MHz HBM) CMP 170HX cards (agg includes TTFT; dec is sum of post-TTFT decode rates):
| Workload | 6D agg (dec) |
67 agg (dec) |
Median TTFT (6D / 67) |
|---|---|---|---|
1u lists |
396.0 (418.8) tok/s |
376.8 (397.6) tok/s |
56 ms / 60 ms |
1u code |
250.0 (259.9) tok/s |
246.7 (256.4) tok/s |
62 ms / 64 ms |
1u prose |
214.7 (221.2) tok/s |
203.2 (209.2) tok/s |
58 ms / 59 ms |
2u lists |
637.6 (714.5) tok/s |
630.6 (704.1) tok/s |
108 ms / 108 ms |
2u code |
385.9 (454.1) tok/s |
405.8 (462.1) tok/s |
118 ms / 118 ms |
2u prose |
358.9 (380.1) tok/s |
325.0 (370.4) tok/s |
114 ms / 116 ms |
4u lists |
1,081.8 (1,231.0) tok/s |
1,031.9 (1,165.0) tok/s |
132 ms / 134 ms |
4u code |
608.2 (697.7) tok/s |
561.8 (680.1) tok/s |
154 ms / 156 ms |
4u prose |
577.6 (632.7) tok/s |
528.6 (581.9) tok/s |
142 ms / 144 ms |
8u lists |
1,559.5 (1,800.9) tok/s |
1,575.3 (1,823.1) tok/s |
169 ms / 171 ms |
8u code |
852.9 (1,086.0) tok/s |
822.3 (1,041.0) tok/s |
203 ms / 204 ms |
8u prose |
835.7 (938.8) tok/s |
834.9 (919.7) tok/s |
186 ms / 187 ms |
2. Long-Context Speculative Decode (180 W & 140 W, 262K Paged Global KV)
- Cold
246,393-token prompt + 256-tok decode (180 W,6D):4,723 tok/sprefill,135.5 tok/sspeculative decode (2.0รvs non-speculative68.0 tok/s). 4ร45Kbatched long-context agent benchmark (140 W,67):532.89 tok/s(5.592 tok/rd,+28.3%vs DSpark415.32 tok/s,+13.5%vs stock SWA-onlyDFlash2).- Multi-turn agent replay (
140 W, 343 reqs,~45Kmedian ctx,960BF16 pages,0errors):6DN=4 T=0385.4 tok/s(p99 TTFT 2.95 s),N=8 T=1.0384.7 tok/s(p99 TTFT 4.26 s).
3. Lossless Verification (ink-spec, --draft-ctx 262144 --lookup 8)
- Greedy equivalence:
0 / 8,000bad argmax tokens (max_gap = 0.0000,4.020 tok/rd). - Sampled equivalence:
20 / 20exact sequences (8,000 / 8,000tokens,flags_or = 0). - Exact Leviathan sampling distribution (
sdist):13 / 13PASS (212,992draws,0zero-probability draws). 246Kpage-boundary rollback test: PASS (bit-identical).
License & Attribution
Licensed under the Apache License, Version 2.0. Derived from:
thinkingmachines/Inkling-2-Mini(Thinking Machines Lab, Apache-2.0)incoai/Inkling-2-Mini-DFlash2(Inco AI, Apache-2.0)
Citations
@misc{inco2026dflash2,
title = {{DFlash 2: Keep Drafting Parallel}},
author = {{Inco AI}},
year = {2026},
month = {August},
url = {https://inco.ai/blog/dflash2/}
}
@inproceedings{chen2026dflash,
title = {{DFlash: Block Diffusion for Flash Speculative Decoding}},
author = {Chen, Jian and Liang, Yesheng and Liu, Zhijian},
booktitle = {International Conference on Machine Learning (ICML)},
year = {2026}
}
- Downloads last month
- 348
Model tree for cambash23/Inkling-2-Mini-DFlash2-Global-L13
Base model
thinkingmachines/Inkling-2-Mini