Instructions to use LTM-Lab/Inkling-2-Mini-Uncensored-V20-Tess-RSE-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-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-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-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-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-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-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-MemoryV20-v3
- SGLang
How to use LTM-Lab/Inkling-2-Mini-Uncensored-V20-Tess-RSE-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-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-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-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-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-MemoryV20-v3 with Docker Model Runner:
docker model run hf.co/LTM-Lab/Inkling-2-Mini-Uncensored-V20-Tess-RSE-MemoryV20-v3
# 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-MemoryV20-v3", trust_remote_code=True, device_map="auto")Inkling-2-Mini-Uncensored-V20-Tess-RSE-MemoryV20-v3 (Loop-3 Default)
Inkling-2-Mini V20-v3 (26.4B MoE, original 3-pass Loop-3 default) shares the exact same merged V20-v3 weights as Inkling-2-Mini-Uncensored-V20-Tess-RSE-Loop5-MemoryV20-v3, configured with the original Inkling-2-Mini 3-pass loop depth (text_config.loop_config.num_passes = 3, mtp_config.target_layer_ids = [5, 23, 41, 48], default_loop_num_passes = 3) for faster latency, lower KV-cache footprint, and standard 3-pass DSPARK speculative decoding compatibility. You can still override loop_num_passes (1..10) per request at runtime when serving with --inkling2-loop-num-passes 10.
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), memory states can be saved to disk, reloaded across sessions, and queried even after raw conversation transcripts are completely cleared.
Leaderboard Comparison (Measured at loop_num_passes=5)
Note: The benchmark numbers below were measured on these exact V20-v3 weights with
loop_num_passes=5(see Loop5 variant); this checkpoint defaults toloop_num_passes=3for faster default inference and supports runtime override via"loop_num_passes"in thev20request object ormodel.generate(..., loop_num_passes=...).
Full Quantitative Results (V20-v3 Weights, loop_num_passes=5)
Evaluation Protocol: Served live via SGLang (
lovewin10/sglang-v17:nightly-cu134-20261122-3117f58-v20-v3-dspark-fp8kv, DSPARK + SM120 FP8 KV + FA4,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-v3 (Pure-Latent B) | Parametric 4 MiB State (26B) | 41.81 (micro 49.88) | 58.23 | 13.12 | 15.60 | 37.72 | 32.19 |
Differences vs. Loop5 Variant
| Setting | Loop-3 Variant (This Repo) | Loop-5 Variant |
|---|---|---|
text_config.loop_config.num_passes |
3 (48 virtual layers) |
5 (72 virtual layers) |
mtp_config.target_layer_ids |
[5, 23, 41, 48] |
[5, 35, 65, 72] |
v20_export.json default_loop_num_passes |
3 |
5 |
| Backbone, MTP & V20-v3 FP32 Memory Weights | Identical (bit-for-bit) | Identical (bit-for-bit) |
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).
Windows PowerShell:
$modelPath = (Resolve-Path ".\Inkling-2-Mini-Uncensored-V20-Tess-RSE-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":3,"reasoning_effort":"none"}}'
2. Hugging Face Transformers (Python SDK)
from transformers import AutoModelForImageTextToText, AutoProcessor
repo = "LTM-Lab/Inkling-2-Mini-Uncensored-V20-Tess-RSE-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.")
inputs, ctx = memory.prepare_generation(
[{"role": "user", "content": "When did I adopt my kitten?"}],
loop_num_passes=3,
)
out = model.generate(**inputs, memory_context=ctx, loop_num_passes=3, max_new_tokens=128)
print(processor.decode(out[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))
memory.save_state_safetensors("user_a_mem.safetensors", dtype="float16")
memory.clear_transcript() # source_count == 0, has_latent_state == True
Honest Scope & Model Lineage
- Hybrid A+B vs. Pure-Latent B: Use Hybrid A+B (default) for high-precision multi-fact, timeline, and open-QA tasks (
70.573-bench mean /66.784-bench mean at 5 passes). Pure-Latent.safetensors(4 MiB, zero raw transcript) excels on preference/persona continuity (58.23%PersonaMem-32K,84.85%update reasons), while verbatim multi-slot codes exhibit drift (LoCoMo 13.12%,LongMemEval-S 15.60%). - Licensing: Original Inkling-2-Mini backbone is Apache-2.0. Upstream SFT/DPO lineage included Cohere Labs Tiny Aya (CC BY-NC 4.0) and OpenHermesPreferences-roleplay (source-dependent licenses).
- Downloads last month
- 33


# 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-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)