Text Generation
Transformers
Safetensors
Greek
English
apertus
greek
glossapi
instruct
sft
chat
v0.5-preview
card-eval-20261001
public-three-benchmarks
conversational
Eval Results (legacy)
Instructions to use glossAPI/greek-apertus-8b-instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use glossAPI/greek-apertus-8b-instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="glossAPI/greek-apertus-8b-instruct") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("glossAPI/greek-apertus-8b-instruct") model = AutoModelForCausalLM.from_pretrained("glossAPI/greek-apertus-8b-instruct", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use glossAPI/greek-apertus-8b-instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "glossAPI/greek-apertus-8b-instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "glossAPI/greek-apertus-8b-instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/glossAPI/greek-apertus-8b-instruct
- SGLang
How to use glossAPI/greek-apertus-8b-instruct 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 "glossAPI/greek-apertus-8b-instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "glossAPI/greek-apertus-8b-instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "glossAPI/greek-apertus-8b-instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "glossAPI/greek-apertus-8b-instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use glossAPI/greek-apertus-8b-instruct with Docker Model Runner:
docker model run hf.co/glossAPI/greek-apertus-8b-instruct
Greek Apertus 8B Instruct v0.5
Greek Apertus is an 8B instruction model based on Apertus 8B.
Greek continued pre-training followed by general instruction, Greek maths and conversation fine-tuning. Greek-extended vocabulary: 148,992 tokens.
Benchmarks
Accuracy (%).
| Model | GreekMMLU | Greek IFEval | Greek GSM8K |
|---|---|---|---|
| Krikri 1.0 | 67.94 | 63.77 | 71.72 |
| Krikri 1.5 | 67.69 | 54.90 | 73.01 |
| Apertus Instruct | 66.50 | 54.90 | 56.18 |
| Greek Apertus — general instruction tuning | 69.95 | 67.28 | 54.21 |
| Greek Apertus Instruct | 70.52 | 65.80 | 59.67 |
Training
| Stage | Checkpoint | Data |
|---|---|---|
| 1 | Stage 1 | Supervised mixtures |
| 2 | Stage 2 | Greek maths |
| 3 | Stage 3 | Greek conversations |
Repositories and checkpoints
| Resource | Links |
|---|---|
| Greek base | Repository |
| Pre-training data | Repository |
| SFT data | Repository |
| Post-training data | Repository |
| Original Apertus | Repository |
| Tokenizer | Repository |
Licence
Apache-2.0 for the model weights.
Acknowledgements
This work was implemented thanks to a grant by Swiss AI for compute on CSCS.
Collection: Greek Apertus 8B.
- Downloads last month
- -
Model tree for glossAPI/greek-apertus-8b-instruct
Base model
swiss-ai/Apertus-8B-2509 Finetuned
glossAPI/apertus-8b-greek-cptDatasets used to train glossAPI/greek-apertus-8b-instruct
Updated • 33
glossAPI/apertus-8b-greek-cpt-modern-greek-train
Viewer • Updated • 49.6M • 27
glossAPI/greek-apertus-sft-data
Preview • Updated • 27
Collection including glossAPI/greek-apertus-8b-instruct
Evaluation results
- accuracy (%) on GreekMMLU (official, no chat template)self-reported70.520
- accuracy (%) on IFEval-el (prompt-strict)self-reported65.800
- accuracy (%) on GSM8K-elself-reported59.670