Image-Text-to-Text
Transformers
Safetensors
inkling2_loop
Mixture of Experts
looped-transformer
nvfp4
mxfp8
mtp
darkbloom
conversational
8-bit precision
modelopt
Run this model with HF Jobs
Run EigenLabs/Inkling-2-Mini 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/EigenLabs/Inkling-2-Mini. 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/EigenLabs/Inkling-2-Mini 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/EigenLabs/Inkling-2-Mini. 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 EigenLabs/Inkling-2-Mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EigenLabs/Inkling-2-Mini with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="EigenLabs/Inkling-2-Mini") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("EigenLabs/Inkling-2-Mini") model = AutoModelForMultimodalLM.from_pretrained("EigenLabs/Inkling-2-Mini", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use EigenLabs/Inkling-2-Mini with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "EigenLabs/Inkling-2-Mini" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EigenLabs/Inkling-2-Mini", "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/EigenLabs/Inkling-2-Mini
- SGLang
How to use EigenLabs/Inkling-2-Mini 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 "EigenLabs/Inkling-2-Mini" \ --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": "EigenLabs/Inkling-2-Mini", "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 "EigenLabs/Inkling-2-Mini" \ --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": "EigenLabs/Inkling-2-Mini", "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" } } ] } ] }' - Docker Model Runner
How to use EigenLabs/Inkling-2-Mini with Docker Model Runner:
docker model run hf.co/EigenLabs/Inkling-2-Mini
File size: 5,030 Bytes
33cd028 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | ---
license: apache-2.0
license_link: https://www.apache.org/licenses/LICENSE-2.0
library_name: transformers
pipeline_tag: image-text-to-text
base_model:
- thinkingmachines/Inkling-2-Mini
tags:
- inkling2_loop
- moe
- looped-transformer
- nvfp4
- mxfp8
- mtp
- image-text-to-text
- darkbloom
---
# Inkling 2 Mini
Thinking Machines Lab's Inkling 2 Mini checkpoint, mirrored unchanged for
DarkBloom serving. The weights stay in their native mixed NVFP4 / MXFP8 / BF16
format: nothing was converted, requantized or merged. This repository adds this
card, a provenance record, the license text and a checksum list; every other
file is the upstream file at the source revision below.
| Property | Value |
|---|---|
| Upstream source | [thinkingmachines/Inkling-2-Mini](https://huggingface.co/thinkingmachines/Inkling-2-Mini/tree/1fb4134b9a74f9681054f4ef82e4bf1f458a2337) at `1fb4134b9a74f9681054f4ef82e4bf1f458a2337` |
| Tested revision | `6e7c8248f75265bdd4fbab5273304243b5d8c2cb`, fetched 2026-11-20 and used for all DarkBloom testing; identical to the source revision in every file except the upstream card (`artifact-provenance.json` has the per-file proof) |
| Architecture | `inkling2_loop` (`Inkling2LoopForConditionalGeneration`): 24 stored decoder layers, layers 6–17 run three passes (48 layer applications per token), 128 experts top-8 |
| Parameters | 26.4B total, 3.4B active (upstream card) |
| Inputs / output | Text and still images / text. Video is not an input of this model |
| Native context | 1,048,576 tokens (`text_config.model_max_length`); usable context depends on hardware and serving policy |
| Experts, layers 0–19 | NVFP4: E2M1 values, F8_E4M3 scales per 16, per-expert F32 `amax` |
| Experts, layers 20–23 | MXFP8: F8_E4M3 values, E8M0 scales per 32 |
| Everything else | BF16 (attention, router, embeddings, readout, vision tower); router bias and attention-residual queries F32 |
| Target weights | `model-00001-of-00001.safetensors`, 19,526,019,168 bytes, 1,244 tensors (822 language, 422 vision) |
| Drafter | `mtp.safetensors`, 635,801,416 bytes, 54 BF16 tensors (DSpark block drafter, 3 layers, block size 8) |
## Files
| File | Role |
|---|---|
| `model-00001-of-00001.safetensors`, `model.safetensors.index.json` | Target model and its tensor index |
| `mtp.safetensors` | DSpark drafter declared by `config.json` `mtp_config`; it sits beside the target and is not in the target's index |
| `config.json`, `generation_config.json` | Model and generation configuration |
| `chat_template.jinja` | Chat template (the tokenizer config has none) |
| `tokenizer.json`, `tokenizer_config.json`, `special_tokens_map.json`, `tiktoken/tokenizer.model` | Tokenizer |
| `processor_config.json` | Image processor |
| `hf_quant_config.json` | Upstream quantization notes; the DarkBloom runtime does not read it |
| `UPSTREAM-README.md` | The upstream model card at the source revision |
| `LICENSE` | Apache License 2.0 text |
| `artifact-provenance.json`, `SHA256SUMS` | Source identity and the SHA-256 of every file in this repository |
## Drafter
The DSpark drafter in `mtp.safetensors` is a separate file in the same
repository, bound to this exact target. It proposes blocks of tokens and the
target verifies every one, so a correct runtime gives the same greedy output
with the drafter on or off. Its presence in the repository does not by itself
mean a runtime uses it.
## Runtime
DarkBloom's native support for this checkpoint (MLX Swift on Apple silicon:
paged KV storage only, the DSpark drafter, prefix caching and image input) is
developed in the Layr-Labs `mlx-swift-lm` and `d-inference` repositories. The
checkpoint keeps the upstream Transformers layout, so other runtimes that
support `inkling2_loop` read it as they read the upstream repository.
Download size is about 20.2 GB. Memory needed to serve it is larger: the
resident weights, plus the KV cache for 8 full-attention slots and 40 sliding
slots (window 1,024) per sequence, plus a small convolution state per sequence.
Download with a pinned full commit SHA (`--revision`), not a branch name.
## Validation scope
Artifact integrity is separate from runtime qualification. The file hashes in
`SHA256SUMS` and `artifact-provenance.json` match the upstream Git and LFS
identities at both the source and the tested revision. Upstream later added a
top-level `"dtype": "bfloat16"` to `config.json` (`ed40e7da`); this repository
keeps the tested `config.json`; DarkBloom's runtime does not read a top-level `dtype`. Model quality, hardware coverage, throughput
and catalog availability are not claimed by this card; see the upstream card
for Thinking Machines Lab's own evaluations and their methodology.
## License and attribution
Inkling 2 Mini is released by Thinking Machines Lab, Inc. under the Apache
License 2.0 (`LICENSE`). Use is also subject to Thinking Machines Lab's
[Model Acceptable Use Policy](https://thinkingmachines.ai/model-acceptable-use-policy/).
The upstream card is kept as `UPSTREAM-README.md`.
|