/ Модель

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

Лицензия
Apache 2.0
Архитектура
gemma4 · dense
Базовая модель
mk-gemma-4-e4b-pt
Библиотека
transformers
Опубликована
16 июл 2026

mk-gemma-4-e4b-it

Генерация текстаТекст → текст
596скачиваний за 30 дней1лайквеса обновлены30 ноя 2026

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

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

Македонскоязычная разговорная модель Gemma 4 для ответов на вопросы, следования инструкциям и генерации текста.

mk-gemma-4-e4b-it — македонскоязычная разговорная модель семейства Gemma 4, разработанная vezilka-ai. Она создана дообучением с учителем модели mk-gemma-4-e4b-pt, которая ранее прошла дополнительное предобучение на македонских текстах. Модель использует формат чата Gemma 4 и предназначена для ответов на вопросы, следования инструкциям и генерации текста на македонском языке.

Модель подходит для создания македонского разговорного ассистента, прототипирования и дальнейшей настройки под македонские задачи. В README приведены результаты текстовой оценки на машинно переведённом наборе тестов; оценка не измеряет качество следования инструкциям. Опубликованный файл является промежуточным чекпойнтом до завершения расписания скорости обучения. Возможности обработки изображений и аудио для македонского языка не оценивались, а ответы могут содержать фактические ошибки, предвзятость или вредный текст, поэтому их следует проверять. Лицензия — Apache-2.0.

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

  • ответы на вопросы на македонском языке
  • создание македонского разговорного ассистента
  • генерация ответов по инструкциям на македонском языке
  • прототипирование македонскоязычных приложений
  • дообучение под специализированные задачи на македонском языке

Ограничения

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

mk-gemma-4-e4b-it

mk-gemma-4-e4b-it is an open foundation language model adapted to Macedonian and fine-tuned to follow instructions in conversation. It is built by supervised fine-tuning of mk-gemma-4-e4b-pt, which is itself a continued pre-training of Gemma 4 E4B on Macedonian text. It uses the Gemma 4 chat format.

Training

Data

The model was fine-tuned on Macedonian translations of UltraChat, a set of multi-turn dialogues generated by ChatGPT and released under the MIT licence. The training data combines

  • LVSTCK/ultrachat-sft-mk, a sample of 16,150 conversations translated with the Google Translate API and released under the MIT licence, which contains 33.8 million tokens when formatted with the model's chat template, and
  • a translation of UltraChat made by FCSE, which is not publicly released.

Each training epoch covered about 182,000 conversations, which follows from 2,842 optimizer steps per epoch at an effective batch size of 64.

The base model, mk-gemma-4-e4b-pt, was trained on LVSTCK/macedonian-corpus-cleaned-dedup, as described on its model card.

Method and Hyperparameters

The model was trained by supervised fine-tuning of mk-gemma-4-e4b-pt. The training run was scheduled for 3 epochs (8,526 optimizer steps), and the published weights are the checkpoint at step 5,500 (epoch 1.94).

HyperparameterValue
Optimizer steps5,500 of a scheduled 8,526.
Training tokens353.8 million.
Batch size per device1.
Gradient accumulation steps16.
Effective batch size64 conversations (1 per device, 16 accumulation steps, and 4 GPUs).
Maximum sequence length4,096 tokens, with longer conversations truncated at the end.
PackingNone.
LossComputed on the assistant's tokens only.
OptimizerAdamW (PyTorch implementation), with β₁ = 0.9, β₂ = 0.999, and ε = 1e-8.
Weight decay0.1.
Gradient clippingMaximum norm of 1.0.
Peak learning rate2e-5.
Learning rate scheduleLinear warmup over 3% of the scheduled steps (256 steps), then cosine decay to zero at step 8,526.
Learning rate at the checkpoint5.9e-6.
Evaluation loss at the checkpoint0.926.

Compute

Training ran on four NVIDIA A100 80 GB GPUs with Fully Sharded Data Parallel (FSDP) and took 2.36 × 10¹⁸ floating-point operations up to the checkpoint, as estimated by the Trainer. It used about 80 to 105 GPU hours up to the published checkpoint, estimated from the evaluation throughput logged during training.

Evaluation

The model, its base model, and Google's instruction-tuned Gemma 4 E4B were evaluated zero-shot on the Macedonian LLM evaluation suite, which was machine-translated from the Serbian LLM evaluation suite. The table reports accuracy with its standard error.

Benchmarkmk-gemma-4-e4b-ptgemma-4-E4B-itmk-gemma-4-e4b-it
ARC Easy0.5265 ± 0.01020.4364 ± 0.01020.5227 ± 0.0102
ARC Challenge0.3413 ± 0.01390.3097 ± 0.01350.3311 ± 0.0138
BoolQ0.7352 ± 0.00770.7489 ± 0.00760.7988 ± 0.0070
HellaSwag0.4526 ± 0.00500.3744 ± 0.00480.4703 ± 0.0050
OpenBookQA0.2940 ± 0.02040.2600 ± 0.01960.3000 ± 0.0205
PIQA0.6926 ± 0.01080.5909 ± 0.01150.6964 ± 0.0107
WinoGrande0.6014 ± 0.01380.5659 ± 0.01390.6125 ± 0.0137

Bar chart of the zero-shot accuracy of mk-gemma-4-e4b-pt, gemma-4-E4B-it, and mk-gemma-4-e4b-it on the seven benchmarks in the table above, with error bars of one standard error.

These benchmarks measure knowledge and reasoning through answer likelihoods, and they do not measure how well the model follows instructions.

Intended Use and Limitations

Intended Uses

  • The model serves as a Macedonian conversational assistant for research and prototyping.
  • The model answers questions, follows instructions, and generates text in Macedonian.
  • The model serves as a starting point for fine-tuning on Macedonian tasks.

Out-of-Scope Uses

  • The model must not be used for decisions that affect people's health, legal standing, finances, or access to services without human review.
  • The model must not be deployed to the public without a safety evaluation for the intended setting.
  • The model must not be used in breach of applicable law or to cause harm to people.

Known Limitations

  • No safety evaluation is reported for this model, and it can produce false, offensive, or harmful text.
  • The model can state incorrect facts fluently, so its output needs checking before it is relied on.
  • The published weights are an intermediate checkpoint of the training run, taken before the learning rate schedule completed.
  • The evaluation covers text only. The image and audio abilities of the model have not been evaluated for Macedonian.
  • The evaluation suite was machine-translated, so its scores include translation noise and do not measure open-ended generation.

Bias and Risks

More than 86% of the base model's pre-training corpus comes from web crawls. The model can therefore reproduce the stereotypes, biases, and inaccuracies of Macedonian web text, including those about gender, ethnicity, religion, and politics. The instruction data was generated by ChatGPT and translated into Macedonian, partly by machine translation, so the model can also reproduce the biases of that generator and the errors and unidiomatic phrasing of translation.

How to Use

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "vezilka-ai/mk-gemma-4-e4b-it"

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

messages = [{"role": "user", "content": "Кој е главниот град на Македонија?"}]
inputs = tokenizer.apply_chat_template(
    messages, add_generation_prompt=True, return_tensors="pt", return_dict=True
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=256, do_sample=True, temperature=0.7)

reply = outputs[0][inputs["input_ids"].shape[-1]:]
print(tokenizer.decode(reply, skip_special_tokens=True))

Citation

@misc{mkgemma4e4bit2026,
  title     = {{mk-gemma-4-e4b-it}: An Instruction-Tuned Language Model for {Macedonian}},
  author    = {Gajdov, Hristijan and Ristevska, Ekaterina and Veljanovski, Kiril and
               Ilioska, Veronika and Peshevski, Dimitar and Trajanov, Dimitar},
  year      = {2026},
  publisher = {Hugging Face},
  url       = {https://huggingface.co/vezilka-ai/mk-gemma-4-e4b-it}
}

Funding Acknowledgement and Disclaimer

This project has received co-funding from the European High-Performance Computing Joint Undertaking (JU) under grant agreement No 101263128. The JU receives support from the Horizon Europe research and innovation programme and from the Participating States, including the Republic of North Macedonia. Additional support is provided by the Faculty of Computer Science and Engineering, Ss. Cyril and Methodius University in Skopje, and the Ministry of Digital Transformation of North Macedonia.

Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or the European High Performance Computing Joint Undertaking (JU). Neither the European Union nor the granting authority can be held responsible for them.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
Gemma4ForConditionalGeneration
Ревизия весов
0d0f509

0 моделей