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.

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)

  1. Direct Full-Rank 64H × 512 D_k × 256 D_v Associative State (16.0 MiB FP16 / 32.0 MiB FP32):
    • 4× higher orthogonal key capacity per head (D_k = 512 vs 128) 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, and site_out_proj are 100% direct full-rank across all 4 readout sites [2, 5, 8, 11]), paired with a wider 1024d 4-layer 16-head contextual encoder (637.5M total 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,000 Stage-1 + 1,500 optimal Stage-1.5 PT + 3,000 Stage-2 SFT steps on native Loop-3).
  2. 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 the 16.0 MiB latent state — beating V20-v3 +3.0155 and 32 MiB V20-v4-MLA +3.4590).
    • Held-Out Test Eval: state_r1 = 79.5% (vs V3 72.0%, V4-MLA 71.5%), visual_crop_2d_r1 = 54.2% (vs 39.3% / 20.0%), hop2_r1 = 56.5%, and 87.5% Exact Match / 90.6% Contains Match (vs 78.1% EM on both V3 and V4-MLA).
  3. 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 ≥32K benchmark: 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) on MemBench-32K+ (≥36K) Pure-Latent (40.00%), with factual quadrants soaring to 56.0% (+22% vs V3, +28% vs V4-MLA) and 64.0% (+8% vs V3).
    • Fast Native Loop-3 Serving: 612.7 tok/s via 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 GB flat VRAM across ~3M evaluated tokens).

Cross-Horizon Benchmarks (10K → 262K Context)

V20-v3 vs V20-v4-MLA vs V20-v5 Horizon Scaling

Why 16 MiB Direct Full-Rank V20-v5 Beats 32 MiB V20-v4-MLA

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 calibrated gpt-6.1-sol OmniMemEval judge (100.0% parsed across all open-QA items). V20-v5 runs on its native 3 loop passes (Inkling-2-Mini-Unbound base), whereas V20-v3 and V20-v4-MLA run on 5 loop passes (Tess-RSE-Loop5 base).

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,126 chars, 220 events): Ingest + drain 12.34s; Hybrid 4/4 exact needles using only 16,222 prompt tokens (15× cheaper than raw 248K prefill); 16.0 MiB FP16 .safetensors (16,777,992 bytes, zero plaintext leakage in tensor payload).
  • max_tokens=131072 (128K output budget): Accepted and completed cleanly at 612.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 GB and SQLite storage stayed at 1.3 GB.

Architecture Specifications (V20-v5)

  • Base Backbone: nokeepai/Inkling-2-Mini-Unbound (v3, NVFP4 modelopt, native loop_num_passes=3, mtp_config.target_layer_ids=[5, 23, 41, 48]), plus lossless merge of 96 BF16 attention LoRA modules (rank=16, alpha=32, stem_id_invariant_verified: true).
  • Contextual Encoder: 4 hybrid causal short-conv + RoPE self-attention + SwiGLU layers, d=1024, 16 heads (56.55M params) + 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,608 floats = 16.0 MiB FP16 / 32.0 MiB FP32), direct full-rank stem_v_proj, site_q_proj, and site_out_proj across 4 readout sites [2, 5, 8, 11], use_surprise_gate=False, 580.96M state params (637,505,991 total FP32 memory parameters in model-v20-memory.safetensors, 97 tensors).

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
Safetensors
Model size
27B params
Tensor type
F32
·
BF16
·
F8_E4M3
·
U8
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for LTM-Lab/Inkling-2-Mini-Unbound-MemoryV20-v5

Quantized
(34)
this model