Instructions to use LTM-Lab/Inkling-2-Mini-Uncensored-V20-Tess-RSE-Loop5-MemoryV20-v3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LTM-Lab/Inkling-2-Mini-Uncensored-V20-Tess-RSE-Loop5-MemoryV20-v3 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-Uncensored-V20-Tess-RSE-Loop5-MemoryV20-v3", 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-Uncensored-V20-Tess-RSE-Loop5-MemoryV20-v3", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use LTM-Lab/Inkling-2-Mini-Uncensored-V20-Tess-RSE-Loop5-MemoryV20-v3 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-Uncensored-V20-Tess-RSE-Loop5-MemoryV20-v3" # 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-Uncensored-V20-Tess-RSE-Loop5-MemoryV20-v3", "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-Uncensored-V20-Tess-RSE-Loop5-MemoryV20-v3
- SGLang
How to use LTM-Lab/Inkling-2-Mini-Uncensored-V20-Tess-RSE-Loop5-MemoryV20-v3 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-Uncensored-V20-Tess-RSE-Loop5-MemoryV20-v3" \ --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-Uncensored-V20-Tess-RSE-Loop5-MemoryV20-v3", "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-Uncensored-V20-Tess-RSE-Loop5-MemoryV20-v3" \ --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-Uncensored-V20-Tess-RSE-Loop5-MemoryV20-v3", "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-Uncensored-V20-Tess-RSE-Loop5-MemoryV20-v3 with Docker Model Runner:
docker model run hf.co/LTM-Lab/Inkling-2-Mini-Uncensored-V20-Tess-RSE-Loop5-MemoryV20-v3
Inkling-2-Mini-Uncensored-V20-Tess-RSE-Loop5-MemoryV20-v3
Inkling-2-Mini V20-v3 (26.4B MoE, 5-pass looped transformer) is a multimodal long-term memory model featuring a Dual-Channel Native + Archival Hybrid Memory (Channel A + Channel B) and MemT-1.0-Pro-style portable .safetensors latent memory states (4.0 MiB FP16 / 8.0 MiB FP32) that can be saved to disk, reloaded across sessions, and queried even after raw conversation transcripts are completely cleared.
On the MemT-1.0-Pro benchmark suite (4 benchmarks evaluated live on SGLang with deterministic MCQ and verbatim OmniMemEval LLM-as-a-Judge via Codex gpt-6-luna), this 26B model achieves:
- 3-Benchmark Mean (MemT-1.0-Pro published scope):
70.57— beating 554BMemT-1.0-Pro(67.90, +2.67) with 21× fewer parameters. - 4-Benchmark Mean (incl. LongMemEval-S):
66.78— beating 288BMemT-1.0-Flash(59.36, +7.42), 36BMemT-1.0-Nano(53.54, +13.24),DenseRAG-DS(64.11, +2.67), andGraphiti-DS(56.73, +10.05). - Beats 288B
MemOS-DS(textual memory) head-to-head on both MemBench (0-10K) (79.04vs78.38) and PersonaMem-32K (69.61vs67.06). - 4 MiB Pure-Latent State (zero raw transcript) scores
58.23on PersonaMem-32K, outperforming 36BMemT-1.0-Nano(52.29),Graphiti-DS(53.65), andTemp-LoRA-35B(57.39), with a+2.98 natsheld-out PT LM gain (19.6×perplexity drop strictly from the 4 MiB state).
Leaderboard Comparison
Full Quantitative Results
Evaluation Protocol: Served live via SGLang (
lovewin10/sglang-v17:nightly-cu134-20261122-3117f58-v20-v3-dspark-fp8kv, DSPARK + SM120 FP8 KV + FA4,loop_num_passes=5,0%empty outputs across all 4,080 open-QA responses).MemBench (0-10K)andPersonaMem-32Kuse 100% deterministic MCQ scoring;LoCoMo (non-adv)(1,540 QA) andLongMemEval-S(500 QA) use verbatim OmniMemEvalJUDGE_PROMPTgraded offline by Codexgpt-6-luna(100%parsed). Reference scores are from MemT-1.0 (arXiv:2610.26825, Table 2).
| System | Type / Size | MemBench (0-10K) | PersonaMem-32K | LoCoMo (non-adv) | LongMemEval-S | 3-Bench Mean (Pro Scope) | 4-Bench Mean |
|---|---|---|---|---|---|---|---|
| MemOS-DS | Textual Memory (288B) | 78.38 | 67.06 | 85.65 | 83.20 | 77.03 | 78.57 |
| Inkling-2-Mini V20-v3 (Hybrid A+B) | Hybrid Native+Archival (26B) | 79.04 | 69.61 | 63.05 | 55.40 | 70.57 | 66.78 |
| MemT-1.0-Pro | Parametric 13M State (554B) | 71.40 | 67.70 | 64.60 | — | 67.90 | — |
| DenseRAG-DS | Textual Memory (DeepSeek) | 69.30 | 59.42 | 58.31 | 69.40 | 62.34 | 64.11 |
| Inkling-2-Mini V20-v2 (Hybrid A+B) | Previous Hybrid (26B) | 77.43 | 60.78 | 51.62 | 54.80 | 63.28 | 61.16 |
| MemT-1.0-Flash | Parametric 336M State (288B) | 73.48 | 61.63 | 65.13 | 37.20 | 66.75 | 59.36 |
| Graphiti-DS | Textual Graph (DeepSeek) | 49.58 | 53.65 | 66.69 | 57.00 | 56.64 | 56.73 |
| MemT-1.0-Nano | Parametric 10M State (36B) | 71.75 | 52.29 | 57.53 | 32.60 | 60.52 | 53.54 |
| Inkling-2-Mini V20-v1 (Hybrid A+B) | Initial Hybrid (26B) | 65.97 | 45.50 | 20.84 | — | 44.10 | — |
| Inkling-2-Mini V20-v3 (Pure-Latent B) | Parametric 4 MiB State (26B) | 41.81 (micro 49.88) | 58.23 | 13.12 | 15.60 | 37.72 | 32.19 |
| Temp-LoRA-35B | Parametric Memory (35B) | 44.25 | 57.39 | 25.13 | 13.40 | 42.26 | 35.04 |
| Doc-to-LoRA-4B | Parametric Memory (4B) | 57.19 | 33.96 | 24.48 | 14.60 | 38.54 | 32.56 |
| MemoryLLM-8B | Parametric Memory (8B) | 22.71 | 41.09 | 46.62 | 15.60 | 36.81 | 31.50 |
| SHINE-8B | Parametric Memory (8B) | 40.70 | 39.90 | 26.69 | 13.80 | 35.76 | 30.27 |
| delta-mem-4B | Parametric Memory (4B) | 37.48 | 46.86 | 20.26 | 14.80 | 34.87 | 29.85 |
Per-Category Breakdown (V20-v2 → V20-v3 Hybrid A+B)
- MemBench (0-10K) (
77.43 → 79.04, micro75.98 → 79.39):observation_factual 86.43%,observation_reflective 83.33%,participation_factual 76.39%(+6.67),participation_reflective 70.00%. - PersonaMem-32K (
60.78 → 69.61,+8.83):recalling_the_reasons_behind_previous_updates 90.91%,recalling_facts_mentioned_by_the_user 82.35%,provide_preference_aligned_recommendations 80.00%,track_full_preference_evolution 77.70%,recall_user_shared_facts 65.12%,generalizing_to_new_scenarios 64.91%,suggest_new_ideas 35.48%(+6.45). - LoCoMo (non-adv) (
51.62 → 63.05,+11.43):temporal 19.00% → 59.50% (+40.50),single_hop 70.63% → 74.67%,open_domain 38.54% → 46.88%,multi_hop 36.52% → 37.94%. - LongMemEval-S (
54.80 → 55.40):single-session-user 84.29%,single-session-assistant 83.93%,knowledge-update 76.92%,temporal-reasoning 41.35%,multi-session 38.35%(+6.77),single-session-preference 16.67%.
Architecture Highlights (V20-v3)
- Channel A — Timeline-Aligned & Multi-Session Archival Retrieval:
- Explicit Calendar & Relative-Date Alignment: Canonical
date=YYYY-MM-DD (Dow), query-relativeoffset=±Nd, and deterministic EN/ZH relative-date grounding (resolved="yesterday=2023-05-07 (Sun); ..."). - Two-Field BM25F + Multi-Session Recall: Independent length-normalized
user:utterance field alongside full chunk text, instruction-wrapper stripping, query-intent adaptivek, clause-split dual-target retrieval (between X and Y,both X and Y in common), chunk-length-aware multi-session diversity, and excerpt compaction.
- Explicit Calendar & Relative-Date Alignment: Canonical
- Channel B — 64-Head Multi-Timescale Parametric Latent State + Lexical Stem Bypass:
- Stem-Invariant Contextual Encoder:
4layers,d=768,12heads (32.6Mparams) + 2D multi-scale vision grid. - Neural State Writer & 4-Site Loop Readout:
64 × 128 × 256(2,097,152floats =4.0 MiBFP16 /8.0 MiBFP32),32 fast + 32 slowlog-spaced multi-timescale decay heads, gated direct lexical stem residual bypass (stem_v_proj+stem_v_gate), and 4 readout injection sites at core offsets[2, 5, 8, 11](Layers8, 11, 14, 17) across all loop passes. - Embedded FP32 Memory Shard:
327,294,407memory parameters (97FP32 tensors inmodel-v20-memory.safetensors), plus lossless merge of96BF16 attention LoRA modules (rank=16, alpha=32,stem_id_invariant_verified: true).
- Stem-Invariant Contextual Encoder:
- Portable
.safetensorsMemory State (Zero Raw Transcript):- Save
m_fast&m_slowto a standalone4.0 MiBFP16.safetensorsfile (zero raw text or image bytes), wipe or close the session (source_count = 0), reload into any fresh bank, and continue querying or appending new memories seamlessly.
- Save
Quick Start
1. SGLang Docker Serving (Recommended, RTX PRO 6000 / Blackwell SM120)
Docker Hub image: lovewin10/sglang-v17:nightly-cu134-20261122-3117f58-v20-v3-dspark-fp8kv (also tagged latest and nightly-cu134-20261122-3117f58-v20-dspark-fp8kv).
Windows PowerShell:
$modelPath = (Resolve-Path ".\Inkling-2-Mini-Uncensored-V20-Tess-RSE-Loop5-MemoryV20-v3").Path
$image = "lovewin10/sglang-v17:nightly-cu134-20261122-3117f58-v20-v3-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 `
--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 .safetensors State Workflow over HTTP:
# 1. Ingest conversation events
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 is 3 months old and loves salmon."}'
# 2. Export standalone 4 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_mem.safetensors","dtype":"float16"}'
# 3. Completely clear raw conversation records (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 brand-new empty session and query purely from the 4 MiB .safetensors state
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_mem.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":5,"reasoning_effort":"none"}}'
2. Hugging Face Transformers (Python SDK)
Requires a Transformers build with native Inkling2 Loop support and trust_remote_code=True:
from transformers import AutoModelForImageTextToText, AutoProcessor
repo = "LTM-Lab/Inkling-2-Mini-Uncensored-V20-Tess-RSE-Loop5-MemoryV20-v3"
processor = AutoProcessor.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForImageTextToText.from_pretrained(
repo, trust_remote_code=True, dtype="auto", device_map="auto"
).eval()
with model.open_memory(processor, "./v20-bank", bank_id="user_a") as memory:
memory.remember(occurrence_id="note-1", text="[Session 1 | Date: 20 January, 2023] User: I adopted a 3-month-old kitten yesterday.")
# Hybrid A+B recall (default, best accuracy)
inputs, ctx = memory.prepare_generation(
[{"role": "user", "content": "When did I adopt my kitten?"}],
loop_num_passes=5,
)
out = model.generate(**inputs, memory_context=ctx, loop_num_passes=5, max_new_tokens=128)
print(processor.decode(out[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))
# Save 4 MiB FP16 latent state, wipe all raw text, and reload later
memory.save_state_safetensors("user_a_mem.safetensors", dtype="float16")
memory.clear_transcript() # source_count == 0, has_latent_state == True
Honest Scope & Known Limitations
- Hybrid (A+B) vs. Pure-Latent (B-only):
- Use Hybrid A+B (
channel_a_enabled=True, use_neural_state=True, the default) for high-precision multi-fact, timeline, and open-QA workloads (70.573-bench mean /66.784-bench mean). - Pure-Latent
.safetensors(4 MiB, zero raw transcript) is strong on user preference/persona continuity (58.23%onPersonaMem-32K,84.85%on update reasons,71.94%on preference evolution), but like other fixed-size parametric states, verbatim multi-slot codes and long-tail exact alphanumeric updates still exhibit drift (LoCoMo 13.12%,LongMemEval-S 15.60%).
- Use Hybrid A+B (
- LongMemEval-S Recall Token Budget: The reported
55.40%score was measured withmax_recall_tokens=4096(~2.7 chunks per query, ~40× prompt compression vs. 115K haystacks). Increasingmax_recall_tokens(e.g.8192–12288) allows more retrieved sessions into<v20_recall>for multi-session aggregation queries.
Model Lineage & Licenses
- Base Backbone: Built upon the 5-pass RSE-Loop5 merge of Inkling-2-Mini V19 TinyAya DPO (with Unbound v3 fix), Inkling-2-Mini-Unbound, and Tess-4.5-26B-A3B, then upgraded to V20-v3 dual-channel memory and trained via leakage-free 3-stage continual-memory pretraining & SFT (Stage 1 PT 3,000 steps → Stage 1.5 PT 900 steps → Stage 2 SFT 1,200 steps).
- Licensing: The original Inkling-2-Mini backbone is Apache-2.0. Upstream SFT and preference lineage included Cohere Labs Tiny Aya (CC BY-NC 4.0) and OpenHermesPreferences-roleplay (source-dependent licenses). Please respect all upstream dataset and parent checkpoint license terms.
- Downloads last month
- 36


docker model run hf.co/LTM-Lab/Inkling-2-Mini-Uncensored-V20-Tess-RSE-Loop5-MemoryV20-v3