/ Модель

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

Лицензия
Apache 2.0
Базовая модель
gemma-4-E2B-it-qat-q4_0-exact-gguf
Библиотека
gguf
Опубликована
23 окт 2026

gemma-4-E2B-it-lazy-capped64-q4_0-gguf

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

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

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

Экспериментальная GGUF-сборка Gemma 4 E2B-it, дообученная для более компактных рассуждений при решении математических задач GSM8K.

Это экспериментальная неофициальная сборка Gemma 4 E2B-it от независимого автора, созданная на основе xbill9/gemma-4-E2B-it-qat-q4_0-exact-gguf с помощью LoRA дообучения. Модель предназначена для генерации текста в диалоговом режиме и решения математических задач с пошаговыми рассуждениями; обучение проводилось на GSM8K с ограничением блока рассуждений до 64 токенов. Веса сохранены в формате GGUF Q4_0, лицензия — Apache 2.0.

В тесте GSM8K модель решила 1 187 из 1 319 задач и использовала в среднем на 54,4% меньше токенов на правильный ответ, чем базовая сборка без ограничения рассуждений. Результаты зависят от обучающего seed; автор отмечает, что при приоритете максимальной точности следует использовать базовую модель без ограничения. Модель текстовая, запуск проверен с llama.cpp на RTX 3050; другие задачи и сценарии не оценивались.

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

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

Ограничения

Обучение и оценка проводились только на GSM8K, другие задачи не проверялись. Результаты зависят от seed; при максимальном приоритете точности автор рекомендует базовую GGUF-модель без ограничения рассуждений.

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

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

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

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

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

Бенчмарки пользователейпока нет

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

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

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

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

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

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

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

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

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

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

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

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

Открыть на Hugging Face

Gemma 4 E2B-it, trained on 64-token thinking, Q4_0 GGUF (unofficial, experimental)

This is an unofficial research build, made and published independently of Google. It is xbill9/gemma-4-E2B-it-qat-q4_0-exact-gguf after a LoRA fine-tune that trains it on its own shortest right answers with thinking cut at 64 tokens, written back into the same Q4_0 grid. Same size, same tensors, same llama-server flags.

It is part of lazy-gemma, a Hacktoberfest 2026 Week 3 entry.

Results

All 1,319 GSM8K test problems, greedy, thinking on, max_tokens 4096, llama.cpp b11696-3-g7182ef71e on an RTX 3050 OEM (8 GB). Correctness is graded by code. This model runs with no cap.

ModelThinking capRightTokens per correct answer
Base GGUFnone1,187994.9
Base GGUFllama.cpp thinking_budget_tokens 5121,185855.9
Base GGUF2561,171648.9
Base GGUF1281,166544.2
Base GGUF641,117580.9
This GGUFnone1,175454.0

Against the uncapped base it uses 54.4% fewer tokens per correct answer and gets 12 fewer right (50 problems only this model gets right, 62 only the base; exact McNemar p = 0.299), a gap 1,319 problems cannot tell from noise. Against the base with the 128 cap, the best setting without training, it gets 9 more right at 16.6% fewer tokens. A 64 cap on the base model costs 70 problems against no cap; training on 64-capped samples gets 58 of them back (p = 2.1e-05 against the base with the 64 cap).

A second training seed gets less accuracy. This file is training seed 0. Retrained with seed 1 on the same samples and settings (the seed sets the adapter's starting values and the data order), the model gets 1,154 right at 473.5 tokens per correct answer: 33 fewer right than the uncapped base, which is outside chance (p = 0.004), at 52.4% fewer tokens. The two seeds differ from each other by 21 right answers (p = 0.066). What both seeds show: more than half the tokens saved against the uncapped base, 37 to 58 more right than the base with the same 64 cap, and accuracy within chance of the base with the 128 cap at 13% to 17% fewer tokens. Where every right answer counts, use the base GGUF uncapped.

The same recipe at caps 128, 256 and 512 gave 1,161, 1,170 and 1,179 right at 492.2, 610.2 and 764.3 tokens per correct answer: accuracy does not fall steadily as the cap tightens. Those are one training run each.

Tokens include the thinking block, counted by the server with the model's tokenizer. Rows, logs and the comparison script are in the repo under benchmarks/runs/2026-10-22-rest-e2b-3050oem benchmarks/runs/2026-10-23-qatlora-capped64-e2b-3050oem and, for seed 1, benchmarks/runs/2026-10-23-qatlora-capped64-seed1-e2b-3050oem.

How it was trained

  • Data: 4 samples on each of 1,000 GSM8K training problems (seed 0, T=1.0, top_p 0.95, top_k 64), with thinking capped at 64 tokens by llama.cpp's reasoning budget. 3,495 of 4,000 samples were right. Per problem, code kept the shortest right sample: 943 problems, 376.1 generated tokens on average (939 fit the 2,048-token training length). Train and test problems are disjoint.
  • Training: LoRA rank 16, alpha 32, on q/k/v/o/gate/up/down, lr 1e-3, batch 8, 2 epochs (236 steps), 1h44m on the RTX 3050 at a 4,895 MiB peak. The forward pass runs through the exact Q4_0 weights of the base GGUF (fake-quant of weight plus LoRA delta, straight-through gradient), so the adapter is learned for the 4-bit weights that ship.
  • Export: the trained weights are rounded back onto each block's Q4_0 grid and written into a copy of the base GGUF. 175,425,067 of 1,835,532,288 Q4_0 levels changed. Metadata, tokenizer and chat template are unchanged.

Running it

llama-server -m gemma-4-E2B-it-lazy-capped64-q4_0.gguf -ngl 99 -fa 1 -c 8192 --jinja

Thinking is on by default; the reply's thinking lands in reasoning_content and the answer in content.

SHA-256: 750e778349575310e5a45df422eefde7d6b6fa66e33a15d55d7ddb9296f697a7

Limitations

  • Trained and measured on GSM8K only. Other tasks were not measured.
  • Text only. Tested with llama.cpp CUDA on one RTX 3050 OEM.
  • Unofficial and experimental. Report problems on the GitHub repo, not to Google.

License and attribution

Gemma 4 is released by Google DeepMind under the Apache 2.0 license. This repository redistributes fine-tuned Gemma 4 weights under the same license. The base weights, tokenizer and chat template are Google DeepMind's; this build is not affiliated with or endorsed by Google. Training data: GSM8K (openai/grade-school-math).

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

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

GPU в ailist

llama.cpp

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

Подбираем GPU…

Ревизия весов
5cec90f

0 моделей