/ Модель

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

Лицензия
CC BY-NC-SA 4.0
Базовая модель
Qwen3-4B
Опубликована
12 сен 2025

Racka-4B

Генерация текстаТекст → текст3 профессии

Racka-4B — компактная дообученная модель на базе Qwen3-4B, оптимизированная для венгерского языка и периферийных сценариев.

773скачиваний за 30 дней41лайквеса обновлены15 июл 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

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

Racka-4B — языковая модель, разработанная факультетами гуманитарных наук и информатики Университета Этвёша Лоранда (ELTE). Это адаптация Qwen/Qwen3-4B с непрерывным предобучением через LoRA и расширенным на 32 000 токенов венгерским словарём. Модель насчитывает около 4 млрд параметров; её контекст составляет 32 768 токенов, с YaRN — до 131 072 токенов.

Модель предназначена прежде всего для венгерского языка: для компактных задач на периферийных устройствах, few-shot-сценариев и дальнейшей настройки под конкретные задачи. Обучающий корпус содержит 160 млрд токенов: 44% венгерских, 24% английских, 21% немецких и 11% кода. По оценке авторов, адаптация токенизатора сократила число подслов на венгерский текст примерно на 47%; при этом для английского и немецкого показатель токенизации ухудшился относительно Qwen3-4B. Сохраняются диалоговые возможности и рассуждения на английском, но они не были прямой целью обучения.

Модель не прошла выравнивание и может быть небезопасна для использования конечными пользователями. Она не рассчитана на сложные или ресурсоёмкие рассуждения; авторы рекомендуют для них модели от 27–30 млрд параметров. Лицензия CC BY-NC-SA 4.0 запрещает коммерческое и иное коммерческое использование.

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

  • генерация и продолжение текста на венгерском языке
  • few-shot-решение задач на понимание венгерского текста
  • адаптация компактной языковой модели под прикладную задачу на венгерском
  • диалоговые сценарии на венгерском, английском и немецком
  • запуск компактной языковой модели на периферийном устройстве

Ограничения

Модель не прошла выравнивание и авторы предупреждают, что её небезопасно использовать напрямую с конечными пользователями. Она ориентирована на компактные задачи, а коммерческое использование запрещено лицензией CC BY-NC-SA 4.0.

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

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

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

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

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

Открыть на Hugging Face

Racka-4B Model Card

Racka (Regionális Adatokon Célzottan Kialakított Alapmodell) is a continually pretrained large language model designed to bridge the resource gap between Hungarian and high-resource languages. It employs parameter-efficient continual pretraining via Low-Rank Adaptation (LoRA) on a Qwen3-4B (reasoning/instruct) backbone.

The model was trained on a mixture of 160B tokens (44% Hungarian, 24% German, 21% English, 11% Code) on the Komondor HPC. To better match the training distribution, Racka uses an adapted tokenizer that achieves substantially improved tokenization fertility for Hungarian while maintaining competitive performance in English and German.

For additional details, please see our paper in the MSZNY2026 proceedings: https://rgai.inf.u-szeged.hu/sites/rgai.inf.u-szeged.hu/files/mszny2026.pdf

To learn more about the details of our project, please check our FAQ.

Model Details

  • Developed by: ELTE Faculty of Humanities (Dept. of Digital Humanities) & ELTE Faculty of Informatics (Dept. of Artificial Intelligence)
  • Backbone Model: Qwen/Qwen3-4B (Reasoning/Instruct version)
  • Language(s): Hungarian (primary), English, German, Code
  • License: cc-by-nc-sa-4.0
  • Architecture: Transformer with LoRA adapters (Rank=64, Alpha=128)
  • Training Context Length: 4,096 tokens (with sequence packing)
  • Context Length (Inference): 32,768 natively and 131,072 tokens with YaRN
  • Intended use case: Low-complexity edge tasks, optimized few-shot pipelines, task-specific Hungarian fine-tuning.

Usage

For edge/mobile inference, check out our quantized models in the GGUF format: Racka-4B-GGUF

Hugging Face Transformers

from transformers import AutoModelForCausalLM, AutoTokenizer, GenerationConfig

model_name = "elte-nlp/Racka-4B"

# load the tokenizer and the model
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
    model_name,
    torch_dtype="auto",
    device_map="auto"
)

messages = [
    {"role": "system", "content": "You are a helpful Hungarian assistant."},
    {"role": "user", "content": "Magyarázd el a gépi tanulás lényegét óvodásoknak egy mondatban!"}
]
text = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True,
    enable_thinking=True # Switches between thinking and non-thinking modes. Default is True.
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)


generation_config = GenerationConfig(
    do_sample=True,
    temperature=0.6,
    top_p=0.8,
    top_k=50,
    repetition_penalty=1.1,
    presence_penalty=1.1,
)

# conduct text completion
generated_ids = model.generate(
    input_ids = model_inputs["input_ids"],
    attention_mask = model_inputs["attention_mask"],
    max_new_tokens=32768,
    generation_config=generation_config
)
output_ids = generated_ids[0][len(model_inputs.input_ids[0]):].tolist() 

# parsing thinking content
try:
    # rindex finding 151668 (</think>)
    index = len(output_ids) - output_ids[::-1].index(151668)
except ValueError:
    index = 0

thinking_content = tokenizer.decode(output_ids[:index], skip_special_tokens=True).strip("\n")
content = tokenizer.decode(output_ids[index:], skip_special_tokens=True).strip("\n")

print("thinking content:", thinking_content)
print("content:", content)

vLLM

vllm serve elte-nlp/Racka-4B --tokenizer elte-nlp/Racka-4B --dtype float16 --rope-scaling '{"rope_type":"yarn","factor":4.0,"original_max_position_embeddings":32768}' --max-model-len 131072 --reasoning-parser qwen3

Technical Details

Training Data

The model was trained on a 160B token corpus designed to mitigate catastrophic forgetting via data replay:

LanguageBPE TokensRatioSources
Hungarian~70B44%Common Crawl (heavily filtered), News, Wikipedia, Court Rulings, Subtitles, Academic Repositories.
English~38B24%The Pile, FineWeb.
German~34B21%Occiglot-FineWeb.
Code~18B11%The Stack v2.

Tokenizer Adaptation

The vocabulary was extended by 32,000 new Hungarian tokens initialized via VIPI (Vocabulary Initialization with Partial Inheritance). This reduced Hungarian subword fertility by ~47%. This fertility reduction results in proportional processing time reduction.

LanguageQwen-3 4B FertilityRacka-4B FertilityChange
Hungarian3.131.66-46.96%
English1.571.94+23.44%
German2.052.31+12.62%

Training Configuration

  • Infrastructure: Komondor HPC (64 \( \times \) NVIDIA A100 40GB).
  • Training time: 287 hours (total GPU time: 2.1 years)
  • Strategy: Distributed Data Parallel (DDP).
  • Parameters:
    • LoRA Rank: 64, Alpha: 128, Dropout: 0.1.
    • Learning Rate: \( 1\times10^{-4} \) (LoRA), \( 5\times10^{-5} \) (Non-LoRA).
    • Batch Size: 2 per GPU (Effective batch size: 512).
    • Steps: 326,357.

Evaluation

The following tables present the performance of Racka-4B compared to its base models (Qwen3-4B and Qwen3-4B-Base) and the SOTA 8B Hungarian model PULI-LlumiX-Llama-3.1 8B.

1. HULU Benchmark (Fine-tuned)

Performance on the Hungarian Language Understanding (HULU) benchmark suite. Results represent the average of multiple runs, taking the best result between LoRA and full fine-tuning.

DatasetMetricQwen3-4BRacka-4BQwen3-4B-BasePULI-LlumiX-Llama-3.1 8B
HuCOLAACC0.81090.86240.82540.8989
MCC0.34820.56570.40440.6920
F10.78400.85630.80270.8969
HuCOPAACC0.55890.79900.58450.9359
MCC0.11810.59980.17050.8720
F10.55840.79880.58370.9359
HuSSTACC0.75170.76030.75390.7804
MCC0.50220.51370.50820.5598
F10.74330.75110.75130.7698
HuRTEACC0.90780.87900.88720.8979
MCC0.81420.75530.77190.7936
F10.90780.87900.88720.8977
HuWNLIACC0.50330.56660.53660.3800
MCC-0.09800.1031-0.0600-0.2815
F10.38620.45480.40690.3668
HuCBACC0.73780.63880.62910.4854
MCC0.60780.47410.47330.2742
F10.73160.63730.61120.4594
OverallAvg ACC0.7110.7510.7020.729
Avg MCC0.3820.5020.3780.485
Avg F10.6850.72950.6730.721

2. OpenHuEval

Evaluation on Hungarian reading comprehension, generation, and reasoning tasks. Qwen and Racka models use a patched implementation of OpenHuEval for compatibility.

MetricQwen3-4BRacka-4BQwen3-4B-BasePULI-LlumiX 8B
HuWildBench (WBScore)63.0357.1752.5917.77
HuSimpleQA (Acc)7.3010.055.9020.03
HuProverbRea (Acc OE)62.4761.9441.1575.86
HuProverbRea (Acc 2CQ)74.9877.530.0077.36
HuMatchingFIB (B Acc)39.5938.9342.3033.54
HuMatchingFIB (Q Acc)5.944.685.583.96
HuStandardFIB (B Acc)13.2018.980.0029.16
HuStandardFIB (Q Acc)1.082.150.002.15
Overall33.4433.9318.4432.47

3. LM-Eval-Harness (Hungarian)

Few-shot evaluation on standard benchmarks translated to Hungarian. Best results are kept (with chat template for Racka-4B and without for others).

Dataset (Metric)Qwen3-4BRacka-4BQwen3-4B-BasePULI-LlumiX 8B
Arc_hu (Acc)0.32020.34500.37920.3861
Arc_hu (Acc_norm)0.38440.41010.41690.4323
Hellaswag_hu (Acc)0.33690.36560.36100.4241
Hellaswag_hu (Acc_norm)0.40950.45100.45570.5606
MMLU_hu (Acc)0.54270.53780.59650.5310
TruthfulQA_hu_mc1 (Acc)0.31770.36440.32810.3035
TruthfulQA_hu_mc2 (Acc)0.51020.54930.50450.4883
GSM8K_hu (Strict-match)0.63300.52990.63980.4761
GSM8K_hu (Flexible extract)0.62850.53290.64210.4791
Overall0.4530.4540.48050.4546

Limitations

  • The model is capable of both instruction following chat and English reasoning using the original Qwen settings, this is a preserved capability with no direct training targetting this functionality.
  • The model has not been aligned and is unsafe for use with end-users.
  • This model is only to be used for research purposes, commercial or for-profit usage is not permitted.

Team

In alphabetical order:

  • Zsolt Csibi (ELTE-IK, AI Dept.)
  • Bence Gortka (ELTE-BTK, DH-Lab)
  • Natabara Gyöngyössy (ELTE-IK, AI Dept.)
  • Kornél Nagy (ELTE-BTK, DH-Lab)
  • Dávid Nemeskey (ELTE-BTK, DH-Lab)
  • Gábor Palkó (ELTE-BTK, DH-Lab)
  • Martin Sallai (ELTE-BTK, DH-Lab)
  • András Simonyi (ELTE-IK, AI Dept.)
  • András Szekeres (ELTE-BTK, DH-Lab)

Acknowledgements

We acknowledge the Digital Government Development and Project Management Ltd. for awarding us access to the Komondor HPC facility based in Hungary.

This research was supported by the EKÖP-24 University Excellence Scholarship Program of the Ministry for Culture and Innovation, funded by the National Research, Development and Innovation Fund.

The authors acknowledge the support of the National Laboratory for Digital Heritage. Project no. 2022-2.1.1-NL-2022-00009 has been implemented with the support provided by the Ministry of Culture and Innovation of Hungary from the National Research, Development and Innovation Fund, financed under the 2022-2.1.1-NL funding scheme.

We would like to thank Levente Szabados for the name idea and initial informal discussions.

Citation

@inproceedings{csibi2026racka,
  title     = {Racka: Efficient Hungarian LLM Adaptation on Academic Infrastructure},
  author    = {Csibi, Zsolt and Gortka, Bence Gy{\"o}rgy and Gy{\"o}ngy{\"o}ssy, Natabara and Nagy, Korn{\'e}l and Nemeskey, D{\'a}vid M{\'a}rk and Palk{\'o}, G{\'a}bor and Sallai, Martin and Simonyi, Andr{\'a}s and Szekeres, Andr{\'a}s M{\'a}rk},
  booktitle = {XXII. Magyar Sz{\'a}m{\'\i}t{\'o}g{\'e}pes Nyelv{\'e}szeti Konferencia (MSZNY 2026)},
  year      = {2026},
  address   = {Szeged, Hungary},
  pages     = {17--38},
  url       = {https://rgai.inf.u-szeged.hu/sites/rgai.inf.u-szeged.hu/files/mszny2026.pdf}
}

FAQ

Q: Is this model intended for use as a general-purpose chat agent?

A: No. While Racka-4B currently stands as one of the highest-scoring small/edge models on Hungarian benchmarks, it remains a compact, edge-oriented model. Conducting a full language adaptation for larger architectures would demand computing infrastructure beyond the Komondor HPC (AI training is just really expensive on the large scale).

Our team is actively working on adapting larger models; in the meantime, we recommend utilizing models of at least 27B–30B parameters for complex or resource-heavy reasoning tasks.


Q: Why is this a gated-access model with a restricted license?

A: Due to Hungarian and EU regulations, as well as the licensing terms of our source data, certain components of our training corpus cannot be used to generate derivative works for commercial or for-profit activities.

The volume of globally available, high-quality Hungarian text data remains limited. Restricting our training data exclusively to open, unrestricted corpora would not have yielded a sufficient dataset for effective language adaptation. Consequently, we require users to fill in an access agreement confirming the model will be used strictly for non-profit purposes. We believe the academic and non-profit communities will still derive value from this work.


Q: What kind of financial funding did this project receive?

A: As noted in our acknowledgements, our team consists of AI researchers and enthusiasts who volunteered their time. We did not receive dedicated financial funding or grants to build this model. Instead, the project was made possible through institutional and operational support:

  • Worktime Allocations & Academic Grants: Several ELTE researchers and PhD students were permitted to dedicate official university hours and existing fellowship time to this initiative.
  • Compute & HPC Access: Our academic project proposal was accepted by the Komondor HPC team (this is a public opportunity available to all Hungarian academics), granting us vital GPU time. The facility's engineering team also provided essential, specialized HPC support.
  • Voluntary Contribution: Driven by a shared passion for open-source NLP, project members frequently dedicated their personal time to bring this model to completion.

Q: How would you improve on your model?

A: The current model has undergone continual pre-training during language adaptation, but it has not been through any SFT or alignment steps, which are required for highly capable models. Our aim is to translate, create and synthetize higher complexity datasets as part of our next projects. This will allow us to train models that are more capable in everyday use cases.

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

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

GPU в ailist

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

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

Доступ к модели ограничен автором; у платформы нет доступа к весам.

Ревизия весов
e1cb2e8

0 моделей