Downloads · 30 days
9
12% of all-time downloads
ludolara/aya-vision-32b-americas
aya-vision-32b-americas is a text generation model from ludolara. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as cc-by-nc-4.0.
ludolara/aya-vision-32b-americas is a LoRA adapter for Aya Vision 32B trained as the machine-translation stage (SFT (MT)) of the AmericasNLP 2026 system pipeline. It adapts the base VLM to generate Spanish and Indigen…
Downloads · 30 days
9
12% of all-time downloads
All-time downloads
76
Public
Repo size
415 MB
Likes
0
Public
Click a slice to open those files.
.safetensors395 MB · 95%
From the Hugging Face model README
ludolara/aya-vision-32b-americasludolara/aya-vision-32b-americas is a LoRA adapter for Aya Vision 32B trained as the machine-translation stage (SFT (MT)) of the AmericasNLP 2026 system pipeline. It adapts the base VLM to generate Spanish and Indigenous-language text for Bribri, Guarani, Nahuatl, and Wixárika.
ludolara)es), Bribri (bzd), Guarani (grn/gn), Nahuatl (nah), Wixárika (hch)cc-by-nc-4.0 (inherits base-model license and usage constraints)CohereLabs/aya-vision-32bSFT (IC) captioning training.RLVR (MT) / GRPO refinement.Use the code below to run this adapter on top of Aya Vision 32B.
import torch
from peft import PeftModel
from transformers import AutoModelForImageTextToText, AutoProcessor
base_model_id = "CohereLabs/aya-vision-32b"
adapter_id = "ludolara/aya-vision-32b-americas"
processor = AutoProcessor.from_pretrained(base_model_id, trust_remote_code=True)
model = AutoModelForImageTextToText.from_pretrained(
base_model_id,
trust_remote_code=True,
torch_dtype=torch.bfloat16,
device_map="auto",
)
model = PeftModel.from_pretrained(model, adapter_id)
model.eval()
prompt = "Traduce del español al wixárika. La casa está lejos del pueblo."
messages = [{"role": "user", "content": [{"type": "text", "text": prompt}]}]
text = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = processor(text=text, return_tensors="pt").to(model.device)
with torch.inference_mode():
out = model.generate(**inputs, max_new_tokens=128)
print(processor.decode(out[0], skip_special_tokens=True))
Machine-translation stage (SFT (MT)) uses Spanish-Indigenous parallel resources for:
bzd)grn)nah)hch)The system description references resources including Axolotl (Spanish-Nahuatl), Guarani-Spanish corpora, a Bribri back-translation resource, a Wixárika resource, and additional AmericasNLP shared-task materials.
configs/lora_sft.yaml):
60 (early-stopped around 6.8 epochs in paper)2e-50.030.0132125632 / 64 / 0.14 x H100 GPUs on a Slurm cluster.bzd, grn, hch, nah)SPA->XXX, XXX->SPA)Reported for this stage (SFT (MT)) in the paper:
| Direction | BZD | GRN | HCH | NAH |
|---|---|---|---|---|
| SPA->XXX | 24.22 | 29.39 | 27.69 | 26.39 |
| XXX->SPA | 33.45 | 38.17 | 30.14 | 31.95 |
This adapter establishes the translation-capable initialization used by later captioning models. It is intended as an intermediate checkpoint in the multi-stage pipeline.
No dedicated interpretability analysis was reported.
Carbon emissions can be estimated with the Machine Learning Impact calculator.
q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj)DeepSpeed ZeRO-3 distributed setup via Slurm + Accelerate wrappers.
torch>=2.2.0transformers>=4.46.0datasets>=2.21.0accelerate>=0.34.0deepspeed>=0.16.0trl>=0.11.0peft 0.18.1huggingface_hub>=0.26.0BibTeX:
@inproceedings{lara-americasnlp-2026,
title = "From Machine Translation to Image Captioning: Training Vision-Language Models for {I}ndigenous Languages of the {A}mericas",
author = {Lara, Luis and
Raval, Param},
booktitle = "Proceedings of the Sixth Workshop on NLP for Indigenous Languages of the Americas (AmericasNLP)",
month = jul,
year = "2026",
address = "San Diego, California",
publisher = "Association for Computational Linguistics",
}
APA:
Lara, L., & Raval, P. (2026). From Machine Translation to Image Captioning: Training Vision-Language Models for Indigenous Languages of the Americas. AmericasNLP 2026.
This checkpoint is part of a staged research pipeline. For final shared-task captioning submissions, see the captioning adapters in the same namespace.
Luis Lara (maintainer), with model-card synthesis from project documentation and system paper.