|
Download README.md from tiny-random/inkling2-loop: direct link, hf CLI and curl.
- Browser
- Download file 3.57 kB
-
https://huggingface.co/tiny-random/inkling2-loop/resolve/main/README.md
- Command line
-
hf download hf://tiny-random/inkling2-loop/README.md
-
curl -L -o README.md https://huggingface.co/tiny-random/inkling2-loop/resolve/main/README.md
3.57 kB
metadata
library_name: sglang
pipeline_tag: image-text-to-text
base_model:
- thinkingmachines/Inkling-2-Mini
This is a randomly initialized tiny model based on thinkingmachines/Inkling-2-Mini for testing and debugging.
| Feature | Source | Tiny |
|---|---|---|
| Checkpoint tensor elements (including packed weights/scales) | 2.25B BF16, 247.85K F32, 5.35B F8_E4M3, 10.32B U8 | 62.03M BF16, 9.75K F32, 12.39M F8_E4M3, 23.89M U8 |
| Safetensors weight files (including MTP) | 20.16 GB (2 files) | 160.44 MB (2 files) |
| Decoder layers / attention residual block | 24 / 6 | 12 / 6 |
| Loop core / passes per token | 6-17 / 3 (48 layer visits) | 6-11 / 3 (24 layer visits) |
| Attention cycle | 5 SWA + 1 global | Same; two complete cycles |
| Routed experts / experts per token | 128 / 8 | 96 / 8 |
| Expert precision | 20 NVFP4 + 4 MXFP8 layers | 10 NVFP4 + 2 MXFP8 layers |
| Vocabulary / tied embeddings | 201,024 / false | 201,024 / false |
| Hidden / expert width | 2,304 / 1,152 | 128 / 128 |
| Q heads / KV heads / head dimension | 24 / 8 / 128 | 8 / 4 / 128 |
| Vision width / layers | 1,024 / 23 | 32 / 4 |
| MTP layers / block size / Markov rank | 3 / 8 / 256 | 3 / 8 / 8 |
| MTP feature taps | 5,23,41,48 | 5,11,23,24 |
| File path | Size |
|---|---|
| model.safetensors | 153.8MB |
| mtp.safetensors | 6.7MB |
Example usage
SGLang serving (✅ verified)
Install the tested SGLang revision from PR #51926. Keep CUDA graph flags absent: this revision resolves Inkling prefill and decode to full graphs.
SGLANG_BUILD_RUST_EXTS=none pip install 'git+https://github.com/sgl-project/sglang.git@87d973030a5903c52b656e43bad37de15a4c9132#subdirectory=python'
sglang serve --model-path tiny-random/inkling2-loop --tp 2 --ep 2 \
--dtype bfloat16 --attention-backend fa4 --enable-multimodal \
--context-length 2048 --mem-fraction-static 0.2 \
--watchdog-timeout 1800 \
--reasoning-parser inkling --tool-call-parser inkling2
This example uses plain decoding (no DSpark). Send a messages list to the OpenAI-compatible chat endpoint. For images, use an image_url content part with a data: URL.
curl http://localhost:30000/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{"model": "tiny-random/inkling2-loop", "max_tokens": 10, "temperature": 0, "ignore_eos": true,
"messages": [{"role": "user", "content": "Hello"}]}'
curl http://localhost:30000/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{"model": "tiny-random/inkling2-loop", "max_tokens": 10, "temperature": 0, "ignore_eos": true, "messages": [
{"role": "user", "content": [
{"type": "text", "text": "Describe this image."},
{"type": "image_url", "image_url": {"url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAIAAAABc2X6AAAAaUlEQVR42u3PAQEAMAQAMJ5QHHFEfQ+2BsvqiUteHCMsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLLzbB8E/AgjBE0HxAAAAAElFTkSuQmCC"}}
]}
]}'
Creating this repo
- Code: .meta/create_model.py
- Model structure: .meta/model.log
- Environment: .meta/env.json
Change log
- 2026-11-25: Initial tiny Inkling-2-Mini looped checkpoint; mixed NVFP4/MXFP8 experts.
- 2026-11-25: hidden 128 (SM90 Marlin floor), 96 experts over both precision regions, 2 x core message queries, and MTP geometry matched to the source header.
This repo is generated by GPT-6.1-Sol