/ Модель

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

Контекст
128 000 токенов
Параметры
1,5 млрд
Лицензия
Apache 2.0
Архитектура
lfm2 · dense
Базовая модель
LFM2.5-1.2B-Base
Библиотека
transformers
Опубликована
30 апр 2026

glm5.1-distill

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

Компактная англоязычная чат-модель на базе LFM2.5, дообученная на примерах рассуждений GLM-5.1 для диалогов и лёгких пошаговых объяснений.

88скачиваний за 30 дней6лайковвеса обновлены1 мая 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

yasserrmd/glm5.1-distill — независимая модель сообщества, созданная дообучением LFM2.5-1.2B-Base от Liquid AI. Это плотная авторегрессионная модель семейства LFM2 с гибридной архитектурой свёрточных слоёв и attention, примерно 1,5 млрд параметров по метаданным и контекстом до 128 000 токенов. Модель дообучена методом SFT на 50 000 примерах англоязычного диалогового набора Jackrong/GLM-5.1-Reasoning-1M-Cleaned, полученного из материалов семейства GLM-5.1; адаптер LoRA объединён с базовыми весами. Репозиторий содержит веса safetensors, а лицензия — Apache-2.0.

Модель предназначена для диалогов в роли общего ассистента, лёгких рассуждений, пошаговых объяснений и следования инструкциям. Компактный размер подходит для локального запуска на пользовательском GPU и периферийных устройствах, а также для дальнейшего дообучения под конкретные задачи. В карточке указана поддержка интерфейса вызова инструментов. Основной язык обучения и целевой язык — английский; другие языки могут работать хуже.

Формальных результатов бенчмарков нет. Из-за небольшого размера модель уступает более крупным чат-моделям в сложных рассуждениях, длинных контекстах и генерации кода; она может уверенно выдавать неверные сведения и не позиционируется как безопасный или готовый к производственному использованию ассистент. Не следует полагаться на неё в медицинских, юридических, финансовых и других критически важных сценариях.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

glm5.1-distill

yasserrmd/glm5.1-distill is a 1.2B parameter instruction-tuned chat model built on top of LiquidAI/LFM2.5-1.2B-Base. It is supervised-fine-tuned (SFT) on a 50k subset of Jackrong/GLM-5.1-Reasoning-1M-Cleaned, a cleaned reasoning-style chat corpus distilled from the GLM-5.1 family.

The goal is to bring some of the conversational reasoning behavior of larger GLM-5.1 teacher models into the small, efficient LFM2.5 architecture so it can run comfortably on a single consumer GPU, on edge devices, or via quantized runtimes such as ONNX, GGUF, or MLX.

Note: This is an independent community fine-tune. It is not affiliated with or endorsed by Liquid AI or Z.ai/THUDM (the GLM authors).


Model summary

PropertyValue
ArchitectureLFM2 (hybrid conv + attention)
Parameters~1.2B
Tensor dtypeBF16
Context length4096 (trained at 2048 with packing)
Base modelLiquidAI/LFM2.5-1.2B-Base
Fine-tuning methodLoRA SFT (merged back to base)
TrainerUnsloth + TRL SFTTrainer
Chat templateLFM2 / ChatML-style (`<
LicenseApache 2.0

Intended use

This model is designed for:

  • General assistant-style chat
  • Lightweight reasoning, step-by-step answers, and explanations
  • On-device and edge deployments where a 1B class model is appropriate
  • A starting checkpoint for further domain-specific fine-tuning

It is not a safety-aligned, production-ready assistant on its own. Treat its output as that of a small distilled student model: it can be confidently wrong, especially on long-horizon math, code correctness, current events, and anything safety-critical.

Out of scope

  • Medical, legal, financial, or other high-stakes advice
  • Any setting that requires guaranteed factuality
  • Generating content that violates the Apache 2.0 license terms or the upstream LFM2.5 base model license

Quickstart (Transformers)

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer

model_id = "yasserrmd/glm5.1-distill"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto",
)

messages = [
    {"role": "user", "content": "Explain why the sky is blue in two short paragraphs."},
]

inputs = tokenizer.apply_chat_template(
    messages,
    add_generation_prompt=True,
    return_tensors="pt",
    tokenize=True,
    return_dict=True,
).to(model.device)

streamer = TextStreamer(tokenizer, skip_prompt=True)

_ = model.generate(
    **inputs,
    max_new_tokens=512,
    temperature=0.1,
    top_k=50,
    top_p=0.1,
    repetition_penalty=1.05,
    streamer=streamer,
)

Recommended sampling

The base LFM2.5 family is sensitive to sampling settings. The following defaults (inherited from Liquid AI's reference settings) work well:

Use casetemperaturetop_ktop_prepetition_penalty
Factual / short answers0.1500.11.05
Creative / longer text0.7500.91.10
Code / structured output0.2400.91.05

Chat template

The tokenizer ships with a ChatML-style template. A two-turn example serializes to:

<|im_start|>user
Hello!<|im_end|>
<|im_start|>assistant
Hey there!<|im_end|>

Always use tokenizer.apply_chat_template(..., add_generation_prompt=True) at inference time. Do not hand-roll the prompt.


Training details

Data

  • Source: Jackrong/GLM-5.1-Reasoning-1M-Cleaned, main config
  • Slice: first 50,000 rows of the train split
  • Format: ShareGPT-style multi-turn conversations, normalized via unsloth.chat_templates.standardize_data_formats
  • Loss masking: train_on_responses_only so only assistant tokens contribute to the loss

LoRA configuration

HyperparameterValue
Rank r16
lora_alpha16
lora_dropout0
Biasnone
Target modulesq_proj, k_proj, v_proj, out_proj, in_proj, w1, w2, w3
Gradient checkpointingunsloth
Random seed3407

SFT hyperparameters

HyperparameterValue
Epochs1
Per-device batch size32
Gradient accumulation1
Effective batch size32
PackingTrue
Max sequence length2048
Optimizeradamw_torch
Learning rate2e-5
LR schedulerlinear
Warmup steps50
Weight decay0.01
PrecisionBF16
Seed3407

Merge & export

After SFT, the LoRA adapters were merged into the base weights using Unsloth's push_to_hub_merged(..., save_method="merged_16bit"). The repository contains the resulting full BF16 model, not adapters.

Hardware

Trained on a single GPU using Unsloth's optimized kernels. End-to-end training memory and time are dominated by the 50k-row, packed-2048 setup described above.


Evaluation

No formal benchmark scores are reported for this checkpoint yet. It has been smoke-tested on:

  • General Q&A (e.g. "Why is the sky blue?")
  • Short creative writing prompts
  • Multi-turn instruction following

Quantitative evaluations on benchmarks such as MMLU, GSM8K, IFEval, or MT-Bench are left as future work. Contributions via the HF community tab are welcome.


Limitations and biases

  • Inherits all limitations and biases of the LFM2.5 base model and of the GLM-5.1-derived training data.
  • 1.2B parameters is small. Expect weaker performance than 7B+ chat models on hard reasoning, long context, and code generation.
  • The training corpus is predominantly English. Other languages will work to varying degrees but are not the target.
  • The model can hallucinate facts confidently. Verify anything important.

ONNX version

An ONNX export of this model is available at:

yasserrmd/glm5.1-distill-onnx

It can be used with onnxruntime and optimum for CPU and accelerated inference. See that repository's README for usage details.


Citation

If you use this checkpoint, please cite the upstream work as well:

@misc{yasserrmd_glm51_distill_2026,
  title  = {glm5.1-distill: a small LFM2.5 student fine-tuned on GLM-5.1 reasoning data},
  author = {Mohamed Yasser},
  year   = {2026},
  howpublished = {\url{https://huggingface.co/yasserrmd/glm5.1-distill}}
}

And the base model and dataset:

  • LiquidAI, LFM2.5-1.2B-Base, 2025.
  • Jackrong, GLM-5.1-Reasoning-1M-Cleaned, Hugging Face Datasets.

Acknowledgements

Made with Unsloth

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей