Hy-Memory-30B-A3B: a Small Memory Writer for Mem0 and MemOS
Tencent's Hy-Memory-30B-A3B decides what an AI agent's memory should keep and update. See the card's results and the vLLM example.
The code in this post comes from the model's docs and hasn't been run in our CI yet. If something breaks, let us know.
Hy-Memory-30B-A3B is a compact model (about 3B active parameters, per the card) from Tencent Hunyuan with a narrow job: the write path of an external long-term memory system. When an agent or chatbot talks to a user, something has to decide what to remember, how precisely to store it, and how new information should update what’s already stored. This model is trained to be that writer. It is not described as a general chat model.
The card says it can directly replace the general-purpose LLM inside Mem0, MemOS and Hy-Memory (covering Chat, Working and Coding scenarios), and that it transfers to EverMemOS, a framework it was not trained on.
Key facts from the card
| Developer | Tencent Hunyuan |
| Size | 30B total, about 3B active (the “A3B” in the name) |
| Task / library | text-generation, transformers |
| Languages | English, Chinese |
| License | Apache-2.0 |
| Training | Two stages: Memory On-Policy Distillation (OPD), then Attributed Memory Reinforcement Learning |
| Resources | GitHub, tech report |
What the benchmarks do and don’t say
The evaluation swaps only the memory writer. The harness, prompts, retrieval configuration, answer model and judge are held fixed. Scores are averages of six metrics (LoCoMo Judge, LongMemEval, PersonaMem-v2, Travel SPS, Shopping PS and Code Memory Bench) on a fixed 20% subsample of each benchmark.
| Memory writer | Mem0 | Hy-Mem. | MemOS | EverMem. | Avg. |
|---|---|---|---|---|---|
| Hy-Memory-30B-A3B | 54.02 | 60.55 | 50.51 | 56.89 | 55.49 |
| Claude Opus 5 | 53.43 | 60.53 | 50.50 | 54.04 | 54.62 |
| DeepSeek V4.1 Flash | 49.73 | 60.20 | 49.17 | 55.47 | 53.64 |
| Qwen3.6-35B-A3B | 47.51 | 55.87 | 47.36 | 50.75 | 50.37 |
| Qwen3-30B-A3B | 39.81 | 45.67 | 45.44 | 46.57 | 44.37 |
Read this carefully. The model has the top average and the top score on each of the four harnesses, but several margins are tiny (60.55 vs 60.53 on the Hy-Memory harness, 50.51 vs 50.50 on MemOS). The per-benchmark tables also show other writers winning individual metrics. For example, Claude Opus 5 scores 69.47 on LoCoMo in the Mem0 harness versus 59.54 for Hy-Memory-30B-A3B. The results are on 20% subsamples, and they measure memory quality inside these frameworks, not general ability.
Serve it
The card says to deploy with vLLM (tested with v0.31.0) using --served-model-name hy-memory, then call the OpenAI-compatible API. It doesn’t print the full serve command, so check the vLLM docs and the model’s GitHub repository for the remaining flags.
Install the client:
pip install openaiExtract memories from a conversation
This is the card’s quickstart: extract explicit user facts and preferences, with thinking turned off.
from openai import OpenAI
client = OpenAI( base_url="http://127.0.0.1:8000/v1", api_key="EMPTY",)
response = client.chat.completions.create( model="hy-memory", messages=[ { "role": "system", "content": ( "Extract explicit user facts and preferences from the conversation. " "Write each memory as a concise, self-contained statement. " "Do not infer or invent information. " 'Return only a JSON object with a "memories" list of strings.' ), }, { "role": "user", "content": ( "My name is Alex. I live in Seattle and work as a software engineer. " "I mainly use Python and prefer concise answers with code examples. " "I'm vegetarian, so please keep that in mind when suggesting meals." ), }, ], temperature=0.0, max_tokens=512, extra_body={ "chat_template_kwargs": { "reasoning_effort": "no_think", }, },)
print(response.choices[0].message.content)The print line is the only addition to the card’s example. The card doesn’t show sample output, so don’t assume an exact format beyond the JSON object the system prompt asks for. Parse it defensively.
Use it inside a memory framework
The card’s main use case is as a drop-in writer for Mem0, MemOS, Hy-Memory or EverMemOS. It doesn’t give integration code for these. For configuration details, use the Hy-Memory GitHub repository the card links to, and the framework’s own documentation.
Gotchas
- Not a chat model. The card describes a memory writer. Use your usual model to answer users and this one to maintain the memory bank.
- Thinking mode. The quickstart sets
reasoning_efforttono_thinkthroughchat_template_kwargs. The card doesn’t list other values. - Unstated requirements. There are no hardware or memory figures in the card. Check the repository before planning capacity.
- Evaluation scope. Results come from 20% subsamples, with the harness and answer model fixed. Measure on your own conversations before switching.
- Privacy. A memory writer stores facts about users. The card doesn’t discuss retention or deletion; those are decisions for your memory framework and deployment.
When to pick it
Pick it if you already run Mem0, MemOS, Hy-Memory or EverMemOS and want a small open writer (Apache-2.0) instead of a large general-purpose model, and you can test it on your own data. Skip it if you need a general assistant, if you have no memory layer, or if you need documented hardware requirements and a complete serving recipe in the card itself.
Related
Sage-A1.5: Parallel Subagents and Verification Mode, Served with vLLM
InternScience's 35B MoE agent model adds a spawn_subagent tool and an opt-in self-review mode. How to serve it and call both.
InternScience/Sage-A1.5
Self-Host MiMo-V2.6-Pro-RL, Xiaomi's 1T MoE Agent Model
Xiaomi's 1.02T-parameter MoE model has 1M context and omnimodal input, and was trained for agents. Here is how to serve it with vLLM or SGLang.
XiaomiMiMo/MiMo-V2.6-Pro-RL
Qwen3.8-Flash-Next: Serve a 6B-Active Multimodal Agent Model
Qwen's 125B MoE with 6B active params handles text, images and video. What it's good at, how to call it, and where it falls short.
Qwen/Qwen3.8-Flash-Next