/ Модель

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

Лицензия
Своя лицензия
Базовая модель
LFM3-1.7B
Библиотека
gguf
Опубликована
3 ноя 2026

termaid

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

Специализированная GGUF-модель на базе LFM3-1.7B преобразует английские описания процессов в JSON-структуру блоков и связей для построения диаграмм Mermaid.

158скачиваний за 30 дней0лайковвеса обновлены3 ноя 2026

Бенчмарки

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

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

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

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

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

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

termaid — специализированная модель для приложения termaid на macOS. Она принимает описание процесса на простом английском языке по одному предложению за раз и формирует компактный JSON с блоками и связями для диаграммы Mermaid. Приложение проверяет структуру JSON и самостоятельно строит Mermaid-код; модель предназначена для этого пошагового формата, а не для обычного общения или генерации Mermaid напрямую.

В основе лежит LiquidAI/LFM3-1.7B, дообученная rank-16 LoRA-адаптером, слитым с базовой моделью. Репозиторий содержит GGUF-квантование Q6_K размером 1,43 ГБ; модель запускается локально через llama.cpp. В обучающих примерах были процессы из областей разработки ПО, найма, здравоохранения, логистики, финансов и кулинарии. Автор сообщает об оценке на 55 обычных и 40 сложных описаниях, включая незнакомые модели области.

Модель может терять части длинных предложений с несколькими шагами, например ветку «иначе», а иногда добавляет блоки или связи, которых нет в описании. Проверка приложения помогает не допустить некорректной структуры диаграммы, но не гарантирует точность её содержания. Обучение и проверка проводились только на английском языке. В метаданных указана лицензия other; конкретные условия лицензии в доступных материалах не раскрыты.

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

  • создание блок-схемы процесса по описанию на английском языке
  • добавление шагов и связей в диаграмму по одному предложению
  • преобразование условий процесса в блоки решений с ветвями да и нет

Ограничения

Модель обучалась и проверялась только на английском языке; в длинных предложениях с несколькими шагами может терять части процесса, а иногда добавляет неупомянутые блоки или связи. Она рассчитана на пошаговый JSON-формат приложения и не предназначена для обычного диалога или прямой генерации Mermaid.

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

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

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

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

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

Открыть на Hugging Face

termaid

This is the diagram model behind termaid, a Mac menu-bar app. You type or say what a process does in plain English, and termaid draws it as a Mermaid flowchart. The model runs entirely on your Mac.

It's LiquidAI/LFM3-1.7B with a LoRA adapter merged in, quantized to Q6_K. The file is 1.43 GB.

What it does

termaid feeds the model one sentence at a time, along with the diagram so far. The model sends back the updated diagram as compact JSON, a list of boxes and a list of edges written as [from, to, label]. It never writes Mermaid. termaid checks the JSON and builds the Mermaid itself, so a bad reply can't produce broken syntax. A condition like "if the tests fail" becomes a decision box with yes and no branches.

Don't expect it to chat. I trained it only on this per-sentence JSON format, and it won't write Mermaid if you ask it to.

Files

FileQuantSize
termaid.ggufQ6_K1.43 GB

I ship Q6_K because Q4_K_M lost too much. On 55 holdout descriptions with v10, Q6_K matched the unquantized model's diagram 27 times and Q4_K_M only 17 times. Q4_K_M was about 15% faster, which isn't worth it.

Usage

The simplest route is the termaid app. The setup screen downloads this file and the app runs it with llama.cpp.

To run it yourself, use LFM3's chat template with an empty <think></think> block and temperature 0. That matches how I trained it, with thinking turned off. Here's an Ollama Modelfile.

FROM ./termaid.gguf
TEMPLATE """{{- if .System }}<|im_start|>system
{{ .System }}<|im_end|>
{{ end }}
{{- range .Messages }}
{{- if eq .Role "user" }}<|im_start|>user
{{ .Content }}<|im_end|>
{{ else if eq .Role "assistant" }}<|im_start|>assistant
<think></think>{{ .Content }}<|im_end|>
{{ end }}
{{- end }}<|im_start|>assistant
<think></think>"""
PARAMETER stop "<|im_end|>"
PARAMETER temperature 0

You'll also need the system prompt and the per-sentence message format. Both live in the termaid repo under src/.

Training

I trained a rank-16 LoRA on LFM3-1.7B on Modal, merged it into the base model, and converted the result to GGUF. The run took 628 steps at an effective batch size of 16, about 1.33 epochs. A learning rate of 1e-4 diverged.

The data has 7,550 training steps and 565 validation steps. Each step is one sentence, the diagram before it, and the diagram after it. They come from three places.

  • Template stories using vocabulary from software, hiring, healthcare, logistics, finance and kitchens.
  • About 300 long stories that Claude Sonnet wrote so that every sentence continues the flow.
  • About 300 stories aimed at two mistakes v10 kept making. It sent outcomes to the wrong box, and it hung decisions off the wrong step.

Any step whose target diagram failed termaid's own structure checks got dropped.

Evaluation

None of these descriptions appear in the training data.

The 55 regular holdouts include domains the model never saw, such as education, legal and manufacturing.

v10v11
Valid diagrams5555
Clean, no structure problems4241
Decisions with both outcomes45/5946/61

The 40 hard descriptions are long and dense. Claude Sonnet graded each diagram against its description.

v10v11
Correct, 0 major errors12
At most 2 major errors715
Total major errors152137
Wrong target4335

Sonnet graded each diagram once, so treat a difference of 5 errors or so as noise. The drop in wrong targets is bigger than that, and so is the jump from 7 to 15 nearly-right diagrams.

Limitations

The model still struggles with long sentences that pack in several steps. It often handles the first half and drops the rest, so you lose an "otherwise" branch or the flow stops early. More training data barely moved this between v10 and v11. Now and then it adds an edge or box the text never mentioned. I've only trained and tested it on English.

License

The weights derive from LFM3-1.7B, so the LFM Open License v1.0 covers them. That license excludes commercial use by organizations with $10M or more in annual revenue. The termaid app code is MIT.

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

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

GPU в ailist

llama.cpp

Нельзя запустить

GGUF-модель ждёт проверки: нужно выбрать файл кванта под доступные GPU.

Ревизия весов
76eb703

0 моделей