Run this model with HF Jobs
Run vezilka-ai/VezilkaLLM on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/vezilka-ai/VezilkaLLM. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/vezilka-ai/VezilkaLLM on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/vezilka-ai/VezilkaLLM. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/vezilka-ai/VezilkaLLM. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use vezilka-ai/VezilkaLLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use vezilka-ai/VezilkaLLM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="vezilka-ai/VezilkaLLM")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("vezilka-ai/VezilkaLLM") model = AutoModelForCausalLM.from_pretrained("vezilka-ai/VezilkaLLM", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use vezilka-ai/VezilkaLLM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "vezilka-ai/VezilkaLLM" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "vezilka-ai/VezilkaLLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/vezilka-ai/VezilkaLLM
- SGLang
How to use vezilka-ai/VezilkaLLM with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "vezilka-ai/VezilkaLLM" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "vezilka-ai/VezilkaLLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "vezilka-ai/VezilkaLLM" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "vezilka-ai/VezilkaLLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use vezilka-ai/VezilkaLLM with Docker Model Runner:
docker model run hf.co/vezilka-ai/VezilkaLLM
VezilkaLLM
VezilkaLLM is an open foundation language model adapted to Macedonian. It is built by continued pre-training of Gemma 3 4B on a 1.47-billion-word Macedonian corpus. 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.
| Developer | The project "Utilizing AI and National Large Language Models to Advance Macedonian Language Capabilities" coordinated by the Faculty of Computer Science and Engineering (FCSE) at Ss. Cyril and Methodius University in Skopje. |
| Release Date | April 2025 |
| Version | 1.0.0 |
| Model Size | 3.88 billion parameters, stored in bfloat16. |
| Architecture | The Gemma 3 text decoder (Gemma3ForCausalLM), without the vision encoder of the base model. |
| Language | Macedonian |
| Licence | Gemma Terms of Use, inherited from the base model. |
| Contact | contact@finki.ukim.mk |
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).
| Source | Words | Share |
|---|---|---|
| FineWeb-2 | 0.73 B | 49.55% |
| HPLT-2 | 0.54 B | 36.87% |
| MaCoCu-mk 2.0 (CLARIN) | 0.18 B | 12.39% |
| Macedonian Wikipedia | 0.01 B | 0.83% |
| Other documents parsed with MMORE | 0.004 B | 0.25% |
| Common Voice | 0.002 B | 0.12% |
Method and Hyperparameters
The model was trained by continued pre-training with the Hugging Face
Transformers Trainer, using a context window of 8,192 tokens.
Compute
Training ran on a single NVIDIA H100 GPU.
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.
| Benchmark | gemma-3-4b-pt | VezilkaLLM |
|---|---|---|
| ARC Easy | 0.4747 ± 0.0102 | 0.5324 ± 0.0102 |
| ARC Challenge | 0.2858 ± 0.0132 | 0.3072 ± 0.0135 |
| BoolQ | 0.7471 ± 0.0076 | 0.7333 ± 0.0077 |
| HellaSwag | 0.3859 ± 0.0049 | 0.4139 ± 0.0049 |
| OpenBookQA | 0.2540 ± 0.0195 | 0.2660 ± 0.0198 |
| PIQA | 0.6224 ± 0.0113 | 0.6529 ± 0.0111 |
| WinoGrande | 0.5919 ± 0.0138 | 0.5975 ± 0.0138 |
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.
- Any use that the Gemma Prohibited Use Policy forbids is out of scope.
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 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.
How to Use
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
model_id = "vezilka-ai/VezilkaLLM"
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{vezilkallm2025,
title = {{VezilkaLLM}: A Foundation Language Model for {Macedonian}},
author = {Peshevski, Dimitar and Peovski, Borjan and Mishev, Kostadin and
Simjanoska Misheva, Monika and Stojanov, Riste and Trajanov, Dimitar},
year = {2025},
publisher = {Hugging Face},
url = {https://huggingface.co/vezilka-ai/VezilkaLLM}
}
Funding Acknowledgement
This model was developed within the project "Utilizing AI and National Large Language Models to Advance Macedonian Language Capabilities", with the financial support of the Ministry of Education and Science of the Republic of North Macedonia.
- Downloads last month
- 261
