/ Модель

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

Лицензия
Apache 2.0
Базовая модель
Ling-3.0-tiny
Библиотека
peft
Опубликована
2 окт 2026

Ling-3.0-tiny-math-sft-v1

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

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

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

Экспериментальная QLoRA-настройка Ling-3.0-tiny для генерации ответов на английском языке с улучшенными навыками решения математических задач.

Sabbir505/Ling-3.0-tiny-math-sft-v1 — экспериментальная QLoRA-настройка модели inclusionAI/Ling-3.0-tiny для генерации текста с улучшенным решением математических задач и следованием инструкциям. Базовая модель — гибридная MoE-архитектура на 7,9 млрд параметров, из которых около 1,3 млрд активны на токен; она сочетает линейное внимание KDA и MLA. Модель дообучена на 2 000 примерах за одну эпоху, а репозиторий содержит адаптер PEFT и варианты GGUF Q2_K, Q4_K_M и Q8_0 для локального запуска.

В контролируемом сравнении с базовой моделью результат на подмножестве GSM8K вырос с 5% до 27%; показатели MMLU и упрощённой проверки следования инструкциям существенно не изменились. Модель предназначена для диалогового решения арифметических задач и ответов на инструкции на английском языке. Для математических запросов автор рекомендует включать режим подробных рассуждений; без него ответы могут быть многословными. Автор отмечает, что работа продолжается и качество ограничено небольшим обучающим набором и коротким обучением. Лицензия — Apache-2.0.

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

  • решение арифметических текстовых задач уровня GSM8K
  • генерация пошаговых рассуждений по математическим вопросам
  • ответы на инструкции в англоязычном чате
  • локальный запуск компактной MoE-модели через llama.cpp

Ограничения

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

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

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

Ling-3.0-tiny · Math-SFT (QLoRA fine-tune)

A QLoRA fine-tune of inclusionAI/Ling-3.0-tiny (7.9B-parameter MoE, ~1.3B active per token, hybrid KDA linear-attention + MLA architecture), trained to improve math reasoning and instruction-following on consumer-scale hardware.

This is work in progress. We plan to fine-tune it further — a larger and more math-heavy mixture, longer training, and additional post-training (preference/RL) stages — to achieve better results. Expect this repo to be updated.

Benchmark results

All probes use identical data, seeds, and extraction before and after training (100-question MMLU and GSM8K subsets, 50-prompt IFEval-lite with verifiable constraints). Numbers are not leaderboard-comparable; they are controlled A/B measurements of this fine-tune.

ProbeBaseFine-tunedΔ
MMLU-100 (knowledge, loglikelihood)58.0%59.0%+1.0
GSM8K-100 (math, no-think)5.0%27.0%+22.0
IFEval-lite-50 (instruction following)44.0%44.0%0.0
GSM8K-30 (think-mode, supplementary)—23.3%new capability
  • The GSM8K gain (+22 points, >5×) is the headline result: the model learned to actually solve grade-school math instead of failing almost uniformly.
  • MMLU unchanged confirms no catastrophic forgetting of general knowledge.
  • The think-mode supplementary eval (GSM8K-30, enable_thinking=True, answer extracted from \boxed{}/####) shows the model adopted the chain-of-thought format it was trained on; 23.3% on a 30-question subset is consistent with the no-think 27% given the small sample.
  • IFEval-lite unchanged: instruction-following was already the model's strongest area and 475 IF examples in the mix were not enough to move it. A future run uses a heavier IF share.

Training details

MethodQLoRA (4-bit NF4 base, bf16 compute)
LoRAr=16, alpha=32, dropout 0.05, all attention + MLP projections (MoE experts included, router frozen)
Trainable params296,091,648 (3.62% of 8.19B)
Data2,000 verified examples: 1,210 everyday conversations (smoltalk2/smollm3), 475 instruction-following (Tulu-3 SFT personas), 475 math reasoning with chain-of-thought (OpenThoughts-114k)
Sequence length384 tokens, no packing
Optimizationlr 5e-5 cosine, 60 warmup steps, effective batch 8, 1 epoch (246 steps), paged AdamW 8-bit
Hardware / time1× RTX 4090 D, ~4.7 hours

The data was rendered through Ling-3.0's native chat template, preserving its hybrid thinking-mode design: everyday/IF examples use detailed thinking off, math examples use detailed thinking on with real chain-of-thought targets.

Files

FileSizeUse
ling30tiny-ft-Q4_K_M.gguf~4.7 GBrecommended for local inference
ling30tiny-ft-Q8_0.gguf~8.4 GBnear-lossless
ling30tiny-ft-Q2_K.gguf~3.1 GBultra-compact
merged-ft-f16.gguf~15.8 GBfull-precision merged model
adapter/~600 MBraw LoRA adapter (apply to the base model)
benchmarks/—raw before/after benchmark JSONs

Usage

llama.cpp (GGUF)

llama-server -m ling30tiny-ft-Q4_K_M.gguf --port 8080
# or
llama-cli -m ling30tiny-ft-Q4_K_M.gguf -p "Solve: Natalia sold clips to 48 friends in April and half as many in May. How many altogether?"

For math, wrap the prompt with the model's thinking-mode system prompt (detailed thinking on) or rely on the chat template's enable_thinking flag — the model was trained to reason in <think>...</think> blocks on math problems.

transformers + PEFT (adapter)

from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch

tok = AutoTokenizer.from_pretrained("inclusionAI/Ling-3.0-tiny", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    "inclusionAI/Ling-3.0-tiny", torch_dtype=torch.bfloat16,
    device_map="auto", trust_remote_code=True)
model = PeftModel.from_pretrained(model, "Sabbir505/Ling-3.0-tiny-math-sft-v1", subfolder="adapter")

Honest limitations

  • Trained on a deliberately small (2,000-example), single-epoch run on free/consumer hardware; the gains are real but the model is far from its ceiling.
  • The IFEval-lite checker is a simplified subset of the official harness; absolute numbers are not comparable to published IFEval scores, only the before/after delta.
  • GSM8K answers were extracted via #### N / last-number fallback; the think-mode supplementary eval used \boxed{}/#### on a 30-question subset.
  • In no-think mode the model can be verbose on math prompts (it defaults to think-style reasoning it learned); thinking-mode prompting produces cleaner outputs.

Roadmap

  • Larger, more math-heavy mixture (5–10k reasoning examples)
  • 2–3 epoch training with evaluation-gated checkpoints
  • Longer sequence length (1024+) for full chain-of-thought targets
  • Instruction-following heavy rebalance to lift IFEval
  • Preference optimization (DPO) on top of this SFT stage

Acknowledgments

Base model by inclusionAI (Apache-2.0). Data from HuggingFaceTB smoltalk2 (Apache-2.0), AI2 Tulu-3 SFT personas (ODC-BY), and OpenThoughts (Apache-2.0). Trained with transformers 4.57.6 + TRL 1.13.0 + PEFT + bitsandbytes + flash-linear-attention.

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

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

GPU в ailist

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

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

Репозиторий содержит только адаптер (LoRA/PEFT) без базовой модели.

Ревизия весов
68ace22

0 моделей