Views
No views yet
HiTZ/Latxa-Qwen3-VL-8B-Instruct.HiTZ/Latxa-Qwen3-VL-8B-Instructca), Basque (eu)1Tradueix aquest text del català al basc:
2
3{source_text}1from transformers import AutoTokenizer, Qwen3VLForConditionalGeneration
2from peft import PeftModel
3
4base_model = "HiTZ/Latxa-Qwen3-VL-8B-Instruct"
5adapter = "pguerrero-igutierrez/Latxa-Qwen3-8B-Literary-v1-tokenmatched-ca-eu"
6
7tokenizer = AutoTokenizer.from_pretrained(adapter, trust_remote_code=True)
8
9model = Qwen3VLForConditionalGeneration.from_pretrained(
10 base_model,
11 device_map="auto",
12 torch_dtype="auto",
13 trust_remote_code=True,
14)
15
16model = PeftModel.from_pretrained(model, adapter)
17model.eval()
18
19source = "La bellesa és com l'alcohol o el confort, et acostumes a ella i deixes de prestar-li atenció."
20prompt = f"Tradueix aquest text del català al basc:\n\n{source}"
21
22inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
23
24outputs = model.generate(
25 **inputs,
26 max_new_tokens=256,
27 do_sample=False,
28)
29
30print(tokenizer.decode(outputs[0], skip_special_tokens=True))| Parameter | Value |
|---|---|
| Base model | HiTZ/Latxa-Qwen3-VL-8B-Instruct |
| Epochs | 3 |
| Max sequence length | 768 |
| Per-device batch size | 4 |
| Gradient accumulation | 8 |
| Learning rate | 5e-5 |
| LR scheduler | cosine |
| Warmup ratio | 0.05 |
| Seed | 42 |
| LoRA rank | 16 |
| LoRA alpha | 32 |
| LoRA dropout | 0.05 |
| Target modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
| Quantization during training | 4-bit NF4 when CUDA was available |
| Best checkpoint step | 300 |
| Best validation BLEU | 4.175 |
| Direction | chrF++ | BLEU | TER | COMET | Length ratio | Samples |
|---|---|---|---|---|---|---|
| ca → eu | 24.73 | 2.28 | 97.03 | 65.41 | 0.772 | 4,261 |
1@misc{latxa_qwen3_literary_tokenmatched_ca_eu,
2 title = {Latxa-Qwen3-8B-Literary-v1-tokenmatched-ca-eu},
3 author = {Gutierrez Fandiño, Iker and Guerrero Castelló, Paula},
4 year = {2026},
5 publisher = {Hugging Face},
6 howpublished = {\url{https://huggingface.co/pguerrero-igutierrez/Latxa-Qwen3-8B-Literary-v1-tokenmatched-ca-eu}}
7}