Felipe Castro Quiles commited on
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,64 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
---
|
| 4 |
+
# AmeriXLM
|
| 5 |
+
|
| 6 |
+
Multilingual language model pre-trained on Latin American Spanish and
|
| 7 |
+
Brazilian Portuguese, with additional coverage of English (Americas)
|
| 8 |
+
and indigenous languages of the hemisphere.
|
| 9 |
+
|
| 10 |
+
## Model Description
|
| 11 |
+
|
| 12 |
+
AmeriXLM corrects a systematic gap in existing multilingual models:
|
| 13 |
+
XLM-R and mBERT allocate training compute proportional to available
|
| 14 |
+
text volume, which underrepresents Latin American regional variants
|
| 15 |
+
even within Spanish and Portuguese allocations. AmeriXLM is trained
|
| 16 |
+
on a corpus that explicitly weights Latin American regional text.
|
| 17 |
+
|
| 18 |
+
- Architecture: RoBERTa
|
| 19 |
+
- Parameters: 270M
|
| 20 |
+
- Vocabulary: 64,000 tokens trained on regional corpus
|
| 21 |
+
- Context length: 512 tokens
|
| 22 |
+
|
| 23 |
+
## Training Data
|
| 24 |
+
|
| 25 |
+
- Brazilian Portuguese: 45B tokens (news, government, legal, web)
|
| 26 |
+
- Latin American Spanish: 38B tokens (news, government, legal, web)
|
| 27 |
+
- English Americas: 12B tokens
|
| 28 |
+
- Indigenous languages: 800M tokens (Quechua, Guarani, Nahuatl)
|
| 29 |
+
|
| 30 |
+
## Benchmark Results
|
| 31 |
+
|
| 32 |
+
| Benchmark | Score | XLM-R large baseline | Delta |
|
| 33 |
+
|-----------|-------|----------------------|-------|
|
| 34 |
+
| AmeriNLI es-LA | 83.7 | 79.4 | +4.3 |
|
| 35 |
+
| AmeriNLI pt-BR | 82.9 | 78.2 | +4.7 |
|
| 36 |
+
| RegioNER es-LA F1 | 88.2 | 86.7 | +1.5 |
|
| 37 |
+
| RegioNER pt-BR F1 | 87.6 | 85.3 | +2.3 |
|
| 38 |
+
|
| 39 |
+
## Usage
|
| 40 |
+
|
| 41 |
+
from transformers import AutoTokenizer, AutoModel
|
| 42 |
+
|
| 43 |
+
tokenizer = AutoTokenizer.from_pretrained("genia-americas/ameri-xlm")
|
| 44 |
+
model = AutoModel.from_pretrained("genia-americas/ameri-xlm")
|
| 45 |
+
|
| 46 |
+
inputs = tokenizer("Texto en español latinoamericano", return_tensors="pt")
|
| 47 |
+
outputs = model(**inputs)
|
| 48 |
+
|
| 49 |
+
## Citation
|
| 50 |
+
|
| 51 |
+
@techreport{genia2025amerixlm,
|
| 52 |
+
title={AmeriXLM: A Multilingual Language Model for the Americas},
|
| 53 |
+
author={GENIA Americas Corporation},
|
| 54 |
+
institution={GENIA Americas / RaceFor.AI},
|
| 55 |
+
year={2025},
|
| 56 |
+
url={https://github.com/GENIA-Americas/multimodal-ai-americas}
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
## Links
|
| 60 |
+
|
| 61 |
+
- Repository: https://github.com/GENIA-Americas/multimodal-ai-americas
|
| 62 |
+
- DOI: https://doi.org/10.5281/zenodo.20437260
|
| 63 |
+
- Platform: https://www.glapagos.com
|
| 64 |
+
- Network: https://www.racefor.ai
|