/ Модель

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

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

mk-gemma-4-e4b-pt

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

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

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

Базовая модель Gemma 4 E4B, продолженно предобученная на македонском тексте для генерации и дальнейшей настройки под македонские задачи.

mk-gemma-4-e4b-pt — базовая языковая модель, созданная Vezilka AI продолженным предобучением Gemma 4 E4B на македонском тексте. Это плотная модель семейства Gemma 4, распространяемая в форматах PyTorch и Safetensors по лицензии Apache 2.0. Модель продолжает текст по заданному фрагменту и предназначена прежде всего для дальнейшей тонкой настройки, например для создания македонских чат-моделей, моделей с выполнением инструкций или моделей для отдельных областей.

Обучение использовало македонский корпус объёмом около 1,47 млрд слов. README сообщает о нулевой оценке на македонском наборе задач, переведённом машинным способом с сербского; эти результаты относятся к тексту и не подтверждают качество на других модальностях. Хотя базовая Gemma 4 E4B поддерживает работу с изображениями и аудио, македонские способности модели на таких данных не оценивались.

Модель не настроена на следование инструкциям и не предназначена для использования как чат-ассистент без дополнительной настройки. У неё нет настройки безопасности; она может выдавать фактически неверный, оскорбительный или вредный текст, а веб-данные обучения могут содержать предвзятости. Результаты следует проверять. Лицензия модели — Apache 2.0; корпус обучения указан под CC BY 4.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-pt

mk-gemma-4-e4b-pt is an open foundation language model adapted to Macedonian. It is built by continued pre-training of Gemma 4 E4B on Macedonian text. It is a base model: it completes a given text rather than following instructions, and it is intended for further fine-tuning. It is neither instruction-tuned nor safety-tuned.

Training

Data

The model was trained on LVSTCK/macedonian-corpus-cleaned-dedup, a Macedonian corpus of 1.47 billion words (16.78 GB) released under CC BY 4.0. The corpus was filtered for quality and language, deduplicated with MinHash, and filtered for personally identifiable information, which removed email addresses, IP addresses, and phone numbers. It is described in Krsteski et al. (2025).

SourceWordsShare
FineWeb-20.73 B49.55%
HPLT-20.54 B36.87%
MaCoCu-mk 2.0 (CLARIN)0.18 B12.39%
Macedonian Wikipedia0.01 B0.83%
Other documents parsed with MMORE0.004 B0.25%
Common Voice0.002 B0.12%

Method and Hyperparameters

The model was trained by continued pre-training of the language model of Gemma 4 E4B with the Hugging Face Transformers Trainer. The vision and audio encoders are those of the base model.

HyperparameterValue
Epochs3
Optimizer steps25,596
Training tokensAbout 10.1 billion over 3 epochs (3.35 billion per epoch), estimated from the Trainer's floating-point operation count.
Sequence length8,192 tokens, with the corpus packed into full sequences.
Batch size per device1
Gradient accumulation steps16
Effective batch size48 sequences (1 per device, 16 accumulation steps, and 3 GPUs).
OptimizerAdamW (fused PyTorch implementation), with β₁ = 0.9, β₂ = 0.999, and ε = 1e-6.
Weight decay0.001
Gradient clippingMaximum norm of 1.0.
Peak learning rate2e-5
Learning rate scheduleLinear warmup over 1,500 steps, then cosine decay to zero.
Precisionbfloat16 mixed precision
Final evaluation loss1.232

Compute

Training ran on three NVIDIA A100 80 GB GPUs with Fully Sharded Data Parallel (FSDP) and took 8.96 × 10¹⁹ floating-point operations, as estimated by the Trainer. It used about 2,700 to 3,700 GPU hours, estimated from the evaluation throughput logged during training.

Evaluation

The model and its base model 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.

Benchmarkgemma-4-E4Bmk-gemma-4-e4b-pt
ARC Easy0.4958 ± 0.01030.5265 ± 0.0102
ARC Challenge0.3131 ± 0.01360.3413 ± 0.0139
BoolQ0.7645 ± 0.00740.7352 ± 0.0077
HellaSwag0.4292 ± 0.00490.4526 ± 0.0050
OpenBookQA0.2700 ± 0.01990.2940 ± 0.0204
PIQA0.6665 ± 0.01100.6926 ± 0.0108
WinoGrande0.6156 ± 0.01370.6014 ± 0.0138

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

Intended Use and Limitations

Intended Uses

  • The model serves as a base for fine-tuning Macedonian language models, such as instruction-following, chat, or domain-specific models.
  • The model supports research on language modelling for Macedonian and other low-resource languages.
  • The model can complete Macedonian text from a prompt.

Out-of-Scope Uses

  • The model is not suited to use as a chat assistant or to following instructions without further fine-tuning.
  • 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 used in breach of applicable law or to cause harm to people.

Known Limitations

  • The model has no safety tuning and 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 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 training corpus comes from web crawls (FineWeb-2 and HPLT-2). The model can therefore reproduce the stereotypes, biases, and inaccuracies of Macedonian web text, including those about gender, ethnicity, religion, and politics. The personal-information filtering removes common identifiers but cannot guarantee that no personal information remains in the corpus.

How to Use

from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline

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

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

generator = pipeline("text-generation", model=model, tokenizer=tokenizer)

prompt = "Главниот град на Македонија е "
outputs = generator(prompt, max_new_tokens=128, do_sample=True, temperature=0.7)

print(outputs[0]["generated_text"])

Citation

@misc{mkgemma4e4bpt2026,
  title     = {{mk-gemma-4-e4b-pt}: A Foundation 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-pt}
}

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
Ревизия весов
911e67c

0 моделей