Model architecture
Engram
Also known as Engram conditional memory
In plain English
Engram retrieves learned vectors for recurring token patterns instead of rebuilding every pattern through the model layers.
Technical Definition
Engram is a learned conditional-memory mechanism that extends single-token embeddings with multi-token lookups and integrates the retrieved features into the model.
Engineering Details
Lookup addresses depend on token IDs rather than intermediate hidden states. The runtime can therefore identify needed rows before reaching an Engram layer and overlap their retrieval with earlier computation. The retrieved features interact with downstream layers and expert selection.
Why It Matters
Sparse access makes a large parameter table a candidate for DRAM offload. Removing the table at inference changes the trained model, so an ablation is not a substitute for comparing separately trained architectures at matched quality.
How to Read It in InferenceX
The article reports roughly 189 GiB of Engram memory in its DeepSeek-V4.1-Flash configuration. Its DRAM and SSD comparisons retain Engram functionality while changing the serving path; the ablation experiments ask a separate model-quality question. The Huawei profile discusses fetching Engram data from token IDs while layer 0 computes. Its DRAM overlap result depends on that schedule; a slower PCIe SSD path can expose transfer latency rather than preserve the same step time.
See the Concept in Real Benchmarks
All articlesThe Huawei-DeepSeek Symbiosis
Ascend 950PR architecture and microbenchmarks, DeepSeek’s Ascend software stack, and the DeepSeek-V4.1-Flash execution profile.
Engrams Embedding Entendre: Codesign for Efficient DRAM/SSD Offloading
New Model Architecture Implications for TAM of DRAM/NVMe, DeepSeek V4.1 Flash, AgentX, InferenceX, NVMe experiments