Run this model with HF Jobs

Run infosave/Embryo-340M-cmf on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/infosave/Embryo-340M-cmf. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/infosave/Embryo-340M-cmf on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/infosave/Embryo-340M-cmf. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/infosave/Embryo-340M-cmf. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Embryo-340M · test alpha

A language model of 340 million parameters (170 million active per token) in its own architecture and its own file format, born from scratch on 37.5 billion tokens with no foreign weights, and trained as the command core of an agent. It calls tools in the OpenAI format, fetches reference cards and runs the command from them, and leaves exact arithmetic to the engine.

  • Memory does not grow with the context. 20.1 MB of state per sequence at any length: from 512 to 131,072 tokens the whole process grows by 6 MB, and decode stays at 195–227 tok/s on a fanless MacBook Air M4.
  • The engine computes, the model decides. calc and table run inside cortiq with exact numbers; the model only says what to compute. 39 of 40 questions about command output answered exactly.
  • Quick-access cards. lookup brings a reference card, the model fills its template and runs the command with terminal; when no card fits, it answers NONE instead of inventing a command.
  • Function calls. BFCL v4: 33.7 % over 1,298 calls (25.7 % before tool training), and a plain answer instead of a forced call in 35.8 % of the requests no tool fits (2.1 % before).
  • Instructions. IFEval prompt-level strict: 25.3 % (8.0 % before).

Test alpha: an early working version of a model built entirely on the technologies of Oleg Kirichenko: architecture, file format, router, runtime and trainer. It is small and still learning: strong at formats, tool calls and following a card, weak at facts and long reasoning.

Try it without installing: tests and chat in the Space.

Files

file size M4 GPU, tok/s M4 CPU, tok/s perplexity
embryo-340m-alpha-q8_2f.cmf 348 MB 324 192 21.94
embryo-340m-alpha-f16.cmf 685 MB 234 137 21.94

Decode on a short prompt, cortiq 0.9.27, MacBook Air 15″ (Apple M4, 24 GB, fanless); GPU with CMF_EMBRYO_RESIDENT=1, CPU with CMF_GPU=0. Perplexity: the same 4,096 tokens of English technical text for every file. Speed: the median of three runs, each after a 45-second pause (the laptop has no fan). q8_2f keeps the quality of f16 at half the size and is the faster file; the Space runs it.

Quick start

cargo install cortiq-cli --features gpu   # cortiq 0.9.27 or newer; or a binary from GitHub releases
hf download infosave/Embryo-340M-cmf embryo-340m-alpha-q8_2f.cmf --local-dir .
CMF_EMBRYO_RESIDENT=1 cortiq run embryo-340m-alpha-q8_2f.cmf -p "Return a JSON object with the fields name and age for Alice, who is 30."

The file carries its chat template and greedy decoding as the default. The model talks in English; it was trained for agent work, and free chat is its weakest side. Before an answer it often writes a short <think> block, which the server returns apart as reasoning_content.

Server

CMF_EMBRYO_RESIDENT=1 cortiq serve embryo-340m-alpha-q8_2f.cmf --port 8000   # OpenAI-compatible API
curl -s localhost:8000/v1/chat/completions -H 'Content-Type: application/json' -d '{
  "model": "embryo", "temperature": 0, "max_tokens": 320,
  "messages": [{"role": "user", "content": "Write a Python function that reverses a string."}]}'

Function calls. Put the tools in the system message, one JSON object per line, in the format the model was trained on; the server returns its calls as OpenAI tool_calls:

curl -s localhost:8000/v1/chat/completions -H 'Content-Type: application/json' -d '{
  "model": "embryo", "temperature": 0,
  "messages": [
    {"role": "system", "content": "You have access to the following tools. To call a tool, reply with a JSON object inside <tool_call></tool_call> tags: {\"name\": <tool name>, \"arguments\": <arguments object>}.\nIf none of the provided tools can solve the user'"'"'s request, reply directly in plain text without calling a tool.\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"set_volume\", \"description\": \"Set the speaker volume\", \"parameters\": {\"type\": \"object\", \"properties\": {\"volume\": {\"type\": \"integer\"}}, \"required\": [\"volume\"]}}}\n</tools>"},
    {"role": "user", "content": "Set the volume to 70"}]}'
# → "tool_calls": [{"type": "function", "function": {"name": "set_volume", "arguments": "{\"volume\":70}"}}]

Engine tools. With "builtin_tools": true on /v1/completions the server itself answers the model's calc and table calls (exact rationals; count, sum, min, max, mean, get, argmax, argmin, diff over the columns and rows of a pasted output) and generates on, up to four rounds; x_cortiq_tools in the response lists every call with its result. cortiq tool table --args '{"op": "sum", "column": 1}' --input out.txt runs the same tools from the shell.

Endpoints: /v1/chat/completions, /v1/completions, /v1/models, /healthz.

What it does

The engine computes, the model decides

request what happens result
wc -l *.log output pasted, then: How many lines do boot.log and debug.log have together? table {"op": "sum", "column": 1, "rows": ["boot.log", "debug.log"]} → the engine: 611 611
df -h output, then: How many GB are used on / and /var together? table {"op": "sum", "column": "Used", "rows": ["/", "/var"]} → 110 110
ls -l output, then: How many of these files are larger than 2692 bytes? table {"op": "count", "where": {"column": 5, "op": ">", "value": 2692}} → 5 5
On macOS, copy the contents of the file /Users/anna/todo.txt to the clipboard. lookup "copy the contents of the file to the clipboard" → cards xclip, pbcopy…; it takes the macOS section: pbcopy <{{path/to/file}} terminal: pbcopy </Users/anna/todo.txt
Move /tmp/work/a.txt into the existing directory /tmp/work/arch. lookup "move a file into a directory" → cards cp, mv…; it picks mv terminal: mv /tmp/work/a.txt /tmp/work/arch
Create a symbolic link /tmp/work/x that points to /data/notes.txt. (the store has no card for it) lookup "create a symbolic link" → none of the cards covers it NONE
Can you play the song 'Cha Cha Cha' by the artist Käärijä? (tool play_song) one call play_song {"artist_name": "Käärijä", "song_name": "Cha Cha Cha"}
What is the temperature right now and for the next three hours in Seattle and Los Angeles? two parallel calls get_current_and_future_temperature for Seattle and for Los Angeles, hours: 3
Who won the basketball game between Lakers and Celtics yesterday? (only get_stock_data offered) no tool fits a plain answer, no forced call
Return a JSON object with the fields name and age for Alice, who is 30. chat {"name": "Alice", "age": 30}

Every row is a real greedy answer of the q8_2f file. The Space runs the test rows live, with 48 more cases, and the last one in its chat.

Measured

Memory and speed against the context length

context, tokens 512 2,048 8,192 32,768 131,072
decode, M4 GPU, tok/s 209.8 226.9 194.9 208.5 221.4
decode, M4 CPU, tok/s 139.2 115.2 114.6 130.3 87.8
prefill, M4 GPU, tok/s 1,643 1,722 1,064 968 935
state per sequence 20.1 MB 20.1 MB 20.1 MB 20.1 MB 20.1 MB
whole process, M4 GPU (peak footprint) 1,792.9 MB 1,793.0 MB 1,793.0 MB 1,793.2 MB 1,799.3 MB

cortiq bench --ctx N --tokens 128 --ignore-eos on the f16 file, MacBook Air 15″ (Apple M4, 24 GB, fanless), cortiq 0.9.27. A Transformer of the same shape with a full KV cache would hold 2.15 GB of keys and values at 131,072 tokens (16 layers × 2 KV heads × 128 × 2 × f16).

Quality, base and alpha

check, greedy base alpha
IFEval, prompt-level strict 7.95 25.32
IFEval, instruction-level strict 11.51 36.09
BFCL v4, 1,298 calls 25.65 33.67
BFCL v4, live simple 12.79 23.64
BFCL v4, irrelevance (no tool fits) 2.08 35.83
BFCL v4, simple Python 47.50 51.50
Set R, 362 agent tasks with cards and engine tools 123 139
Set R, questions about command output (table) 40 of 40 39 of 40

Base: the same network after 37.5 billion tokens of pre-training. Alpha: plus full-model instruction and tool training and one round of reinforcement on its own verified answers. Part of the IFEval gain comes from training dialogues of the same instruction types. GPQA and MMLU-Pro stay at chance level: knowledge is not the strength of a 340M model, which is why facts come from cards and numbers from the engine.

Next to SmolLM2-360M-Instruct

Embryo-340M alpha SmolLM2-360M-Instruct
Parameters 340 M (170 M active) 362 M
Pre-training text, tokens 37.5 B 4 T
Context limit none 8,192
Memory per sequence at 8,192 tokens 20.1 MB, at any length 336 MB, growing
Whole process, 512 → 8,192 tokens 1.12 → 1.12 GB 0.34 → 2.52 GB
Decode at 512 tokens, tok/s 321 146
Decode at 8,192 tokens, tok/s 293 93
BFCL v4, 1,298 calls 33.7 12.6
BFCL v4, simple Python 51.5 1.8
BFCL v4, live simple 23.6 0.4
Set R, 362 agent tasks with cards and engine tools 139 11
IFEval, prompt and instruction strict 30.7 38.5
ARC-Easy, acc_norm 39.7 49.1
ARC-Challenge, acc_norm 24.4 34.0
MMLU, acc_norm 27.0 32.0
HellaSwag, acc_norm 33.0 56.7

Speed and memory: cortiq 0.9.27, both q8_2f files, MacBook Air 15″ (Apple M4, 24 GB, fanless), GPU, median of three. BFCL: SmolLM2's q8_2f file through the same prompt format and checker (its f16 file does no better on the first 110 tasks). Set R, IFEval and the knowledge tests: both f16 files in one harness; IFEval with Google's checker (SmolLM2's card gives 41.0 from lighteval), knowledge tests as cloze (acc_norm). SmolLM2 is ahead on knowledge and IFEval: it read 107 times more text.

How it is built

One token through the network

16 layers, hidden size 768, vocabulary 32,768 (own BPE).

  • 12 gated delta mixers (4 heads × 128): a fixed 4 × 128 × 128 state per layer that the delta rule rewrites token by token, 0.27 MB per layer.
  • 4 bounded anchors (layers 3, 7, 11, 15): exact attention over a ring of the last 2,048 tokens plus 4 sink tokens, 8 heads over 2 KV heads, relative positions inside the window; 4.2 MB per layer. Together with the mixers: 20.1 MB per sequence, whatever the length.
  • Mixture of experts in every layer: one of 4 routed experts plus a shared one; the expert is chosen by resonance, the smallest reconstruction error of the token in the expert's subspace (rank 16), with no learned gate.
  • Clustered output head: 128 clusters over the vocabulary.
method what it does here U.S. patent application
Resonance routing picks the expert for every token and layer by the reconstruction error in the expert's subspace, no learned gate No. 19/452,440
Unified execution one CMF file: weights, tokenizer, chat template, router descriptors, sampling defaults; the engine runs calc and table inside the completion No. 19/731,402
Constant-memory streaming attention gated delta mixers and bounded anchors: no growing KV cache, nothing to evict No. 19/738,763

Training

From scratch with our own trainer (cortiq-embryo): 37.5 billion tokens of pre-training, then full-model instruction and tool training on agent dialogues with reference cards, function calls, the engine's calc and table and instruction-following tasks, then one round of reinforcement on the model's own answers verified by checkers. Pre-training data: FineWeb-edu, Cosmopedia v2, Russian text, code and technical documentation, OpenThoughts3 reasoning traces, and command-line material (man pages, tldr-pages, Stack Exchange). Part of the tool dialogues was written with a teacher model (Qwen3.8-27B, Apache-2.0); the weights are our own. Reference cards in the measured runs come from tldr-pages (CC BY 4.0). Licences of the command-line sources: LICENSES.tsv.

Limits

A small test alpha: it knows few facts and does not reason over many steps. In the measured agent tasks it fixes a failed command in 3 of 19 and chains two commands in 2 of 27. Check what it writes before running it.

Apache-2.0. U.S. patent applications filed with the USPTO: No. 19/452,440 (January 19, 2026), No. 19/731,402 (July 6, 2026), No. 19/738,763 (July 13, 2026). Titles and the patent grant: PATENTS.md.


Embryo-340M · тестовая альфа (русский)

Языковая модель на 340 миллионов параметров (170 миллионов активных на токен) в собственной архитектуре и собственном формате файла, рождена с нуля на 37,5 млрд токенов без чужих весов и обучена как командное ядро агента: вызывает инструменты в формате OpenAI, берёт справочные карточки и запускает команду из них, а точную арифметику оставляет движку.

  • Память не растёт с контекстом. 20,1 МБ состояния на последовательность при любой длине: от 512 до 131 072 токенов весь процесс прибавляет 6 МБ, а декод держится на 195–227 ток/с на MacBook Air M4 без вентилятора.
  • Считает движок, решает модель. calc и table выполняются внутри cortiq точно, модель только говорит, что посчитать. 39 из 40 вопросов о выводе команд — точный ответ.
  • Карточки быстрого доступа. lookup приносит справочную карточку, модель заполняет шаблон и запускает команду через terminal; если карточки нет — отвечает NONE, а не выдумывает команду.
  • Вызовы функций. BFCL v4: 33,7 % по 1298 вызовам (25,7 % до обучения инструментам), и обычный ответ вместо навязанного вызова в 35,8 % запросов, к которым инструмента нет (было 2,1 %).
  • Инструкции. IFEval, строгая оценка по промптам: 25,3 % (было 8,0 %).

Тестовая альфа-версия: ранний рабочий вариант модели, полностью основанной на технологиях Олега Кириченко: архитектура, формат файла, роутер, рантайм и обучение. Модель маленькая и ещё учится: сильна в форматах, вызовах инструментов и работе по карточке, слаба в фактах и длинных рассуждениях.

Попробовать без установки: тесты и чат в Space.

cargo install cortiq-cli --features gpu   # cortiq 0.9.27 или новее
hf download infosave/Embryo-340M-cmf embryo-340m-alpha-q8_2f.cmf --local-dir .
CMF_EMBRYO_RESIDENT=1 cortiq run embryo-340m-alpha-q8_2f.cmf -p "Write a Python function that reverses a string."
CMF_EMBRYO_RESIDENT=1 cortiq serve embryo-340m-alpha-q8_2f.cmf --port 8000   # API, совместимый с OpenAI

Файлы: embryo-340m-alpha-q8_2f.cmf — 348 МБ, GPU M4 324 ток/с, CPU M4 192 ток/с; embryo-340m-alpha-f16.cmf — 685 МБ, 234 и 137 ток/с; перплексия у обоих 21,94 (MacBook Air 15″, Apple M4, 24 ГБ, без вентилятора, cortiq 0.9.27). Модель говорит по-английски: она обучена для работы агента, свободный чат — её самая слабая сторона. Вызовы функций, builtin_tools и эндпоинты сервера — в английском разделе «Server».

Считает движок, решает модель

Память и скорость против длины контекста

Качество: база и альфа

Устройство: 16 слоёв, 12 миксеров с дельта-правилом и 4 ограниченных якоря (окно 2048 токенов и 4 опорных) — 20,1 МБ состояния при любой длине контекста (заявка США № 19/738,763); в каждом слое один из 4 экспертов выбирается резонансом — по наименьшей ошибке реконструкции в подпространстве эксперта, без обучаемого гейта (заявка США № 19/452,440); один файл CMF несёт веса, токенизатор, шаблон чата и дескрипторы роутера, а движок выполняет calc и table прямо внутри генерации (заявка США № 19/731,402).

Один токен через сеть

Обучение — с нуля, своим тренером: 37,5 млрд токенов текста, затем полное обучение инструкциям и инструментам и один раунд подкрепления на собственных проверенных ответах. Часть прироста IFEval дают обучающие диалоги тех же типов инструкций; GPQA и MMLU-Pro на уровне случайного выбора. Это тестовая альфа: проверяйте команды перед запуском.

Рядом со SmolLM2-360M-Instruct

Embryo-340M альфа SmolLM2-360M-Instruct
Параметры 340 млн (170 млн активных) 362 млн
Текст предобучения, токенов 37,5 млрд 4 трлн
Предел контекста нет 8192
Память на последовательность при 8192 токенах 20,1 МБ при любой длине 336 МБ и растёт
Весь процесс, 512 → 8192 токенов 1,12 → 1,12 ГБ 0,34 → 2,52 ГБ
Декод на 512 токенах, ток/с 321 146
Декод на 8192 токенах, ток/с 293 93
BFCL v4, 1298 вызовов 33,7 12,6
BFCL v4, простой Python 51,5 1,8
BFCL v4, живые простые 23,6 0,4
Набор R, 362 агентские задачи с карточками и инструментами движка 139 11
IFEval, строгая по промптам и инструкциям 30,7 38,5
ARC-Easy, acc_norm 39,7 49,1
ARC-Challenge, acc_norm 24,4 34,0
MMLU, acc_norm 27,0 32,0
HellaSwag, acc_norm 33,0 56,7

Скорость и память: cortiq 0.9.27, оба файла q8_2f, MacBook Air 15″ (Apple M4, 24 ГБ, без вентилятора), GPU, медиана трёх. BFCL: файл q8_2f модели SmolLM2 через тот же формат промпта и ту же проверку (её f16 на первых 110 задачах не лучше). Набор R, IFEval и тесты знаний: оба файла f16 в одном харнессе; IFEval — проверщиком Google (в карточке SmolLM2 — 41,0 по lighteval), тесты знаний — cloze (acc_norm). В знаниях и IFEval впереди SmolLM2: она прочитала в 107 раз больше текста.

Заявки на патенты США, поданные в USPTO: № 19/452,440 (19 января 2026), № 19/731,402 (6 июля 2026), № 19/738,763 (13 июля 2026). Названия и патентная лицензия: PATENTS.md.


Embryo-340M · 测试 alpha(中文)

一个 3.4 亿参数(每个 token 激活 1.7 亿)的语言模型,采用自有架构和自有文件格式,在 375 亿 token 上从零训练,没有使用他人权重,作为智能体的命令核心:以 OpenAI 格式调用工具,获取参考卡片并执行其中的命令,把精确算术交给引擎。

  • 内存不随上下文增长。 每个序列 20.1 MB 状态,与长度无关:从 512 到 131072 个 token,整个进程只增加 6 MB,无风扇 MacBook Air M4 上解码保持 195–227 tok/s。
  • 引擎计算,模型决策。 calc 和 table 在 cortiq 内部精确执行,模型只说明要算什么。关于命令输出的 40 个问题中 39 个答案精确。
  • 快速参考卡片。 lookup 取回参考卡片,模型填写模板并通过 terminal 执行命令;没有合适卡片时回答 NONE,不编造命令。
  • 函数调用。 BFCL v4:1298 个调用上 33.7%(工具训练前 25.7%);在没有合适工具的请求中,35.8% 直接回答而不强行调用(此前 2.1%)。
  • 指令遵循。 IFEval 提示级严格:25.3%(此前 8.0%)。

测试 alpha 版:一个早期可用版本,完全基于 Oleg Kirichenko 的技术:架构、文件格式、路由器、运行时和训练器。模型很小,仍在学习:擅长格式、工具调用和按卡片执行,不擅长事实和长推理。

无需安装即可试用:Space 中有测试和对话。

cargo install cortiq-cli --features gpu   # cortiq 0.9.27 或更新
hf download infosave/Embryo-340M-cmf embryo-340m-alpha-q8_2f.cmf --local-dir .
CMF_EMBRYO_RESIDENT=1 cortiq run embryo-340m-alpha-q8_2f.cmf -p "Write a Python function that reverses a string."
CMF_EMBRYO_RESIDENT=1 cortiq serve embryo-340m-alpha-q8_2f.cmf --port 8000   # 兼容 OpenAI 的 API

文件:embryo-340m-alpha-q8_2f.cmf:348 MB,M4 GPU 324 tok/s,M4 CPU 192 tok/s;embryo-340m-alpha-f16.cmf:685 MB,234 和 137 tok/s;两者困惑度均为 21.94(MacBook Air 15″,Apple M4,24 GB,无风扇,cortiq 0.9.27)。模型使用英文:它为智能体工作而训练,自由对话是它最弱的一面。 函数调用、builtin_tools 和服务器端点见英文的 “Server” 部分。

引擎计算,模型决策

内存和速度与上下文长度

质量:基座与 alpha

结构:16 层,12 个门控 delta 混合层和 4 个有界锚点层(2048 个 token 的窗口加 4 个锚定 token)——任意上下文长度下 20.1 MB 状态(美国专利申请号 19/738,763);每层由共振从 4 个专家中选一个,即专家子空间中重构误差最小者,没有可学习的门控(美国专利申请号 19/452,440);一个 CMF 文件包含权重、分词器、对话模板和路由描述,引擎在生成过程中直接执行 calc 和 table(美国专利申请号 19/731,402)。

一个 token 穿过网络

训练:用自有训练器从零开始,375 亿 token 文本,然后进行全模型指令与工具训练,以及在自身已验证答案上的一轮强化。IFEval 的部分提升来自同类指令的训练对话;GPQA 和 MMLU-Pro 处于随机水平。这是测试 alpha:执行命令前请先检查。

与 SmolLM2-360M-Instruct 对比

Embryo-340M alpha SmolLM2-360M-Instruct
参数 3.4 亿(激活 1.7 亿) 3.62 亿
预训练文本,token 375 亿 4 万亿
上下文上限 无 8,192
8,192 token 时每条序列的内存 20.1 MB,任意长度相同 336 MB,持续增长
整个进程,512 → 8,192 token 1.12 → 1.12 GB 0.34 → 2.52 GB
512 token 时解码,tok/s 321 146
8,192 token 时解码,tok/s 293 93
BFCL v4,1,298 次调用 33.7 12.6
BFCL v4,简单 Python 51.5 1.8
BFCL v4,live simple 23.6 0.4
R 集,362 个带卡片与引擎工具的智能体任务 139 11
IFEval,提示级与指令级严格 30.7 38.5
ARC-Easy,acc_norm 39.7 49.1
ARC-Challenge,acc_norm 24.4 34.0
MMLU,acc_norm 27.0 32.0
HellaSwag,acc_norm 33.0 56.7

速度与内存:cortiq 0.9.27,两者均为 q8_2f 文件,MacBook Air 15″(Apple M4,24 GB,无风扇),GPU,三次取中位数。BFCL:SmolLM2 的 q8_2f 文件使用相同的提示格式和判定器(其 f16 文件在前 110 个任务上并不更好)。R 集、IFEval 与知识测试:两者均为 f16 文件,同一评测框架;IFEval 用 Google 的检查器(SmolLM2 模型卡中 lighteval 给出 41.0),知识测试为 cloze(acc_norm)。SmolLM2 在知识与 IFEval 上领先:它读过的文本多 107 倍。

已向 USPTO 提交的美国专利申请:No. 19/452,440(2026 年 1 月 19 日)、No. 19/731,402(2026 年 7 月 6 日)、No. 19/738,763(2026 年 7 月 13 日)。名称和专利授权见 PATENTS.md。

Downloads last month
75
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Space using infosave/Embryo-340M-cmf 1