/ Модель

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

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

LFM3-1.7B-Agent-v0.01.000

Генерация текстаТекст → текст3 профессии
372скачиваний за 30 дней0лайковвеса обновлены27 ноя 2026

Описание модели

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

Экспериментальная модель LFM3 с 1,73 млрд параметров для многошагового вызова инструментов и агентных задач.

LFM3-1.7B-Agent-v0.01.000 — компактная разговорная модель Liquid AI, дообученная автором репозитория balllvin на базе orcarouter/LFM3-1.7B-abliterated для работы агента с инструментами. Она обучена на наборе nvidia/Nemotron-SFT-Agentic-v4 и предназначена для многошаговых циклов вызова инструментов, включая поиск и сценарии с финансовыми документами. Модель содержит 1,73 млрд параметров, использует архитектуру LFM3 и веса BF16; заявленное нативное окно контекста — 262 144 токена, при этом обучение проводилось на последовательностях до 32 768 токенов. Основной язык карточки — английский.

На приведённых автором проверках модель чаще завершала финансовые задания и быстрее проходила их, чем базовая версия, а также улучшила результаты на простых тестах вызова функций и GSM8K. При этом точность ответов на финансовые задания осталась низкой — 1 из 20, а ошибки форматирования вызовов инструментов составили 16,5%. Это ранний экспериментальный этап дообучения. Базовая модель создана с удалёнными отказами; для многопользовательского развёртывания README рекомендует добавить внешние механизмы безопасности. Лицензия указана как other, а для загрузки требуется принять условия репозитория на Hugging Face.

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

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

Ограничения

В тесте финансовых задач полностью правильным был только 1 ответ из 20; доля ошибок вызова инструментов составила 16,5%. Модель основана на версии с удалёнными отказами, поэтому для многопользовательского развёртывания нужны внешние меры безопасности; длинный контекст, безопасность и качество на других языках не оценивались.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

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

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

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

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

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

Открыть на Hugging Face

LFM3-1.7B-Agent-v0.01.000

LFM3-1.7B-Agent-v0.01.000 is a compact 1.73B (BF16, 3.46 GB) tool-calling agent fine-tune of orcarouter/LFM3-1.7B-abliterated trained on nvidia/Nemotron-SFT-Agentic-v4 as Stage 1 of a local finance and tool-use agent.

Why This Model Is Better (and What Remains Early-Stage)

Compared to the abliterated base (orcarouter/LFM3-1.7B-abliterated), this Stage 1 SFT checkpoint learns to drive multi-turn search and tool loops to completion instead of stalling out:

  • Higher task completion rate: On held-out SEC-filing finance tasks (Nemotron-RL-Agentic-Finance-v1, max 16 turns), the model submits an answer on 65.0% (13/20) of tasks vs 35.0% (7/20) on Base (+30.0 pts).
  • 2x faster per-task runtime: Median completion time drops from 417 s to 213 s (-48.9%) on the same 20-task finance eval.
  • Stronger single-turn function calling & math: Simple BFCL function calling rises from 80.0% (32/40) to 90.0% (36/40), and GSM8K rises from 76.0% (38/50) to 82.0% (41/50).
  • Honest Stage 1 gaps: End-to-end finance answer accuracy remains 5.0% (1/20, unchanged from Base), and malformed tool-call errors rose from 8.8% (23/262) to 16.5% (44/267). (For bscode and DeepSeek Harness PTC coding/security workflows, see the newer balllvin/BS-0.5-Tiny + balllvin/LFM3-1.7B-Abliterated-Arete-NVFP4-MLX stack.)

Benchmark Results

Measured on 2026-11-06 across held-out evaluations against orcarouter/LFM3-1.7B-abliterated (95% Wilson CIs in notes):

BenchmarkBase (Abliterated)LFM3-1.7B-Agent-v0.01.000Delta
Finance Agent Answered (20 tasks)35.0%65.0%+30.0 pts
Finance Agent Fully Correct (20 tasks)5.0%5.0%0.0 pts
Median Time per Finance Task417 s213 s-48.9%
Tool-Call Failure Rate8.8%16.5%+7.7 pts
GSM8K (50 problems)76.0%82.0%+6.0 pts
BFCL Simple (40 calls)80.0%90.0%+10.0 pts
BFCL Live (40 calls)70.0%67.5%-2.5 pts

(Exact counts: Finance answered 7/20 -> 13/20; Finance correct 1/20 -> 1/20; Tool errors 23/262 -> 44/267; GSM8K 38/50 -> 41/50; BFCL Simple 32/40 -> 36/40; BFCL Live 28/40 -> 27/40. Finance tasks are from the validation split of nvidia/Nemotron-RL-Agentic-Finance-v1.)

Which Build to Download

This repository stores full BF16 (3.46 GB) weights runnable directly on both Apple Silicon (mlx-vlm) and Linux/CUDA (transformers / vLLM), plus sample scripts in inference/.

Hardware / PurposeFormatRepositoryNotes
Apple Silicon & CUDA (this repo)BF16 (3.46 GB)balllvin/LFM3-1.7B-Agent-v0.01.000Direct mlx-vlm & transformers load
4-bit Base (Mac MLX)NVFP4-MLX (1.83 GB)balllvin/LFM3-1.7B-Abliterated-Arete-NVFP4-MLXBundles brainspa_lfm3serve
4-bit Base (NVIDIA CUDA)NVFP4 (1.83 GB)balllvin/LFM3-1.7B-Abliterated-Arete-NVFP4vLLM W4A16_NVFP4
Newer bscode / PTC adapterPEFT LoRAballlvin/BS-0.5-TinyCoding & harness PTC milestone

Agent Setup & Hosting

Accept the repository terms on this page and authenticate (hf auth login or HF_TOKEN). Pass OpenAI-style function schemas to apply_chat_template(..., tools=TOOLS); the model outputs <tool_call><function=...>...</function></tool_call> blocks. Leave max_tokens unset or high so thinking traces complete cleanly.

1. Apple Silicon / MLX (mlx-vlm)

hf download balllvin/LFM3-1.7B-Agent-v0.01.000 --local-dir ~/models/LFM3-1.7B-Agent-v0.01.000
uv venv --python 3.12 && source .venv/bin/activate
uv pip install "mlx-vlm==0.7.12"
python -m mlx_vlm.server --model ~/models/LFM3-1.7B-Agent-v0.01.000 --port 8080 --enable-thinking

Or run the bundled tool-call smoke test (inference/run_mlx.py):

python ~/models/LFM3-1.7B-Agent-v0.01.000/inference/run_mlx.py --model ~/models/LFM3-1.7B-Agent-v0.01.000

2. Linux / NVIDIA GPU (vLLM or transformers)

uv venv --python 3.12 && source .venv/bin/activate
uv pip install "torch>=2.6" "transformers>=5.19" accelerate
python inference/run_transformers.py --model balllvin/LFM3-1.7B-Agent-v0.01.000

Or serve via vLLM (with transformers>=5.19 / LFM3 support, trust_remote_code=True):

vllm serve balllvin/LFM3-1.7B-Agent-v0.01.000 \
  --served-model-name lfm3-agent \
  --trust-remote-code \
  --reasoning-parser qwen3 \
  --max-model-len 32768 \
  --host 127.0.0.1 --port 8080

Or load directly in Python:

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "balllvin/LFM3-1.7B-Agent-v0.01.000"
tok = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(repo, dtype=torch.bfloat16, trust_remote_code=True).to("cuda")

3. Verify Running Endpoint

curl -sS http://127.0.0.1:8080/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "lfm3-agent",
    "messages": [{"role": "user", "content": "Confirm tool-calling readiness in one short line."}],
    "temperature": 0.0
  }' | python3 -m json.tool

Memory & Context Budget

  • Architecture: lfm3 (1.73B params, 24 layers: 13 gated short-conv, 5 sliding-window 256, 6 full attention with 4 KV heads × 128 head dim).
  • Weight footprint: 3.46 GB (3.22 GiB) on disk in BF16.
  • Context: 262,144 (256K) native max_position_embeddings; trained up to 32,768 (32K) token sequences.
  • KV cache: 12 KiB (12,288 bytes) per token across full-attention layers in BF16, plus 2.86 MiB fixed sliding-window/conv state per request (computed from config.json).
Context per Request1 Request KV4 Requests KV8 Requests KV
8K0.10 GiB0.39 GiB0.77 GiB
32K0.38 GiB1.51 GiB3.02 GiB
128K1.50 GiB6.01 GiB12.02 GiB
256K3.00 GiB12.01 GiB24.02 GiB

Training & Limits

  • Base checkpoint: orcarouter/LFM3-1.7B-abliterated (revision c1ca5b62).
  • Training pipeline: 3,127 conversations (3,079 train / 48 validation, 13.3M tokens, sequences >32,768 dropped) from the tool_calling split of nvidia/Nemotron-SFT-Agentic-v4. Assistant-only loss, LoRA r=32, alpha=64 on all linear layers, LR 1e-4 with 4% warmup + cosine decay, batch size 32, 97 steps (4.0 h on Apple M5 Pro via MLX; held-out loss 0.624 at step 20 → 0.607 at step 97), merged into BF16 model.safetensors.
  • Known limits: Built on an abliterated base with refusals removed (add external safety controls before multi-user deployment). Early Stage 1 accuracy on finance tasks is 1/20 (5%), tool-call error rate is 16.5%, and long-context/safety/non-English performance was not evaluated.

License & Terms

  • License: LFM Open License v1.0 (details; LICENSE file in repo; commercial use allowed only below $10M annual revenue). Independent community build unaffiliated with Liquid AI, OrcaRouter, or NVIDIA.
  • Terms of use: Access requires agreeing to the gating form on this repository page (full text). Log in with hf auth login or set HF_TOKEN before downloading.

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

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

GPU в ailist

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

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

MLX-модели работают только на Apple Silicon, на GPU NVIDIA они не запускаются.

Ревизия весов
504ce9c

0 моделей