/ Модель

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

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

lfm3-1.7b-flash

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

Дообученная компактная модель LiquidAI для локальных агентов, которая группирует независимые вызовы инструментов в одном ходе, чтобы выполнять задачи с меньшим числом токенов и задержкой.

499скачиваний за 30 дней2лайкавеса обновлены19 ноя 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

LFM3-1.7B Flash — дообученная модель LiquidAI/LFM3-1.7B, опубликованная bilawalriaz для локальных агентов с вызовом инструментов. Она объединяет несколько независимых вызовов инструментов в одном ходе, а вызовы с зависимостями выполняет последовательно; это помогает сократить число генерируемых токенов и задержку при поиске данных и выполнении действий через инструменты.

Модель дообучена методом LoRA ранга 16 на 485 синтетических траекториях из среды обслуживания, включавшей документы, структурированные записи, файлы, арифметику и хранилище состояния. Для оценки автор сообщает результат 245 из 254 задач на одном тестовом прогоне против 236 из 254 у базовой модели; оценка использовала английские запросы и веса f16. Доступны веса safetensors и сборки GGUF в вариантах от Q4_0 до Q8_0.

Модель предназначена для локального запуска через llama.cpp и рассчитана на вызов инструментов, пакетирование независимых запросов, соблюдение порядка зависимых операций и восстановление после сбоев. Обучение синтетическое и охватывает одну предметную область; модель может ошибаться при противоречивых свидетельствах и при арифметике, если пропускает соответствующий инструмент. Квантизованные варианты проверены лишь на небольшой дымовой серии задач. Лицензия — LFM Open License v1.0, унаследованная от базовой модели.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

LFM3-1.7B Flash

Local agents are slow for a boring reason: the model loop, not the tools. Ask a 1.7B model for three facts and it usually takes three turns, one call each, re-reading the conversation every time and writing another paragraph of reasoning before the next call.

LFM3 Flash is LiquidAI/LFM3-1.7B fine-tuned to break that loop. When a request needs several independent lookups, it writes all of them into one assistant turn. A small executor runs the calls at the same time, returns the results together, and the model answers from them. Calls that genuinely depend on an earlier result still wait.

On 254 held-out tasks it finishes more of them than the base model while generating 72% fewer tokens. That is the whole point: fewer turns, less text, lower latency on the same 8 GB card.

Results

Same harness, same f16 weights, greedy decoding, RTX 2070 Max-Q. 254 tasks from a synthetic maintenance environment.

Success, generated tokens and median latency

baserun1Flash (run2)
success236/254 (92.9%)230/254 (90.6%)245/254 (96.5%)
model turns per task2.642.062.43
tool calls per task3.402.452.94
generated tokens per task494.6118.7138.6
median latency5.69 s1.84 s1.94 s
dependency violations000

Paired against the base on the same tasks: +3.2 points, 95% CI −0.4 to +6.8.

The gain is not uniform, and the family breakdown is more useful than the average.

Success by task family

Flash recovers injected tool failures better (24/24 against 17/24), finishes every sequential task (21/21 against 19/21) and matches the base on independent batches at 74/74. Arithmetic and unit conversion stay three tasks behind (71/77 against 74/77), because those are the easiest places to skip the tool and guess. Both models fail the two conflicting-evidence tasks.

Run1 is the first attempt, kept in the table because it isolates one change. It learned to do arithmetic in its head, badly, because the demonstrations did. Regenerating every arithmetic demonstration to call a calculator moved mixed from 59/77 to 71/77 and removed a retry loop on missing records. Same base model, same harness, fixed data.

The test split was used once to compare the base with run1, so Flash's test number is a confirmation on an already-observed split. Before that run, Flash had to pass a separate 60-task development gate: 56/60 against 52/60 for the base, with arithmetic back to the base level.

Quantisations

Converted from the merged f16 checkpoint with llama.cpp b12374. The quantisation check is five tasks: independent calls, a dependent lookup, no tool, a state change and injected failure recovery. Q4_K_M was then downloaded from the Hub and passed the six-task smoke suite, which adds an empty-result case.

filesizesmoke suite
lfm3-1.7b-flash-Q4_0.gguf0.98 GiB5/5
lfm3-1.7b-flash-Q4_K_M.gguf1.02 GiB6/6
lfm3-1.7b-flash-Q5_K_M.gguf1.17 GiB5/5
lfm3-1.7b-flash-Q8_0.gguf1.72 GiB5/5
lfm3-1.7b-flash-f16.gguf3.23 GiBreference

Q4_0 was the fastest in that check at 1.14 s median, Q8_0 the slowest at 1.31 s. That tests that the call format survives quantisation, not task accuracy. The evaluation used f16.

Running it

llama-server -m lfm3-1.7b-flash-Q4_K_M.gguf \
  --host 127.0.0.1 --port 8080 -c 8192 -ngl 99

Render the checkpoint's own chat template and send the prompt to /completion, not the chat endpoint. The chat handler may apply its own tool parser, and that parser can stop after the first call.

One turn looks like this:

<|im_start|>assistant
<think>Look up both records in parallel.</think><tool_call>
<function=lookup_record>
<parameter=entity_id>
P-102
</parameter>
</function>
</tool_call>

<tool_call>
<function=lookup_record>
<parameter=entity_id>
SITE-9
</parameter>
</function>
</tool_call><|im_end|>

Stop generation on <|im_end|>. Return one tool message per call, in the order the calls appeared.

With transformers, tokenizer.apply_chat_template(messages, tools=tools, add_generation_prompt=True) produces the same prompt used in training.

How it was trained

LoRA r=16 over the attention and MLP projections, 16.5M trainable parameters, two epochs in fp16 on 485 trajectories. Loss applies to assistant tokens only: thinking, calls and the final answer. System prompts, user turns and tool output are not supervised.

The trajectories come from a fixture environment: a document corpus, structured records, workspace files, arithmetic and a sandboxed state store. A teacher model proposed tool calls as JSON, a local process ran them against the fixtures, and the teacher received the real results. A verifier checked facts, final state, dependency ordering and call budgets. Only trajectories that passed went into the training set.

What it does not do

The training data is synthetic and from one domain. It teaches call batching, dependency ordering, failure recovery and refusal on missing records, not general tool use.

Evaluations are English only and use one training seed. The 254-task test number is a single run.

Conflicting-evidence tasks fail. The model tends to trust a document that states something wrong rather than checking the records.

Arithmetic depends on the tool call. If it skips calculate or convert_units, it can be wrong. Run1 is the demonstration of that.

Quantisations were checked on five tasks, not across the evaluation suite.

The licence follows the base model: LFM Open License v1.0.

Links

Code, dataset generator, harness and the full research log: bilawalriaz/lfm3-batched-agent.

Next step is conflict-resolution demonstrations and a second training seed.

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

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

GPU в ailist

Универсальный рантайм · llama.cpp

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

Подбираем GPU…

Ревизия весов
c61668c

0 моделей