Run this model with HF Jobs
Run LTM-Lab/Inkling-2-Mini-Unbound-MemoryV20-v5 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/LTM-Lab/Inkling-2-Mini-Unbound-MemoryV20-v5. 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/LTM-Lab/Inkling-2-Mini-Unbound-MemoryV20-v5 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/LTM-Lab/Inkling-2-Mini-Unbound-MemoryV20-v5. 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 LTM-Lab/Inkling-2-Mini-Unbound-MemoryV20-v5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LTM-Lab/Inkling-2-Mini-Unbound-MemoryV20-v5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="LTM-Lab/Inkling-2-Mini-Unbound-MemoryV20-v5", trust_remote_code=True) 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 AutoModelForMultimodalLM model = AutoModelForMultimodalLM.from_pretrained("LTM-Lab/Inkling-2-Mini-Unbound-MemoryV20-v5", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use LTM-Lab/Inkling-2-Mini-Unbound-MemoryV20-v5 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LTM-Lab/Inkling-2-Mini-Unbound-MemoryV20-v5" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LTM-Lab/Inkling-2-Mini-Unbound-MemoryV20-v5", "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/LTM-Lab/Inkling-2-Mini-Unbound-MemoryV20-v5
- SGLang
How to use LTM-Lab/Inkling-2-Mini-Unbound-MemoryV20-v5 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 "LTM-Lab/Inkling-2-Mini-Unbound-MemoryV20-v5" \ --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": "LTM-Lab/Inkling-2-Mini-Unbound-MemoryV20-v5", "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 "LTM-Lab/Inkling-2-Mini-Unbound-MemoryV20-v5" \ --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": "LTM-Lab/Inkling-2-Mini-Unbound-MemoryV20-v5", "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 LTM-Lab/Inkling-2-Mini-Unbound-MemoryV20-v5 with Docker Model Runner:
docker model run hf.co/LTM-Lab/Inkling-2-Mini-Unbound-MemoryV20-v5
Inkling-2-Mini-Unbound-MemoryV20-v5
Inkling-2-Mini V20-v5 (26.4B MoE, Native Loop-3) is a clean-base, first-principles 16.0 MiB Direct Full-Rank Parametric + Archival Dual-Channel Long-Term Memory model built directly on top of nokeepai/Inkling-2-Mini-Unbound (v3, native num_passes=3) — with no extra TinyAya/Tess/RSE/Loop-5 base stacking — designed to test and unlock true parametric memory capacity scaling across 10K → 262K contexts.
Key Breakthroughs in V20-v5 (16.0 MiB Direct Full-Rank vs 32.0 MiB V20-v4-MLA & 4.0 MiB V20-v3)
- Direct Full-Rank
64H × 512 D_k × 256 D_vAssociative State (16.0 MiBFP16 /32.0 MiBFP32):- 4× higher orthogonal key capacity per head (
D_k = 512vs128) than V20-v3, yielding 4× lower cross-talk variance and 4× less accidental erasure over 32K–262K token streams. - Zero MLA low-rank bottlenecks (
site_q_proj,stem_v_proj, andsite_out_projare 100% direct full-rank across all 4 readout sites[2, 5, 8, 11]), paired with a wider1024d4-layer 16-head contextual encoder (637.5Mtotal FP32 memory parameters). - Removed distractor-amplifying Surprise Gate (
v20_use_surprise_gate=False) and fixed long-episode BPTT truncation via Full-Horizon Checkpointed Exact BPTT (bptt_window=48) across 3× longer training (4,000Stage-1 +1,500optimal Stage-1.5 PT +3,000Stage-2 SFT steps on native Loop-3).
- 4× higher orthogonal key capacity per head (
- All-Time Record Pretraining Ceiling, Retrieval & Held-Out Generation:
- Stage 1.5 PT
dev_pt_gain:+3.7685 nats(43.3×perplexity reduction strictly from the16.0 MiBlatent state — beating V20-v3+3.0155and 32 MiB V20-v4-MLA+3.4590). - Held-Out Test Eval:
state_r1 = 79.5%(vs V372.0%, V4-MLA71.5%),visual_crop_2d_r1 = 54.2%(vs39.3% / 20.0%),hop2_r1 = 56.5%, and87.5%Exact Match /90.6%Contains Match (vs78.1%EM on both V3 and V4-MLA).
- Stage 1.5 PT
- Decisively Beats 32 MiB V20-v4-MLA Everywhere at 1.8×–6.6× Faster Latency & Sets New Pure-Latent Factual Record:
- Beats 32 MiB V20-v4-MLA (Loop-5) across every
≥32Kbenchmark:PersonaMem-32K+9.26%(66.67% vs 57.41%),MemBench-32K++8.00%(72.00% vs 64.00%),LoCoMo-32K++5.71%(68.05% vs 62.34%),BEAM-262K+3.41%(29.55% vs 26.14%), and 36K–262K 4-Bench Mean+3.78%Hybrid /+1.99%Pure-Latent. - Beats both V20-v3 (
4 MiB) and V20-v4-MLA (32 MiB) onMemBench-32K+(≥36K) Pure-Latent (40.00%), with factual quadrants soaring to56.0%(+22%vs V3,+28%vs V4-MLA) and64.0%(+8%vs V3). - Fast Native Loop-3 Serving:
612.7 tok/svia DSPARK + FA4 + FP8 KV (+32.5%faster than Loop-5;1.8×–6.6×lower per-query latency), 262K input / 128K output budget, and O(1)-VRAM streaming (64.8 / 97.9 GBflat VRAM across ~3M evaluated tokens).
- Beats 32 MiB V20-v4-MLA (Loop-5) across every
Cross-Horizon Benchmarks (10K → 262K Context)
Fair Evaluation Protocol: All three checkpoints were served on the same 262K SGLang stack (
lovewin10/sglang-v17:nightly-cu134-20261122-3117f58-v20-v5-dspark-fp8kv, FA4 + FP8 E4M3 KV + DSPARK) and graded offline by the exact same calibratedgpt-6.1-solOmniMemEval judge (100.0%parsed across all open-QA items). V20-v5 runs on its native 3 loop passes (Inkling-2-Mini-Unboundbase), whereas V20-v3 and V20-v4-MLA run on 5 loop passes (Tess-RSE-Loop5base).
| Benchmark (Horizon / n) | Base Unbound (No Memory) |
V20-v3 (4 MiB, Loop-5) Hybrid |
V20-v4-MLA (32 MiB, Loop-5) Hybrid |
V20-v5 (16 MiB, Unbound Loop-3) Hybrid |
V20-v3 (4 MiB) Pure-Latent |
V20-v4-MLA (32 MiB) Pure-Latent |
V20-v5 (16 MiB) Pure-Latent |
|---|---|---|---|---|---|---|---|
| MemBench-40 (0–10K, n=40) | 15.00% |
85.00% |
85.00% |
85.00% (Ch-A: 82.5%) |
47.50% |
40.00% |
40.00% |
| PersonaMem-32K (32K, n=54) | 35.19% |
75.93% |
57.41% |
66.67% (Ch-A: 66.7%) |
55.56% |
42.59% |
46.30% |
| MemBench-32K+ (≥36K, n=200) | — | 73.00% |
64.00% |
72.00% (Fact: 82%/82%) |
38.50% |
35.00% |
40.00% (Fact: 56%/64%) |
| LoCoMo-32K+ (≥38K, n=385) | — | 72.73% |
62.34% |
68.05% (Open: 61.9%) |
11.17% |
8.31% |
10.13% |
| BEAM-100K (~120K, n=100) | — | 42.00% |
40.00% |
38.00% (KU 70%, Abst 70%) |
18.00% |
17.00% |
17.00% (Contra 20%, Temp 20%) |
| BEAM-262K (~250K, n=88) | — | 30.68% |
26.14% |
29.55% (KU 55.6%, MS 20%) |
17.05% |
13.64% |
14.77% (Contra 11.1%) |
| 36K–262K 4-Bench Mean | — | 54.60% |
48.12% |
51.90% (+3.78 vs v4) |
21.18% |
18.49% |
20.48% (+1.99 vs v4) |
Stage 1.5 PT dev_pt_gain |
— | +3.0155 |
+3.4590 |
+3.7685 (43.3× PPL drop) |
— | — | — |
| Held-Out Test EM / Contains | — | 78.1% / 84.4% |
78.1% / 78.1% |
87.5% / 90.6% |
— | — | — |
| DSPARK Speed (128K budget) | — | ~460 tok/s |
462.4 tok/s |
612.7 tok/s |
— | — | — |
262K Input / 128K Output Live Stress Verification
- 250K-token event stream (
1,175,126chars,220events): Ingest + drain12.34s; Hybrid 4/4 exact needles using only16,222prompt tokens (15× cheaper than raw 248K prefill);16.0 MiBFP16.safetensors(16,777,992bytes, zero plaintext leakage in tensor payload). max_tokens=131072(128K output budget): Accepted and completed cleanly at612.7 tok/s.- Zero-Leak Disk Offload: After processing ~3M tokens across all 10K→262K benchmarks, GPU VRAM stayed completely flat at
64.8 / 97.9 GBand SQLite storage stayed at1.3 GB.
Architecture Specifications (V20-v5)
- Base Backbone:
nokeepai/Inkling-2-Mini-Unbound(v3, NVFP4modelopt, nativeloop_num_passes=3,mtp_config.target_layer_ids=[5, 23, 41, 48]), plus lossless merge of96BF16 attention LoRA modules (rank=16, alpha=32,stem_id_invariant_verified: true). - Contextual Encoder:
4hybrid causal short-conv + RoPE self-attention + SwiGLU layers,d=1024,16heads (56.55Mparams) + 2D multi-scale vision grid. - Direct Full-Rank Parametric Latent State:
64 heads (32 fast + 32 slow) × 512 D_k × 256 D_v(8,388,608floats =16.0 MiBFP16 /32.0 MiBFP32), direct full-rankstem_v_proj,site_q_proj, andsite_out_projacross 4 readout sites[2, 5, 8, 11],use_surprise_gate=False,580.96Mstate params (637,505,991total FP32 memory parameters inmodel-v20-memory.safetensors,97tensors).
Quick Start
1. SGLang Docker Serving (Recommended, RTX PRO 6000 / Blackwell SM120, 262K Context)
Docker Hub image: lovewin10/sglang-v17:nightly-cu134-20261122-3117f58-v20-v5-dspark-fp8kv (also tagged latest and nightly-cu134-20261122-3117f58-v20-dspark-fp8kv).
Windows PowerShell:
$modelPath = (Resolve-Path ".\Inkling-2-Mini-Unbound-MemoryV20-v5").Path
$image = "lovewin10/sglang-v17:nightly-cu134-20261122-3117f58-v20-v5-dspark-fp8kv"
docker run -d --name inkling-v20-memorysft --gpus all --shm-size=4g --stop-timeout 120 `
-p 127.0.0.1:30000:30000 `
--mount "type=bind,source=$modelPath,target=/model,readonly" `
--mount "type=volume,source=inkling-v20-memory,target=/memory" `
-e SGLANG_OPT_INKLING2_VERIFY_REL_BIAS_KERNEL=1 -e SGLANG_OPT_DSV41_DSPARK_MID_FOLD=1 `
-e SGLANG_OPT_DSV41_DSPARK_PREPARE_INPUTS_ONCE=1 -e SGLANG_OPT_DSV41_DSPARK_SKIP_PREFILLED_INPUTS=1 `
$image sglang serve --model-path /model --served-model-name inkling-v20 `
--tp 1 --ep 1 --enable-multimodal --attention-backend fa4 --dtype bfloat16 --page-size 128 `
--context-length 262144 --chunked-prefill-size 2048 --mem-fraction-static 0.60 `
--speculative-algorithm DSPARK --speculative-num-draft-tokens 8 --max-running-requests 15 `
--kv-cache-dtype fp8_e4m3 --speculative-draft-kv-cache-dtype fp8_e4m3 --inkling2-loop-num-passes 10 `
--grammar-backend xgrammar --reasoning-parser inkling --tool-call-parser inkling2 --host 0.0.0.0 --port 30000
Portable 16.0 MiB .safetensors Workflow over HTTP:
# 1. Ingest events (stored in SQLite disk offload)
curl -s http://127.0.0.1:30000/v20/memory/add \
-H 'Content-Type: application/json' \
-d '{"bank":"user-a","occurrence_id":"turn-1","text":"My kitten Mochi is 3 months old and loves salmon."}'
# 2. Export standalone 16.0 MiB FP16 .safetensors latent memory state
curl -s http://127.0.0.1:30000/v1/memory/state/save \
-H 'Content-Type: application/json' \
-d '{"bank":"user-a","name":"user_a_v5_16mib.safetensors","dtype":"float16"}'
# 3. Clear raw transcript completely (source_count=0, has_latent_state=true)
curl -s http://127.0.0.1:30000/v1/memory/state/clear_transcript \
-H 'Content-Type: application/json' -d '{"bank":"user-a"}'
# 4. Reload into a fresh session and query using native loop_num_passes=3
curl -s http://127.0.0.1:30000/v1/memory/state/load \
-H 'Content-Type: application/json' \
-d '{"bank":"user-a-reborn","name":"user_a_v5_16mib.safetensors","replace":true}'
curl -s http://127.0.0.1:30000/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{"model":"inkling-v20","messages":[{"role":"user","content":"How old is my kitten?"}],"temperature":0,"max_tokens":64,"v20":{"bank":"user-a-reborn","channel_a_enabled":false,"use_neural_state":true,"loop_num_passes":3,"reasoning_effort":"none"}}'
- Downloads last month
- 26
Model tree for LTM-Lab/Inkling-2-Mini-Unbound-MemoryV20-v5
Base model
thinkingmachines/Inkling-2-Mini
