Rúben GalvãoThe Rabbit Hole

The Rabbit Hole / AI / Model architectures

MemTensor · Architecture map

MemT-1.0

Persistent memory alongside attention: a Qwen-based Nano and DeepSeek-based Flash, with fixed-size states carried between interactions.

MemT-1.0 Nano and Flash, October 2026 · MemT release timeline

Inside MemT-1.0

Size
Parameters
36B · 3B active
Layers
40
Width
2,048
Mixer
Hybrid
Select a component to explore it. Layer colours match the execution-order strip.
The complete MemT-1.0 architectureInput IDs select embeddings. Layer types execute in the order strip; dotted lines connect the type examples below. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate. Current-interaction KV in ten full-attention layers; DeltaNet state and convolution buffers in the other layers. Persistent native memory adds 10 × 16 × 256 × 256 FP32 values (40 MiB), independent of history length. Backbone DeltaNet state resets for each 2048-token memory-storage chunk. Final normalisation and output weights produce vocabulary scores and the next-token distribution.Text becomes token IDs.Text → tokens → IDstheoldrabbitsleepsEmbedding lookup248,3202,048Input token vectorsCL2,048Execution order · 40 layersLayer 1: Gated DeltaNet layersLayer 2: Gated DeltaNet layersLayer 3: Gated DeltaNet layersLayer 4: Full attention with native memoryLayer 5: Gated DeltaNet layersLayer 6: Gated DeltaNet layersLayer 7: Gated DeltaNet layersLayer 8: Full attention with native memoryLayer 9: Gated DeltaNet layersLayer 10: Gated DeltaNet layersLayer 11: Gated DeltaNet layersLayer 12: Full attention with native memoryLayer 13: Gated DeltaNet layersLayer 14: Gated DeltaNet layersLayer 15: Gated DeltaNet layersLayer 16: Full attention with native memoryLayer 17: Gated DeltaNet layersLayer 18: Gated DeltaNet layersLayer 19: Gated DeltaNet layersLayer 20: Full attention with native memoryLayer 21: Gated DeltaNet layersLayer 22: Gated DeltaNet layersLayer 23: Gated DeltaNet layersLayer 24: Full attention with native memoryLayer 25: Gated DeltaNet layersLayer 26: Gated DeltaNet layersLayer 27: Gated DeltaNet layersLayer 28: Full attention with native memoryLayer 29: Gated DeltaNet layersLayer 30: Gated DeltaNet layersLayer 31: Gated DeltaNet layersLayer 32: Full attention with native memoryLayer 33: Gated DeltaNet layersLayer 34: Gated DeltaNet layersLayer 35: Gated DeltaNet layersLayer 36: Full attention with native memoryLayer 37: Gated DeltaNet layersLayer 38: Gated DeltaNet layersLayer 39: Gated DeltaNet layersLayer 40: Full attention with native memoryGated DeltaNet layers · matches this colour in the execution-order barGated DeltaNet layersGated DeltaNet layers · 30 repetitions30 layers · one layer shown30RMSNorm before this operation.RMSNormGated DeltaNet: Eight of 256 routed experts plus one shared expert, each 512 wide, follow Gated DeltaNet.Gated DeltaNetAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormMoE: Eight of 256 routed experts plus one shared expert, each 512 wide, follow Gated DeltaNet.MoE8 of 256 routed experts selected per token. Highlighted boxes are schematic; boxes do not correspond one-to-one to experts. 1 shared experts run for every token.Add the branch output to the original stream. +8 of 256 experts + 1sharedLayer type · execution order aboveFull attention with native memory · matches this colour in the execution-order barFull attention with native memoryFull attention with native memory · 10 repetitions10 layers · one layer shown10RMSNorm before this operation.RMSNormGated GQA: Every fourth layer combines gated attention with a native memory readout before the output projection; the same expert block follows.Gated GQARotate query and key position components before attention scores; values are unchanged. Every fourth layer combines gated attention with a native memory readout before the output projection; the same expert block follows.RoPENormalise queries and keys before attention scores. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.QK-norm16 independent 256 × 256 persistent memory states. Learned query projections read the incoming state; normalized, gated output joins backbone attention before the output projection. Stable GDN-2 commits the completed interaction for subsequent turns. The memory readout joins backbone attention before its output projection.16 headsFixed state256256Native memoryNorm + gate+Add the branch output to the original stream. +RMSNorm before this operation.RMSNormMoE: Every fourth layer combines gated attention with a native memory readout before the output projection; the same expert block follows.MoE8 of 256 routed experts selected per token. Highlighted boxes are schematic; boxes do not correspond one-to-one to experts. 1 shared experts run for every token.Add the branch output to the original stream. +8 of 256 experts + 1sharedLayer type · execution order aboveAfter all 40 layer executionsResidual streamLast columnCL2,048Final RMSNormA separate learned vocabulary projection.Output weights2,048248,320Vocabulary scoresSoftmax248,320Next-token probabilities
Inside linear attention · Gated DeltaNet layers
32 state heads · 16 Q/K heads.

Earlier context dimmed · current token bright · dashed path carries state to the next step.

MemT-1.0: Gated DeltaNet layers · linear attention30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate. Current-interaction KV in ten full-attention layers; DeltaNet state and convolution buffers in the other layers. Persistent native memory adds 10 × 16 × 256 × 256 FP32 values (40 MiB), independent of history length. Backbone DeltaNet state resets for each 2048-token memory-storage chunk.32 value heads; the front face shows one representative.32 value heads32 state heads; the front face shows one representative.32 state headsAttention input. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input2,048CLWq. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.Wq2,048128Wk. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.Wk2,048128Wv. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.Wv2,048128Conv 4 + SiLU. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.Conv 4 + SiLUConv 4 + SiLU. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.Conv 4 + SiLUConv 4 + SiLU. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.Conv 4 + SiLUL2-norm. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.L2-normL2-norm. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.L2-normQ. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.Earlier context is dimmed; outlined columns are current.Current token computation.Q128CLK. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.Earlier context is dimmed; outlined columns are current.Current token computation.K128CLV. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.Earlier context is dimmed; outlined columns are current.Current token computation.V128CLPrevious state. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.Previous state128128Decay + delta. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.Decay + deltaInput projections produce the decay and write-strength gates. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.α / β2,0482Updated state. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.Updated state128128×. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.×Gated RMSNorm. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.Gated RMSNormJoined heads. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.32Wo. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.Wo4,0962,048Attention output. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output2,048CL
Inside grouped-query attention · Full attention with native memory
8 query heads per group × 2 K/V groups.

Earlier context dimmed · current token bright · dashed regions contain cached entries.

MemT-1.0: Full attention with native memory · grouped-query attention30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate. Current-interaction KV in ten full-attention layers; DeltaNet state and convolution buffers in the other layers. Persistent native memory adds 10 × 16 × 256 × 256 FP32 values (40 MiB), independent of history length. Backbone DeltaNet state resets for each 2048-token memory-storage chunk.2 KV groups; the front face shows one representative.2 KV groups8 heads / group; the front face shows one representative.8 heads / groupAttention input. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input2,048CLWq. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.Wq2,048256Wk. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.Wk2,048256Wv. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.Wv2,048256RMSNorm. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.RMSNormRoPE 64. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.RoPE 64RMSNorm. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.RMSNormRoPE 64. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.RoPE 64K cache. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache256CLV cache. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache256CLQ context. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.Earlier context is dimmed; outlined columns are current.Current token computation.Q context256CLScaled query–key scores, masking and softmax. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.CLCL×. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.×Wg. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.Wg2,048256σ. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.σ×. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.×Joined heads. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.16Wo. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.Wo4,0962,048Attention output. 30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output2,048CL
Model-specific details
Gated DeltaNet layers · 30 repetitions
Eight of 256 routed experts plus one shared expert, each 512 wide, follow Gated DeltaNet.
Full attention with native memory · 10 repetitions
Every fourth layer combines gated attention with a native memory readout before the output projection; the same expert block follows.
Attention and positions
30 Gated DeltaNet layers use 16 query/key heads and 32 value heads of width 128, with convolution width four. Ten full-attention layers use 16 query heads, two KV heads of width 256, QK RMSNorm, 64 rotary dimensions and a coordinate-wise output gate.
Memory
Current-interaction KV in ten full-attention layers; DeltaNet state and convolution buffers in the other layers. Persistent native memory adds 10 × 16 × 256 × 256 FP32 values (40 MiB), independent of history length. Backbone DeltaNet state resets for each 2048-token memory-storage chunk.

Memory between interactions

How it scores

Developer reported

Checkpoint / sizeResultEvaluation
MemT-1.0-NanoNano46.97MemT memory benchmark average Paper Table 2Developer-reported average over 11 memory benchmarks; historical text is unavailable at query time. This is a memory-task aggregate, not a general-capability index.
MemT-1.0-FlashFlash50.6MemT memory benchmark average Paper Table 2Developer-reported average over 11 memory benchmarks; historical text is unavailable at query time. This is a memory-task aggregate, not a general-capability index.

Explore the components

Sources for this map