Image-Text-to-Text
MLX
Safetensors
English
multilingual
inkling2_loop
jang
janght
quantized
apple-silicon
Mixture of Experts
looped
reasoning
thinking
agent
tool-use
coding
vision
speculative-decoding
inkling
conversational
Run this model with HF Jobs
Run OsaurusAI/Inkling-2-Mini-JANGHT4.2 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/OsaurusAI/Inkling-2-Mini-JANGHT4.2. 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/OsaurusAI/Inkling-2-Mini-JANGHT4.2 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/OsaurusAI/Inkling-2-Mini-JANGHT4.2. 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.
Instructions to use OsaurusAI/Inkling-2-Mini-JANGHT4.2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use OsaurusAI/Inkling-2-Mini-JANGHT4.2 with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("OsaurusAI/Inkling-2-Mini-JANGHT4.2") config = load_config("OsaurusAI/Inkling-2-Mini-JANGHT4.2") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use OsaurusAI/Inkling-2-Mini-JANGHT4.2 with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "OsaurusAI/Inkling-2-Mini-JANGHT4.2"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "OsaurusAI/Inkling-2-Mini-JANGHT4.2" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use OsaurusAI/Inkling-2-Mini-JANGHT4.2 with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "OsaurusAI/Inkling-2-Mini-JANGHT4.2"
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:8080/v1 hermes config set model.default OsaurusAI/Inkling-2-Mini-JANGHT4.2
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use OsaurusAI/Inkling-2-Mini-JANGHT4.2 with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "OsaurusAI/Inkling-2-Mini-JANGHT4.2"
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:8080/v1 \ --custom-model-id "OsaurusAI/Inkling-2-Mini-JANGHT4.2" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
|
Download dflash2/README.md from OsaurusAI/Inkling-2-Mini-JANGHT4.2: direct link, hf CLI and curl.
- Browser
- Download file 4.66 kB
-
https://huggingface.co/OsaurusAI/Inkling-2-Mini-JANGHT4.2/resolve/main/dflash2/README.md
- Command line
-
hf download hf://OsaurusAI/Inkling-2-Mini-JANGHT4.2/dflash2/README.md
-
curl -L -o README.md https://huggingface.co/OsaurusAI/Inkling-2-Mini-JANGHT4.2/resolve/main/dflash2/README.md
4.66 kB
| license: apache-2.0 | |
| library_name: transformers | |
| pipeline_tag: text-generation | |
| base_model: | |
| - thinkingmachines/Inkling-2-Mini | |
| inference: false | |
| tags: | |
| - dflash2 | |
| - speculative-decoding | |
| - block-diffusion | |
| - draft-model | |
| - sglang | |
| # Inkling-2-Mini-DFlash2 | |
| [Blog](https://inco.ai/blog/dflash2/) | [GitHub](https://github.com/z-lab/dflash) | |
| This repository contains the DFlash 2 draft model for | |
| [`thinkingmachines/Inkling-2-Mini`](https://huggingface.co/thinkingmachines/Inkling-2-Mini). | |
| It is not a standalone language model: it runs inside a speculative | |
| decoding server and drafts tokens for the target model to verify. | |
| DFlash 2 is a block-diffusion drafter for speculative decoding. It predicts | |
| a whole block of tokens in a single pass and keeps the top candidates at | |
| every position. A lightweight selector then traces one coherent path through them. | |
| Two-tap dynamic convolutions in the backbone keep the draft from decaying | |
| toward the end of the block. Target verification preserves the target model's sampling distribution. | |
| <div align="center"> | |
| <img src="assets/dflash2-figure.png" alt="DFlash 2: parallel block drafting with a candidate path selector" width="100%"> | |
| </div> | |
| ## Quick Start | |
| Use the official `lmsysorg/sglang:inkling-2-mini` image with the included | |
| [Inkling DFlash 2 compatibility patch](sglang_inkling_dflash2.py): | |
| ```bash | |
| hf download incoai/Inkling-2-Mini-DFlash2 sglang_inkling_dflash2.py --local-dir ./inkling-dflash2 | |
| python ./inkling-dflash2/sglang_inkling_dflash2.py | |
| python -m sglang.launch_server \ | |
| --model-path thinkingmachines/Inkling-2-Mini \ | |
| --speculative-algorithm DFLASH \ | |
| --speculative-draft-model-path incoai/Inkling-2-Mini-DFlash2 \ | |
| --speculative-num-draft-tokens 8 \ | |
| --attention-backend fa4 \ | |
| --speculative-draft-attention-backend fa4 | |
| ``` | |
| ## Evaluation | |
| - Runtime: SGLang on one NVIDIA H200, with FlashAttention 4 for target and draft attention | |
| - Speculation block size: 8 (7 draft tokens per verification step) | |
| - Sampling: Inkling-2-Mini's official defaults (temperature 1.0, top-p 1.0, top-k disabled), with default reasoning effort | |
| - Maximum new tokens: 4096 | |
| - Prompts: benchmark formatting from [`z-lab/dflash`](https://github.com/z-lab/dflash) | |
| We compare autoregressive decoding, Inkling's built-in MTP (DSpark), | |
| and DFlash 2. All speculative methods propose seven draft tokens per | |
| verification step. | |
| ### Acceptance Length | |
| Acceptance length is the per-request mean of completion tokens divided by | |
| verification steps. Higher is better. | |
| | Task | MTP (DSpark) | DFlash 2 | | |
| | :--- | ---: | ---: | | |
| | GSM8K | 3.52 | **4.96** | | |
| | MATH-500 | 3.47 | **4.97** | | |
| | HumanEval | 3.66 | **4.80** | | |
| | MBPP | 3.49 | **4.88** | | |
| | MT-Bench | 2.95 | **3.90** | | |
| ### Throughput | |
| Throughput is total output tokens divided by end-to-end wall time. | |
| Each cell shows `output tok/s (speedup vs. autoregressive)`. | |
| #### Concurrency 1 | |
| | Task | Autoregressive | MTP (DSpark) | DFlash 2 | | |
| | :--- | ---: | ---: | ---: | | |
| | GSM8K | 180.1 | 375.0 (2.08×) | **482.1 (2.68×)** | | |
| | MATH-500 | 190.5 | 375.7 (1.97×) | **525.8 (2.76×)** | | |
| | HumanEval | 190.2 | 374.7 (1.97×) | **475.9 (2.50×)** | | |
| | MBPP | 181.7 | 393.8 (2.17×) | **503.4 (2.77×)** | | |
| | MT-Bench | 190.7 | 297.6 (1.56×) | **387.3 (2.03×)** | | |
| #### Concurrency 8 | |
| | Task | Autoregressive | MTP (DSpark) | DFlash 2 | | |
| | :--- | ---: | ---: | ---: | | |
| | GSM8K | 851.1 | 1,100.8 (1.29×) | **1,452.2 (1.71×)** | | |
| | MATH-500 | 919.4 | 1,157.5 (1.26×) | **1,522.3 (1.66×)** | | |
| | HumanEval | 879.3 | 1,136.8 (1.29×) | **1,425.4 (1.62×)** | | |
| | MBPP | 845.1 | 1,160.3 (1.37×) | **1,524.6 (1.80×)** | | |
| | MT-Bench | 847.3 | 893.7 (1.05×) | **1,158.3 (1.37×)** | | |
| #### Concurrency 32 | |
| | Task | Autoregressive | MTP (DSpark) | DFlash 2 | | |
| | :--- | ---: | ---: | ---: | | |
| | GSM8K | 1,462.1 | 2,049.9 (1.40×) | **2,582.1 (1.77×)** | | |
| | MATH-500 | 1,577.1 | 2,173.1 (1.38×) | **2,855.4 (1.81×)** | | |
| | HumanEval | 1,522.0 | 2,120.9 (1.39×) | **2,686.1 (1.76×)** | | |
| | MBPP | 1,516.0 | 2,230.1 (1.47×) | **2,908.4 (1.92×)** | | |
| | MT-Bench | 1,494.8 | 1,713.7 (1.15×) | **2,206.8 (1.48×)** | | |
| ## Citation | |
| If you find DFlash 2 useful, please cite: | |
| ```bibtex | |
| @misc{inco2026dflash2, | |
| title = {{DFlash 2: Keep Drafting Parallel}}, | |
| author = {{Inco AI}}, | |
| year = {2026}, | |
| month = {August}, | |
| url = {https://inco.ai/blog/dflash2/} | |
| } | |
| ``` | |
| Please also cite the original DFlash paper: | |
| ```bibtex | |
| @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} | |
| } | |
| ``` | |