/ Модель

Характеристики

Контекст
262 144 токена
Параметры
3,7 млрд
Размер весов
8 ГБ
Архитектура
qwen3 · dense
Библиотека
transformers
Опубликована
29 авг 2025

mem-agent

Генерация текстаТекст → текст5 профессий

Дообученный агент на базе Qwen3 для поиска, обновления и уточнения сведений в Markdown-хранилище долговременной памяти.

92скачиваний за 30 дней98лайковвеса обновлены17 сен 2025

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

driaforall/mem-agent — диалоговая модель-агент на базе Qwen3-4B-Thinking-2507, разработанная Dria. Её дообучили методом GSPO для работы с долговременной памятью в формате Markdown, организованной по принципу Obsidian: модель извлекает нужные сведения, обновляет файлы памяти и задаёт уточняющие вопросы при неоднозначности или противоречиях.

Модель имеет плотную архитектуру Qwen3, около 3,7 млрд параметров и контекст до 262 144 токенов. Она принимает текстовые запросы и взаимодействует с инструментами памяти через агентный цикл; предусмотрена работа с фильтрами, которые ограничивают или скрывают извлекаемую информацию. Разработчик рекомендует подключать её как MCP-сервер к более крупной модели; также описан автономный режим. В опубликованном разработчиком бенчмарке md-memory-bench модель получила общий результат 0,75, однако качество зависит от структуры хранилища и соблюдения описанного формата файлов и ссылок.

Весовые файлы представлены в формате safetensors. Условия лицензирования в доступных сведениях не приведены.

Сценарии применения

  • поиск фактов о пользователе в личной Markdown-памяти
  • обновление файлов памяти по итогам разговора
  • уточнение неоднозначных или противоречивых запросов с учётом памяти
  • фильтрация или сокрытие извлечённых сведений по заданным условиям
  • подключение памяти к диалоговой модели через MCP-сервер

Ограничения

Для результативной работы требуется Markdown-хранилище, соответствующее описанной структуре и формату ссылок; показатели бенчмарка получены на конкретной оценке и не гарантируют качество в других сценариях. Лицензия в доступных сведениях не указана.

Для каких профессий подходит5

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

mem-agent

Based on Qwen3-4B-Thinking-2507, this model was trained using GSPO (Zheng et al., 2025) over an agent scaffold that is built around an Obisidian-like memory system and the tools required to interact with it. The model was trained on the following subtasks:

  • Retrieval: Retrieving relevant information when needed from the memory system. In this subtask, we also trained the model on filtering the retrieved information and/or obfuscating it completely.
  • Updating: Updating the memory system with new information.
  • Clarification: Asking for clarification when the user query is not clear/contradicting with the information in the memory system.

The tools in the scaffold are:

# File Operations
create_file(file_path: str, content: str = "") -> bool  # Auto-creates parent directories
update_file(file_path: str, old_content: str, new_content: str) -> Union[bool, str] # Returns True or error message
read_file(file_path: str) -> str
delete_file(file_path: str) -> bool
check_if_file_exists(file_path: str) -> bool

# Directory Operations
create_dir(dir_path: str) -> bool
list_files() -> str  # Shows tree structure of current working directory
check_if_dir_exists(dir_path: str) -> bool

# Utilities
get_size(file_or_dir_path: str) -> int  # Bytes; empty = total memory size
go_to_link(link_string: str) -> bool

In the scaffold, the model uses <think>, <python> and <reply> tags to structure its response. Using <reply> only when it's done interacting with the memory. The <python> block is executed in a sandbox with the tools and the results of the code block are returned in a <result> tag to the model, forming the agentic loop.

The model is also trained to be able to handle optional filters given by the user in between tags after the user query. These filters are used to filter the retrieved information and/or obfuscate it completely.

Benchmark

We evaluated this model and a few other open & closed ones on our benchmark, md-memory-bench. We used o3 from OpenAI as the judge. All the other models except driaforall/mem-agent and Qwen/Qwen3-4B-Thinking-2507 were used through OpenRouter.s

ModelRetrievalUpdateClarificationFilterOverall
qwen/qwen3-235b-a22b-thinking-25070.90910.63630.454510.7857
driaforall/mem-agent0.86360.72720.36360.91670.75
z-ai/glm-4.50.77270.81810.36360.91670.7321
deepseek/deepseek-chat-v3.10.68180.54540.54540.83330.6607
google/gemini-2.5-pro0.72730.45450.272710.6429
google/gemini-2.5-flash0.77270.36360.27270.91670.625
openai/gpt-50.68180.54540.27270.91670.625
anthropic/claude-opus-4.10.681800.81810.58330.5536
Qwen/Qwen3-4B-Thinking-25070.454500.27270.750.3929
moonshotai/kimi-k20.31810.27270.18180.66670.3571

Our model, with only 4B parameters, is only second on the benchmark, beating all the open & closed models except for qwen/qwen3-235b-a22b-thinking-2507. The model achieves an overall score of 0.75, a significant improvement over the 0.3929 of the base Qwen model.

Usage

The model, while can be used on its own, is recommended to be used as an MCP server to a bigger model, which can then be used to interact with the memory system. For this, you can check our repo, which contains instructions for both an MCP setup and a cli standalone model usage.

Memory

The model uses a markdown based memory system with links, inspired by Obsidian. The general structure of the memory is:

memory/
    ├── user.md
    └── entities/
        └── [entity_name_1].md
        └── [entity_name_2].md
        └── ...
  • user.md is the main file that contains information about the user and their relationships, accompanied by links to the enity file in the format of [[entities/[entity_name].md]] per relationship. The link format should be followed strictly.
  • entities/ is the directory that contains the entity files.
  • Each entity file follows the same structure as user.md.
  • Modifying the memory manually does not require restarting the MCP server.

Example user.md

# User Information
- user_name: John Doe
- birth_date: 1990-01-01
- birth_location: New York, USA
- living_location: Enschede, Netherlands
- zodiac_sign: Aquarius

## User Relationships
- company: [[entities/acme_corp.md]]
- mother: [[entities/jane_doe.md]]

Example entity files (jane_doe.md and acme_corp.md)

# Jane Doe
- relationship: Mother
- birth_date: 1965-01-01
- birth_location: New York, USA
# Acme Corporation
- industry: Software Development
- location: Enschede, Netherlands

The model is trained on this memory standard and any fruitful use should be on a memory system that follows this standard. We have a few memory export tools for different sources like ChatGPT, Notion, etc. in our mcp server repo.

References:

  • GSPO, Zheng et al., 2025

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen3ForCausalLM
Ревизия весов
b409b82

0 моделей