/ Модель

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

Лицензия
Apache 2.0
Базовая модель
Qwen3.5-2B
Библиотека
gguf
Опубликована
6 ноя 2026

magi-1.1-2B

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

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

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

Компактная GGUF-версия Qwen3.5-2B с LoRA-дообучением и смешанной квантизацией для диалогов и генерации текста при ограниченной памяти.

magi-1.1-2B — дообученная и смешанно-квантованная версия Qwen3.5-2B от GEHIRNS для генерации текста и диалогов. Модель содержит около 1,88 млрд параметров, распространяется в формате GGUF и рассчитана на контекст до 32 768 токенов. Это текстовая сборка: визуальный энкодер базовой модели в неё не входит.

LoRA-дообучение на 600 коротких корректных трассах рассуждений помогает модели чаще завершать ход рассуждений; затем адаптер объединён с весами BF16 и применена смешанная квантизация. По оценке авторов, модель сохраняет 92% результата BF16-версии при примерно в 3,5 раза меньшем потреблении памяти; она предназначена прежде всего для запуска при ограниченных ресурсах. Для использования доступны GGUF-файл и команда запуска в llama.cpp.

В тестах модель уступила исходной BF16-версии 5,6 процентного пункта, а на задачах LiveCodeBench показала низкий результат. При жадном декодировании 77% тестовых трасс зацикливались, поэтому для интерактивной генерации авторы рекомендуют sampling. Оценка охватывала один runtime, один набор тестов и одну конфигурацию оборудования. Лицензия — Apache-2.0.

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

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

Ограничения

При жадном декодировании авторы отмечают зацикливание в 77% тестовых трасс; для интерактивной работы рекомендуется sampling. Модель уступает BF16-версии по общему результату, а оценка проведена на одном runtime, одном наборе тестов и одной конфигурации оборудования.

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

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

Introduction

magi-1.1-2B is Qwen3.5-2B in 1.36 GiB at a 32K context, with the highest capability density we have measured: ρ = 1.149, 3.0× the unquantized BF16 model (0.385 at 4.72 GiB) and above the magi-1.0 recipe applied to the 2B alone (1.071), all measured under the same settings.

It is two steps on top of Qwen/Qwen3.5-2B:

  1. One LoRA fine-tune that teaches the model to finish its thinking. Under greedy decoding the quantized 2B often gets stuck repeating itself until the thinking budget runs out: 82% of its benchmark traces end in a repetition loop, against 49% for the BF16 model. The fine-tune trains on 600 of the model's own correct, short reasoning traces. Part of them are aimed at the prompts on which a first fine-tune still looped under greedy decoding.
  2. The magi-1.0 mixed-precision recipe, unchanged: the same 13 tensor-class rules and the same quantizer, with an importance matrix computed on the 2B. The fine-tune does not change the file size.

The size is the point, not the score: magi-1.1-2B keeps 92% of the BF16 model's score (66.1% against 71.7%) in 3.5× less memory. Use the BF16 model if accuracy matters most, magi-1.1-2B if memory is the constraint.

magi-1.1-2B against Qwen3.5-2B BF16: 3.5x less memory, 92% of its score, 3.0x capability per GiB

Capability density

Capability density: magi-1.1-2B 1.149, the magi-1.0 recipe on the 2B 1.071, Qwen3.5-2B BF16 0.385

Capability density is ρ = −log₂(1 − score) / GiB: how many times the benchmark error rate is halved per gibibyte of memory. All three models here were measured the same way (llama.cpp, q4_0 KV cache, memory at a 32K context from llama-fit-params). The magi-1.0-4B card's chart used Ollama's memory figures, so its numbers are not comparable with these.

Benchmarks

Every column was run on one RTX 5070 (12 GB) with llama.cpp b11800 (llama-server) under one protocol:

  • Tasks: 2,313, run with thinking on and a 4,096-token thinking budget (budget forcing), greedy decoding.
  • Server: q4_0 KV cache with flash attention and micro-batch 128 for all three.
  • BF16 model: Unsloth's BF16 GGUF of Qwen3.5-2B (unsloth/Qwen3.5-2B-GGUF, Qwen3.5-2B-BF16.gguf), the unquantized starting point of both magi builds.
  • Code grading: by executing tests (EvalPlus for HumanEval+ and MBPP+). LiveCodeBench uses 150 problems from contests between 2025-01-18 and 2025-04-06.

Memory and ρ. Memory is the resident size llama-fit-params projects for a 32K context with one sequence: weights, KV cache, recurrent state and compute buffers, GPU plus host, without the CUDA context. Capability density is ρ = −log₂(1 − score) / GiB. These sizes are measured differently from the Ollama figures on the magi-1.0-4B card, so compare ρ only within this table.

magi-1.1-2B against the BF16 model: on the same 2,313 tasks, it scores 5.60 points lower (paired, standard error 0.84; 134 tasks gained, 279 lost) in 3.5× less memory. Largest gaps, in points: MBPP+ −11.0, MMLU −10.5, LiveCodeBench −10.0.

magi-1.1-2B against the recipe alone: the fine-tune adds 2.58 points to the benchmark score (paired, standard error 0.82; 222 tasks gained, 163 lost) at the same file size. It still loops on 77% of traces and hits the thinking budget on 81% (BF16: 49% and 62%).

Decode speed: single-stream generation speed (llama-bench, 128 tokens, q4_0 KV), on the same GPU.

Recipe

The same rules as magi-1.0, applied to Qwen3.5-2B's 24 layers (18 Gated DeltaNet, 6 full attention):

Tensor groupTypeShare of parametersbits/weight
FFN gate, up, down (all 24 layers)IQ3_XXS48.1%3.06
Token embedding = tied output headQ4_K27.0%4.50
DeltaNet input projection attn_qkv (18)Q4_K12.0%4.50
Full-attention q, k, v, output (6 layers)Q4_K4.7%4.50
Gated-attention output gate (18 DeltaNet layers)IQ3_XXS4.0%3.06
DeltaNet output projection ssm_out (18)Q4_K4.0%4.50
DeltaNet gates ssm_alpha, ssm_betaQ8_0<0.1%8.50
Norms, convolution, A, Δt biasF32<0.1%32.00

The quantizer is llama-quantize --pure from the PrismML-Eng/llama.cpp fork with magi-1.0's override file and base type IQ2_XXS. The importance matrix was computed on Qwen3.5-2B (BF16) from the same calibration text as magi-1.0: 32 reasoning traces for LiveCodeBench problems dated before the benchmark's contest window. File SHA-256: d25e04ce9eef9c1639e944b7147cd86f9ec9a4389d9de983380bc89683f8dc31.

Training

  • Adapter: LoRA rank 16, α 32, on all MLP projections and the q/k/v/o projections of the 6 full-attention layers (96 modules).
  • Optimisation: 2 epochs, learning rate 1e-4 (cosine), bf16, on Qwen3.5-2B. The adapter is merged into the BF16 weights before quantization.
  • Data: 600 rows, each a prompt and one of the model's own answers with its thinking.
    • The answers were sampled at temperature 0.6 from 8-bit (Q8_0) builds: of Qwen3.5-2B for the first set and of a first fine-tune for the second. The second set holds only prompts on which that fine-tune loops under greedy decoding.
    • A sample was kept only if it was correct, finished thinking on its own within 3,000 tokens, and was the shortest such sample for its prompt.
    • Benchmark questions were excluded by id, normalized text and hash.
  • Prompt sources: the training/validation splits below. The licenses are as declared on each dataset's Hugging Face card.
DatasetSplitDeclared license
openai/gsm8ktrainMIT
cais/mmluvalidation, devMIT
google-research-datasets/mbpptrain, validation, promptCC BY 4.0
allenai/ai2_arctrainCC BY-SA 4.0
allenai/sciqtrainCC BY-NC 3.0
allenai/openbookqatrainunknown
Rowan/hellaswagtrainnot declared
allenai/winograndetrainnot declared

The training rows hold the model's own outputs, not the datasets' answer texts. Some sources carry non-commercial or share-alike terms. If those terms matter for your use, check them.

How to run

llama.cpp (the evaluated configuration; uses the Qwen3.5 chat template embedded in the file):

llama-server -m magi-1.1-2B.gguf -c 32768 --jinja --flash-attn on --cache-type-k q4_0 --cache-type-v q4_0 -ub 128

Ollama:

ollama create magi-1.1-2B -f Modelfile
ollama run magi-1.1-2B

The benchmark used greedy decoding. For interactive use with thinking enabled, Qwen recommends temperature 0.6, top_p 0.95 and top_k 20, which also makes repetition loops much rarer.

Limitations

  • Below the BF16 model by 5.6 points overall (largest gaps: MBPP+, MMLU, LiveCodeBench). Competitive programming is mostly out of reach at 2B: LiveCodeBench 1.3%, against 11.3% for BF16.
  • Still loops under greedy decoding: 77% of benchmark traces end in a repetition loop, so use sampling for interactive work.
  • Narrow evaluation: one runtime (llama.cpp b11800), one benchmark, one GPU, each configuration run once.
  • The name is ours. "2B" follows Qwen's naming; the file holds 1,881,825,088 parameters. Text only: the base model's vision encoder is not included.

Related

License

The weights are Apache 2.0, inherited from Qwen/Qwen3.5-2B; the license text is included in this repository. See Training for the terms of the datasets the fine-tuning prompts came from.

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

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

GPU в ailist

llama.cpp

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

GGUF-модель ждёт проверки: нужно выбрать файл кванта под доступные GPU.

Ревизия весов
94f1071

0 моделей