The Rabbit Hole / AI / Model architectures
MemTensor · Architecture mapMemT-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
Inside linear attention · Gated DeltaNet layers
Earlier context dimmed · current token bright · dashed path carries state to the next step.
Inside grouped-query attention · Full attention with native memory
Earlier context dimmed · current token bright · dashed regions contain cached entries.
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.
Inside sliding-window attention · Layers 1–2 (sliding window only, hash-routed experts)
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Inside CSA · Layer 3 (CSA, hash-routed experts)
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Inside HCA · HCA layers 4, 6, … 42
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Model-specific details
- Layers 1–2 (sliding window only, hash-routed experts) · 2 repetitions
- 256 routed experts (hidden size 2048), 6 chosen per token, plus 1 shared expert. These first layers pick experts with a fixed hash of the token id instead of a learned router.
- Layer 3 (CSA, hash-routed experts) · 1 repetitions
- 256 routed experts (hidden size 2048), 6 chosen per token, plus 1 shared expert. These first layers pick experts with a fixed hash of the token id instead of a learned router.
- CSA layers 5, 7, … 43 · 20 repetitions
- 256 routed experts (hidden size 2048), 6 chosen per token, plus 1 shared expert, scored with square-root softplus.
- HCA layers 4, 6, … 42 · 20 repetitions
- 256 routed experts (hidden size 2048), 6 chosen per token, plus 1 shared expert, scored with square-root softplus.
- Attention and positions
- 64 query heads share one key/value head of size 512; keys and values are the same compressed entries. CSA layers compress 4 to 1 and an indexer keeps the top 512 entries; HCA layers compress 128 to 1. The first two layers use only the 128-token window.
- Memory
- Current-interaction compressed and sliding-window KV caches remain. Twenty native-memory layers add 20 × 64 × 512 × 512 FP32 values (1280 MiB) of persistent state. This state stores earlier interactions after their plaintext context is cleared.
Memory between interactions
- Nano uses a Qwen3.6 backbone: three Gated DeltaNet layers followed by full attention. Native memory sits beside each of its ten full-attention layers.
- Flash uses a prepared DeepSeek-V4-Flash backbone. Native memory sits beside compressed sparse attention at layers 5, 7, …, 43; four mHC residual streams remain.
- The fixed state persists when an earlier interaction’s text is cleared. Attention still uses a KV cache for the current interaction.
How it scores
Developer reported
| Checkpoint / size | Result | Evaluation |
|---|---|---|
| MemT-1.0-NanoNano | 46.97 | MemT 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-FlashFlash | 50.6 | MemT 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
- Embeddings: giving every token a meaning
- Residual connections: when more layers made things worse
- A whole LLM, layer by layer
- RMSNorm: keeping a token's scale under control
- Native memorycoming soonA learned branch that reads a persistent state alongside attention and updates it between interactions.
- Gated DeltaNet: write the correction, not the whole fact
- Grouped-query attention (GQA): sharing keys and values in groups
- Attention gating: should this head add anything?
- Partial RoPE: rotating only part of each head
- Mixture of experts (MoE): a big model that uses only part of itself
- Routing: selecting experts and weighting their work
- Attention, from scratch
- The KV cache: why LLMs remember every key and value
- RoPE: position as a rotation
- Hyper-connections: more than one residual stream
- Heavily compressed attention (HCA): keeping a compressed history
- Sliding-window attention (SWA): a cache that stops growing
- Compressed sparse attention (CSA): keeping more detail and reading less