Downloads · 30 days
14
1% of all-time downloads
GaMS-Beta/GaMS-9B-SFT-Translator-DPO
GaMS-9B-SFT-Translator-DPO is a text generation model from GaMS-Beta. Use it when you need the model to write or continue text. The card lists the license as gemma.
GaMS-Beta/GaMS-9B-SFT-Translator-DPO is a fine-tuned version of GaMS-9B-SFT-Translator. Direct Preference Optimization (DPO) was performed on the original model. The learning dataset was synthetially generated by usin…
Downloads · 30 days
14
1% of all-time downloads
All-time downloads
2K
Public
Parameters
9.2B
18.5 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors18.5 GB · 100%
From the Hugging Face model README
GaMS-Beta/GaMS-9B-SFT-Translator-DPO is a fine-tuned version of GaMS-9B-SFT-Translator. Direct Preference Optimization (DPO) was performed on the original model. The learning dataset was synthetially generated by using GaMS-9B-SFT-Translator and EuroLLM-9B-Instruct.

The model can be run through pipeline API using the following code:
from transformers import pipeline
model_id = "GaMS-Beta/GaMS-9B-SFT-Translator-DPO"
pline = pipeline(
"text-generation",
model=model_id,
device_map="cuda" # replace with "mps" to run on a Mac device
)
# Example of response generation
message = [{"role": "user", "content": "Prevedi naslednje angleško besedilo v slovenščino.\nToday is a nice day."}]
response = pline(message, max_new_tokens=512)
print("Translation:", response[0]["generated_text"][-1]["content"])
For multi GPU inference set the device_map to auto:
from transformers import pipeline
model_id = "GaMS-Beta/GaMS-9B-SFT-Translator-DPO"
pline = pipeline(
"text-generation",
model=model_id,
device_map="auto"
)
# Example of response generation
message = [{"role": "user", "content": "Prevedi naslednje angleško besedilo v slovenščino.\nToday is a nice day."}]
response = pline(message, max_new_tokens=512)
print("Model's response:", response[0]["generated_text"][-1]["content"])
# Example of conversation chain
new_message = response[0]["generated_text"]
new_message.append({"role": "user", "content": "Lahko bolj podrobno opišeš ta dogodek?"})
response = pline(new_message, max_new_tokens=1024)
print("Model's response:", response[0]["generated_text"][-1]["content"])
Data for fine-tuning the original model was acquired by translating a large corpora of wikipedia articles, ccnews articles, bookcorpus texts and english conversational datasets by two models(GaMS-9B-SFT-Translator and EuroLLM-9B-Instruct) which were then ranked by some automatic metrics for translation quality and reliability.
The model was trained on the Vega HPC
The model was evaluated by our custom script on three types of data. The results are show in the following table.
| Model | Overall Comet | ccnews | nemotron | wikipedia | Bad Lang (%) | Short (%) | Bad Markdown (%) |
|---|---|---|---|---|---|---|---|
| gemini-2.5-flash | 0.717982 | 0.702981 | 0.697498 | 0.753924 | 0.35% | 0.42% | 3.70% |
| GaMS-9B-Instruct-DPO-Translator | 0.714729 | 0.708317 | 0.689316 | 0.746768 | 1.88% | 1.56% | 13.22% |
| GaMS-9B-SFT-Translator-DPO | 0.708042 | 0.702903 | 0.679462 | 0.742583 | 0.91% | 0.28% | 18.28% |
| GaMS-27B-Instruct | 0.701284 | 0.686480 | 0.680014 | 0.730733 | 27.28% | 5.36% | 62.07% |
| GaMS-9B-Instruct | 0.693659 | 0.685006 | 0.673394 | 0.723470 | 13.50% | 4.83% | 33.15% |
| EuroLLM-9B-Instruct | 0.689321 | 0.668084 | 0.670723 | 0.729227 | 8.97% | 1.89% | 35.08% |
| GaMS-9B-SFT-Translator | 0.682467 | 0.676580 | 0.673650 | 0.699602 | 5.14% | 1.48% | 30.53% |
Note - the evaluation script and evaluation data can be found in this github repo under the data_pipeline folder. See the README for more detailed instructions.
If you found this project useful in your work, please cite our paper with the following BibTeX citation:
@misc{vajda2025improvingllmsmachinetranslation,
title={Improving LLMs for Machine Translation Using Synthetic Preference Data},
author={Dario Vajda and Domen Vreš and Marko Robnik-Šikonja},
year={2025},
eprint={2508.14951},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2508.14951},
}