Downloads · 30 days
16
22% of all-time downloads
brahmairesearch/engram-8B-A1B
engram-8B-A1B is a machine learning model from brahmairesearch. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Engram-8B-A1B is BRAHMAI's conversational memory intelligence model, built to identify, classify, and extract information from interactions that may be useful beyond the immediate moment.
Downloads · 30 days
16
22% of all-time downloads
All-time downloads
74
Public
Parameters
8.5B
17 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors16.9 GB · 100%
How the weights are stored.
BF168.5B · 100%
From the Hugging Face model README
Engram-8B-A1B is BRAHMAI's conversational memory intelligence model, built to identify, classify, and extract information from interactions that may be useful beyond the immediate moment.
Given a conversation, Engram analyzes the latest user message in the context of the interaction and produces compact, structured memory records representing information worth carrying forward.
Engram is fine-tuned from LiquidAI/LFM2.5-8B-A1B.
Modern AI systems can process enormous context windows, retrieve documents, call tools, and generate increasingly capable responses.
But context is not memory.
A conversation history is a record of what happened.
Memory is a representation of what should continue to matter.
Engram exists to bridge that gap.
It is designed around a simple idea:
An intelligent system should not remember everything. It should understand what is worth remembering.
Engram transforms conversations into structured memory units that can be stored, retrieved, consolidated, ranked, connected, and used by downstream AI systems.
It is not merely an information extraction model.
It represents a foundational component for AI systems that maintain continuity over time.
Systems that can remember preferences.
Systems that can track ongoing work.
Systems that can recognize important events.
Systems that can preserve instructions and interaction patterns.
Systems that can build increasingly useful representations of the people they interact with.
The name Engram refers to the concept of a persistent trace formed by experience.
Within BRAHMAI's work on memory systems, Engram represents the transition from raw conversational history to structured machine memory.
Conversation becomes experience.
Experience becomes memory.
Memory becomes continuity.
Engram processes conversations incrementally.
For every new user message, the model:
The model extracts memories from the latest user message only.
Previous conversation turns are provided as background context to:
Engram is designed to answer one question:
Given what the user just said and what has already happened, what new information should the system carry forward?
[user]: I'm a backend engineer based in Berlin.
<memories>
<memory>
<content>Works as a backend engineer based in Berlin.</content>
<type>semantic</type>
<confidence>high</confidence>
</memory>
</memories>
[user]: Keep your answers concise. I hate unnecessarily long explanations.
<memories>
<memory>
<content>Prefers concise responses without unnecessarily long explanations.</content>
<type>procedural</type>
<confidence>high</confidence>
</memory>
</memories>
[history]
[user]: I'm building a distributed caching system.
[assistant]: What language are you using?
[latest_message]
I'm implementing it in Go and currently working on cache invalidation.
<memories>
<memory>
<content>Is implementing the distributed caching system in Go.</content>
<type>contextual</type>
<confidence>high</confidence>
</memory>
<memory>
<content>Is currently working on cache invalidation for the distributed caching system.</content>
<type>contextual</type>
<confidence>high</confidence>
</memory>
</memories>
[user]: We launched the first public beta of our product yesterday.
<memories>
<memory>
<content>Launched the first public beta of their product yesterday.</content>
<type>episodic</type>
<confidence>high</confidence>
</memory>
</memories>
[user]: Thanks!
<memories></memories>
[history]
[user]: I live in Noida.
[assistant]: Got it.
[latest_message]
I've been living here for three years now.
<memories>
<memory>
<content>Has been living in Noida for three years.</content>
<type>semantic</type>
<confidence>high</confidence>
</memory>
</memories>
Engram does not need to extract Lives in Noida again because that information is already represented by the conversation history.
Each extracted memory is assigned exactly one type.
The taxonomy uses the following priority order:
| Priority | Type | Description | Example |
|---|---|---|---|
| 1 | procedural | Instructions, preferences, or patterns describing how an AI system should interact with the user | "Prefers concise technical explanations." |
| 2 | contextual | Information primarily relevant to the current conversation, task, project, or active situation | "Currently debugging the authentication middleware." |
| 3 | episodic | Specific events or experiences associated with a point or period in time | "Launched the product beta last Friday." |
| 4 | implicit | High-confidence information inferred from context rather than directly stated | "Likely works with distributed systems." |
| 5 | semantic | Durable facts, preferences, traits, relationships, roles, or knowledge about the user | "Works as a backend engineer." |
| 6 | explicit | Directly stated concrete information that does not fit a higher-priority category | "User's preferred project codename is Atlas." |
Each memory also receives a confidence level:
highmediumlowEngram produces structured XML.
<memories>
<memory>
<content>...</content>
<type>procedural | contextual | episodic | implicit | semantic | explicit</type>
<confidence>high | medium | low</confidence>
</memory>
</memories>
When no information should be retained:
<memories></memories>
The structured output format makes Engram suitable for integration with memory stores, databases, graphs, retrieval systems, user models, personalization layers, and long-running AI agents.
pip install transformers torch accelerate
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_id = "brahmairesearch/engram-8B-A1B"
tokenizer = AutoTokenizer.from_pretrained(
model_id,
trust_remote_code=True,
)
model = AutoModelForCausalLM.from_pretrained(
model_id,
trust_remote_code=True,
torch_dtype=torch.bfloat16,
device_map="auto",
)
model.eval()
conversation = [
{
"role": "user",
"content": "I'm a backend engineer based in Berlin."
},
{
"role": "assistant",
"content": "Nice. What are you working on?"
},
{
"role": "user",
"content": (
"Building a distributed caching layer in Go. "
"Keep things minimal, no frameworks."
)
},
]
inputs = tokenizer.apply_chat_template(
conversation,
add_generation_prompt=True,
return_tensors="pt",
)
if isinstance(inputs, dict):
input_ids = inputs["input_ids"].to(model.device)
else:
input_ids = inputs.to(model.device)
with torch.no_grad():
output_ids = model.generate(
input_ids=input_ids,
max_new_tokens=512,
do_sample=False,
pad_token_id=tokenizer.pad_token_id,
eos_token_id=tokenizer.eos_token_id,
)
new_tokens = output_ids[0, input_ids.shape[-1]:]
print(
tokenizer.decode(
new_tokens,
skip_special_tokens=True,
)
)
Expected output:
<memories>
<memory>
<content>Works as a backend engineer based in Berlin.</content>
<type>semantic</type>
<confidence>high</confidence>
</memory>
<memory>
<content>Currently building a distributed caching layer in Go.</content>
<type>contextual</type>
<confidence>high</confidence>
</memory>
<memory>
<content>Prefers minimal approaches without frameworks.</content>
<type>procedural</type>
<confidence>high</confidence>
</memory>
</memories>
Engram ships with a custom Jinja chat template designed specifically for incremental memory extraction.
| Input | Behavior |
|---|---|
| No system message | Memory extraction mode |
| System message present | Standard conversational mode |
In memory extraction mode, the template automatically:
[latest_message].[history].Users do not need to manually construct the extraction prompt.
Engram-8B-A1B is fine-tuned from LiquidAI/LFM2.5-8B-A1B.
The base model uses Liquid AI's LFM2.5 architecture and a sparse Mixture-of-Experts design with approximately 8 billion total parameters and approximately 1 billion active parameters per token.
| Property | Value |
|---|---|
| Model | Engram-8B-A1B |
| Model ID | brahmairesearch/engram-8B-A1B |
| Base model | LiquidAI/LFM2.5-8B-A1B |
| Model family | LFM2.5 |
| Architecture | Sparse Mixture-of-Experts |
| Total parameters | ~8B |
| Active parameters | ~1B per token |
| Task | Conversational memory extraction |
| Output format | Structured XML |
| Language | English |
| Library | Hugging Face Transformers |
Engram-8B-A1B was fine-tuned on an internal dataset prepared by BRAHMAI specifically for training conversational memory extraction models.
The dataset was designed to teach the model to:
No additional details about the internal training dataset are disclosed.
Engram is trained as a supervised structured-generation model.
Given:
conversation history + latest user message
the model learns to generate:
new structured memories introduced by the latest user message
The model is optimized for precision over exhaustive extraction.
Engram is intentionally conservative.
Information that is ambiguous, unsupported, redundant, or unlikely to be useful beyond the immediate interaction may be omitted.
| Parameter | Recommended value |
|---|---|
max_new_tokens | 16000 (it's a reasoning model) |
do_sample | False |
temperature | 0.0 to 0.1 |
repetition_penalty | 1.05 |
Deterministic decoding is recommended for applications that depend on stable structured outputs.
Engram is intended to serve as a memory extraction and memory intelligence component within larger AI systems.
Engram is especially useful in systems where raw conversation histories are too large, noisy, redundant, or unstructured to function as effective long-term memory.
Engram represents BRAHMAI's approach to one of the fundamental problems in persistent AI systems:
How should an artificial intelligence decide what to remember?
Large context windows allow models to see more.
Retrieval systems allow models to search more.
Databases allow systems to store more.
None of these capabilities determine what information deserves to persist.
Engram is designed to provide that missing layer.
It converts interactions into structured memory candidates that can become part of a persistent representation of the user, their preferences, their experiences, their work, and their evolving relationship with an AI system.
The model is not the memory system itself.
It is the mechanism that transforms experience into memory.
Within a broader cognitive architecture, Engram can act as the boundary between transient interaction and persistent machine memory.
This makes Engram more than a conversation processing model.
It is infrastructure for AI systems designed to maintain continuity.
Engram may extract information that users consider personal or sensitive.
Developers integrating Engram into production systems should implement appropriate mechanisms for:
Users should be able to understand, modify, and remove information retained about them.
If you use Engram in research or products, please cite:
@misc{engram8ba1bv02026,
title = {Engram-8B-A1B: Conversational Memory Intelligence Model},
author = {BRAHMAI Research},
month = {July},
year = {2026},
note = {A conversational memory intelligence model developed by BRAHMAI, fine-tuned from LiquidAI/LFM2.5-8B-A1B}
}