Downloads · 30 days
0
guerreropaula/translategemma4b-sft-es-va
translategemma4b-sft-es-va is a translation model from guerreropaula. Use it when you need text moved from one language to another. It is set up for transformers. The card lists the license as gemma.
guerreropaula/translategemma4b-sft-es-va is a supervised fine-tuned adaptation of google/translategemma-4b-it for Spanish to Valencian translation. It is part of the spanish-valencian-mt-rl EAMT 2026 submission and se…
Downloads · 30 days
0
Access
Public
Updated Jun 11, 2026
Repo size
99.1 MB
Likes
0
Public
Click a slice to open those files.
.safetensors65.7 MB · 66%
From the Hugging Face model README
guerreropaula/translategemma4b-sft-es-va is a supervised fine-tuned adaptation of google/translategemma-4b-it for Spanish to Valencian translation. It is part of the spanish-valencian-mt-rl EAMT 2026 submission and serves as the foundation checkpoint for both GRPO variants in this project.
The model is trained on public Spanish-Valencian parallel data with a QLoRA setup designed for low-resource adaptation. In this project, Valencian is generated through the model's Catalan target channel because the base system does not expose a dedicated Valencian language code.
guerreropaula/translategemma4b-sft-es-vaguerreropaula/spanish-valencian-mt-rlgoogle/translategemma-4b-ites) input, Valencian/Catalan (ca) outputThis model is intended for:
It is not intended for:
The model is trained on gplsi/amic_parallel, using up to 50,000 Spanish-Valencian sentence pairs from the training split.
ESVATraining uses 4-bit QLoRA over the instruction-tuned TranslateGemma base model.
q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj2e-4paged_adamw_8bitThe model was evaluated on 1,000 sentences from gplsi/ES-VA_translation_test.
| Metric | Score |
|---|---|
| chrF | 83.16 |
| BLEU | 60.16 |
| TER | 22.80 |
| BLEURT | 0.524 |
| COMET | 0.934 |
| Dialectal Valencian Score | 41.0% |
This checkpoint substantially improves over the zero-shot baseline and obtains the strongest dialectal Valencian usage rate among the systems evaluated in the repository.
Inference in this repo is performed with the base TranslateGemma model plus the SFT adapter:
from config import Config
from utils.model import build_bnb_config, load_base_tokenizer
from utils.data import make_inference_prompt
from transformers import AutoModelForCausalLM
from peft import PeftModel
cfg = Config()
bnb = build_bnb_config(cfg)
tokenizer = load_base_tokenizer(cfg)
base_model = AutoModelForCausalLM.from_pretrained(
cfg.base_model_id,
quantization_config=bnb,
device_map="auto",
use_safetensors=True,
)
model = PeftModel.from_pretrained(base_model, cfg.sft_model_id)
prompt = make_inference_prompt("Buenos dias a todas y todos.", tokenizer, cfg)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
output = model.generate(**inputs, max_new_tokens=128, do_sample=False)
print(tokenizer.decode(output[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
This model is distributed under the Gemma license inherited from the base model google/translategemma-4b-it. Users should also review the licenses and terms of the training and evaluation datasets before redistribution or deployment.
@inproceedings{guerrero-2026-enhancing,
title = {Enhancing LLM Translation Performance for Spanish-Valencian through Supervised Fine-tuning and Reinforcement Learning},
author = {Guerrero Castello, Paula},
booktitle = {Proceedings of the 25th Annual Conference of the European Association for Machine Translation},
year = {2026}
}