/ Модель

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

Контекст
128 000 токенов
Параметры
221 млн
Лицензия
Своя лицензия
Архитектура
lfm2 · dense
Базовая модель
LFM2.5-230M
Опубликована
29 июл 2026

lfm2.5-230m-code-math-exp

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

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

35скачиваний за 30 дней2лайкавеса обновлены30 июл 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

LFM2.5-230M-Code-Math-Exp — экспериментальная дообученная модель автора hauser458b на инструкционной LiquidAI/LFM2.5-230M. Она предназначена прежде всего для генерации кода на нескольких языках программирования, сохраняя диалоговые и инструкционные возможности исходной модели. Это плотная причинная языковая модель семейства LFM2 с 221,2 млн параметров и контекстом до 128 000 токенов; опубликованные веса представлены в safetensors.

Модель проверяли на наборе из 90 написанных вручную заданий, включая генерацию небольших программ и веб-проектов. Автор отмечает улучшения в Java, JavaScript и генерации законченных приложений по сравнению с предыдущей версией, но оценка была однократной и неформальной. Модель может быть полезна для черновиков кода и простых программных задач, однако её результаты требуют проверки. Лицензия указана как other; условия следует уточнить в карточке модели и у правообладателя.

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

  • создание черновиков небольших программ на Python, Java и C++
  • генерация простых веб-страниц на HTML, CSS и JavaScript
  • подготовка кода для учебных задач и небольших проектов
  • создание базовых приложений по текстовому описанию

Ограничения

Оценка проведена на небольшом фиксированном наборе промптов и не является формальным бенчмарком; обучение остановили до завершения запланированных эпох. Генерация на Rust ненадёжна, а код на других языках также может содержать ошибки и требует проверки; лицензия обозначена как other.

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

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

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

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

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

Открыть на Hugging Face

LFM2.5-230M-Code-Math-Exp

An successful experimental fine-tune of LiquidAI/LFM2.5-230M (the instruct-tuned model, not the base checkpoint), focused on strengthening code generation across multiple languages, while retaining the general chat and instruction-following ability of the original instruct model.

Marked successful and experimental because training was stopped early (see below) and the model has only been evaluated on a fixed prompt suite, not a formal benchmark.

Shows major improvements over my previous model (hauser458b/lfm2.5-230m-code-math), delivering broader programming language support, better full-app generation, and reliable basic agentic behavior like sandbox file creation and terminal execution (tested locally via Q5_K_M quant).

Why this exists

LiquidAI's own model card for LFM2.5-230M states it is not recommended for reasoning-heavy workloads such as advanced math, code generation, or creative writing — the model is tuned primarily for data extraction, structured outputs, and lightweight agentic/tool-use tasks. This fine-tune pushes the small instruct model further into multi-language code competence.

Fine-tuning started from the instruct checkpoint rather than the base pretrain checkpoint, to preserve chat and instruction-following behavior that the base model doesn't have.

Training details

  • Base model: LiquidAI/LFM2.5-230M (instruct)
  • Method: Full fine-tune, bf16
  • Datasets:
  • Epochs / batch size: configured for 5 epochs, batch size 16, but training was stopped early at 9,800 steps — checkpoints beyond ~12k steps were tested and showed clearly worse output quality (less coherent, less accurate generations), so 9,800 was kept as the published checkpoint instead.
  • Sequence length: 1024 tokens
  • Loss: completion-only (loss computed only on assistant responses, not prompts)
  • Checkpoint: saved directly from the training run at the stopping point (not selected via load_best_model_at_end, since the run was interrupted rather than completed) — see Known Limitations below

Evaluation

Evaluated on a fixed suite of 90 hand-written prompts: 20 Python, 20 Java, 5 each of HTML/CSS/JavaScript, 5 combined HTML+CSS+JS mini-projects, 10 C++, 10 Rust, and 10 larger "build a complete program" prompts (calculator, to-do app, quiz game, etc.), compared against hauser458b/lfm2.5-230m-code-math.

This is a manual, single-run, single-temperature comparison (temperature 0.3) — not a formal benchmark, and results are anecdotal rather than statistically rigorous.

Where this model did better:

  • Java: fewer broken/non-compiling outputs (e.g. no literal syntax errors, correct handling of tasks like title-casing and leap-year checks)
  • JavaScript: more coherent DOM manipulation logic on the "add list item" style task
  • Combined HTML+CSS+JS mini-projects: more functional end-to-end logic (e.g. quiz-answer checking actually evaluates a real answer rather than looping over hardcoded strings)
  • Full "build a project" prompts: calculator, to-do app, and rock-paper-scissors implementations were more likely to be logically complete and runnable

Where it was roughly even: HTML, CSS, C++

Where it did NOT clearly improve, or regressed:

  • Rust remains weak in both models. Neither dataset used here was Rust-heavy, and this shows: several Rust outputs from this model don't compile as-is (e.g. missing braces, incorrect struct/method logic). It's somewhat less broken than the comparison model's Rust output, but "less broken" is not "reliable" — treat all Rust output from this model as a rough draft, not working code.

Known limitations

  • Early stopping: training was manually interrupted before the configured 5 epochs completed, and the final checkpoint was saved directly rather than through automatic best-checkpoint selection. There is no guarantee this exact checkpoint is the single best point in the run — it's simply where training was stopped.
  • Rust output is unreliable — expect syntax errors and logic bugs; always compile-check before trusting Rust output from this model.
  • Occasional logic bugs even in "solid" languages — e.g. one Python anagram implementation in testing called a string method that doesn't exist. Review generated code before running it, especially anything involving user input, file I/O, or external calls.
  • Multi-file / multi-technology tasks (e.g. combined HTML+CSS+JS builds) are the model's weakest spot even where it improved over the comparison model — interactivity is sometimes only partially wired up (e.g. a button that updates the wrong element).
  • Not evaluated on data extraction, RAG, tool-calling, or general chat — this fine-tune was evaluated purely on code-generation prompts. If you need the original model's data-extraction / agentic strengths, this model has not been validated for that use case.
  • Still a 230M-parameter model — do not expect deep multi-step reasoning or production-grade code without review.
  • Not evaluated on safety-critical, medical, or legal use cases — do not use for those without additional safeguards.

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "hauser458b/lfm2.5-230m-code-math-exp"
model = AutoModelForCausalLM.from_pretrained(model_id, dtype="bfloat16", device_map="auto")
tokenizer = AutoTokenizer.from_pretrained(model_id)

messages = [{"role": "user", "content": "Write a Python function to check if a number is prime."}]
inputs = tokenizer.apply_chat_template(
    messages, add_generation_prompt=True, return_tensors="pt", return_dict=True
).to(model.device)

output = model.generate(**inputs, max_new_tokens=300, do_sample=True, temperature=0.3, top_p=0.9)
print(tokenizer.decode(output[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

License

Inherits the LFM Open License v1.0 from the base model.

Acknowledgements

Built on LiquidAI/LFM2.5-230M. See the LFM2 Technical Report for details on the base architecture. Compared against hauser458b/lfm2.5-230m-code-math during evaluation.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
Lfm2ForCausalLM
Ревизия весов
47b4dd8

0 моделей