259 stars in two days. arXiv 2610.26825. A 7 MB tech report, a Hugging Face collection, and an SGLang-based server with explicit memory budgets per rank. The first commit (852abff feat: publish MemT-1.0 release) is two days old, the second one (e75c13d chore: add repository code owners) is from yesterday.
MemTensor/MemT-1.0 is what the project calls a “memory foundation model.” The pitch, in one line: persistent memory that lives in the model’s forward pass instead of in the prompt, and stays constant in size — the README claims about a 66× reduction in storage versus a full-context KV cache at 128 K history length.
What that actually looks like in code, on disk, and in the benchmark chart is the post.
What “memory-native” means architecturally
Inside every Transformer block, attention runs in parallel with a Native Memory Block. The block has two halves:
- Local Memory Block —
M_I^(ℓ) ∈ R^(H_m · d_l × d_m), a multi-channel memory matrix that evolves across interaction steps. Initialized to zero at each new trajectory, so a fresh session starts clean. - Hyper Memory Block — trainable projections and gates: memory Q/K/V (
W^Q_O,W^K_O,W^V_O), erase / write / forget storage-gate parameters (W_E,W_W,W_F), and output-gate parameters (W^{θ_O},W^{θ_φ_O}).
The forward path reads memory through the Memory Utilization Procedure: a memory Q projection, a matrix readout R = Q^T M / √d_m, RMSNorm on R, concat over H_q heads into A_mem,r, an output gate SoftCapSiLU(G) applied element-wise to that result, and a multiplication against the attention output. The post-attention residual is A^(ℓ) = Original Attention + Memory Attention.
The update path runs at the end of each turn or segment. Stable Token-level GDN-2 Update takes the casual states and applies the three gates (erase, write, forget) to produce M^(ℓ)_{i,ℓA}, then refines it into M^(ℓ)_{i,ℓB} that feeds the next token’s readout. The gates are learned offline and stay fixed during online interaction — the paper calls this the “stable” part of the update. What is learned offline versus what is fixed online is the boundary that lets the project call the model a “memory foundation model” instead of “yet another recurrent architecture.”
The model card lists two checkpoints:
| Model | Backbone | Total | Active | Trainable Memory | Dynamic Memory State |
|---|---|---|---|---|---|
| MemT-1.0-Nano | Qwen3.6-35B-A3B | 36 B | 3 B | 451 M | 10 M |
| MemT-1.0-Flash | DeepSeek-V4-Flash | 288 B | 17 B | 3.61 B | 336 M |
Active-parameters-per-token is 3 B and 17 B respectively, in line with the MoE backbones. The memory parameters scale with the backbone but stay well under one percent of total: 1.25% for Nano, 1.25% for Flash — the story is not “memory eats the budget,” it’s “memory is a small, dedicated channel that runs alongside the MoE.”
What the benchmark chart actually says
I read the assets/figure_performance.png directly instead of trusting the prose summary, because the chart has six benchmarks split into two columns each: Textual Memory (model gets a textual memory store) and Parametric Memory (model has to recall from its own state, no access to the original context).
Across the parametric-memory columns, MemT-1.0-Flash and MemT-1.0-Nano are the only entries from the project; the other systems either have no parametric column or score dramatically lower:
| Benchmark | MemT-1.0-Flash (parametric) | MemT-1.0-Nano (parametric) | Next-best parametric system |
|---|---|---|---|
| LoCoMo | 59.6 | 49.6 | DenseRAG 46.6 (textual); no real competitor |
| MemoryAgentBench | 17.4 | 15.5 | MemOS 6.3 (textual); δ-mem 6.2 |
| ImplicitMemBench | 43.1 | 34.9 | Doc-to-LoRA 29.9 (textual); SHINE 20.2 |
| MemBench | 71.8 | 57.2 | DenseRAG 40.7 (textual); SHINE 22.7 |
| PerMemSafe | 38.7 | 24.5 | δ-mem 20.1 (textual); SHINE 4.4 |
| PersonaMem | 61.6 | 41.1 | SHINE 34.0 (textual); δ-mem 39.9 |
The textual-memory column is where the tradeoff becomes visible. MemOS and DenseRAG, which store memories as text the model can re-read at inference, are still ahead on the textual-memory axis on every benchmark. The chart puts MemT-1.0-Flash at 65.1 on LoCoMo’s textual column against MemOS’s 85.7 and DenseRAG’s 83.4 — a 20-point gap.
That 20-point gap is the whole point of releasing a parametric-memory model. Textual-memory systems need the full history at inference time: that’s what the “66×” comparison in the README is measuring against. Parametric-memory systems carry their history in trainable weights and a small dynamic state, and they pay for it on textual-memory benchmarks. The paper’s framing (“strong textual-memory systems remain ahead overall, particularly on long histories that require detailed evidence retrieval”) is honest about the tradeoff, not hedge-language.
The other thing the chart shows: Flash beats Nano by 5–10 parametric points across all six benchmarks despite being eight times larger. A 36B/3B MoE with 451M trainable memory parameters is competitive with a 288B/17B MoE on the same memory task — that’s the deployment story for anyone who can’t afford the Flash footprint.
What it costs to run
The inference/ directory ships an memt_sglang Python package that pins SGLang 0.5.16 and overlays the memory runtime on top. Two startup scripts are the canonical reference configurations:
| Setting | Nano | Flash |
|---|---|---|
| GPUs | 2 (TP2 / EP1 / DP1) | 8 (TP8 / EP8 / DP8, attn TP1) |
| Sessions per rank | 6 | 6 |
| In-flight commits per rank | 2 | 1 |
| KV cache | Engine default | fp8_e4m3 |
| Static memory fraction | 0.60 | 0.70 |
| Maximum prefill tokens | 16 384 | 16 384 |
| Maximum total tokens / running requests | 65 536 / 8 | 65 536 / 48 |
| Weight dtype | BF16 | BF16 |
| Retained streaming sessions | Disabled | Enabled |
| Attention / linear-attention backend | Triton / Triton | Engine default / Engine default |
Five server-side knobs that don’t appear in a normal vLLM/SGLang launch are visible in the table: max_sessions_per_rank, max_inflight_commits_per_rank, min_kv_tokens, json-model-override-args (which only accepts {"memt_runtime": {...}}, model structure comes from config.json), and deterministic-communication. The first three are memory-runtime knobs. The fourth is the seam that lets the server override runtime config without reloading the model. The fifth collapses collectives to fixed sizes for reproducibility — the README is careful to say “this does not guarantee whole-model determinism,” only that the collective layout stops varying run-to-run.
max_inflight_commits_per_rank is the one I think about most. Memory updates at the end of a turn happen on the GPU; an in-flight commit is a memory write that the server has accepted but hasn’t fully serialized. Nano runs two in parallel because the memory state is 10M parameters and a single commit finishes fast. Flash runs only one because the state is 336M and the per-commit cost is meaningful. The knob is the engine-level gate that prevents memory writes from outrunning the GPU.
The trade is explicit elsewhere: eager execution, chunked prefill disabled (--chunked-prefill-size -1), radix cache disabled, overlap scheduling disabled, no prefill or decode CUDA graphs. Those four things are how vLLM and SGLang normally get their throughput. MemT-1.0 throws them away. That’s not laziness — the memory state has to be coherent across turns, and CUDA-graph capture, chunked prefill, and radix-cache prefix sharing all reason about tokens that have already been settled. The architecture doesn’t settle them; it updates them. The README doesn’t apologize for this. It just lists the constraints.
What works instead: a fixed static_memory_fraction of the GPU, explicit prefill ceilings, and per-rank session budgets. If you want to run MemT-Flash on eight GPUs, you tell the server how many sessions each rank should keep open, how many commits it may hold in flight, and how much of the GPU it’s allowed to allocate. The server doesn’t try to discover those from a workload — it’s a fixed-budget deploy.
Saving and resuming a session
Memory is persistent across calls via save_state(path) and a --state-directory flag at launch. save_state() commits any remaining turns before writing the snapshot; the returned path is the snapshot identifier; restore passes it back as state= on the next MemTSession. Snapshots live in --state-directory (default ./memt-state) and survive restarts.
The Python client wrapper exposes the memory operations as session-level calls:
session = MemTSession(client, chat_format, parser)
answer = session.chat("describe your kitten", enable_memory=True)
# latent memory now holds the kitten description
answer = session.chat("what is the kitten's name?")
# answer uses latent memory — plaintext context was cleared
enable_memory=True does two things in sequence: it saves the unsaved past turns and the current turn to latent local memory, then clears the plaintext conversation context. The next turn reads from latent memory instead of the prompt. Tool chains save after the final answer; truncated replies remain available for a later explicit commit or save.
The state size is constant — the project’s whole efficiency claim depends on this — so the snapshot files are small enough to move around, archive, or re-attach to a different session.
License and what it actually ships under
LICENSE in the repo is PolyForm Noncommercial 1.0.0. LICENSE-PAPER is CC BY-NC-SA 4.0. The Hugging Face model card for MemT-1.0-Nano carries the tag license:apache-2.0 inherited from the backbone (base_model:Qwen/Qwen3.6-35B-A3B), which is misleading. The repo’s PolyForm is the binding license for everything under MemT-1.0/.
This is the §25d pattern again: open-weights publication, non-commercial code, research-only license on both the code you actually run and the paper you cite. Memory state files you generate with --state-directory are yours; the runtime that produced them is not. If you want to ship MemT-1.0 in a paid product, you need the conversation.
The architectural reason for the license choice is plausible: the model’s whole value is in the trained memory block, and MemTensor’s commercial path almost certainly includes a separately licensed Flash checkpoint with full commercial terms. The README ships research artifacts only. Cite the paper, run the model, read the architecture; don’t ship the binary.
What this is missing
The repo has two commits on its own and one of them is chore: add repository code owners. The inference guide is 27 KB and worth reading in full; the tech report is 7 MB and presumably covers the same content with ablations. There is no tests/ directory. There is no bench/ directory outside the README’s chart. There is no examples/ showing how to wire this into a real agent loop that does tool calls across many turns — the README has a kitten example, not an agent. The closest is “Experience-Guided Agentic Coding” in the overview, which is described but not implemented in this repo.
The setting I would want to see benchmarked against a vector-store baseline at the same model size is: how does a 288B/17B MemT-Flash with persistent memory compare to a 288B/17B vanilla DeepSeek-V4-Flash with a 128K KV cache and a retrieval-augmented system prompt? Across MemoryAgentBench and PerMemSafe, what’s the break-even history length where MemT-Flash starts being cheaper than the augmented baseline? The architecture claims constant-state storage, the engine claims eager execution with disabled optimization passes, and the KV-cache baseline gets full chunked prefill, CUDA graphs, and radix sharing. The 66× storage claim is real. The cost claim is unstated.
I want to read what the paper says when it goes through GDN-2’s stability proof in the appendix. The “stable” part of the update is what the architecture rests on, and I haven’t seen the proof yet.
Comments
Powered by GitHub Discussions via Giscus. Sign in with GitHub to leave a comment.