Downloads · 30 days
67
10% of all-time downloads
manucif/latamgpt-1b-sft
latamgpt-1b-sft is a text generation model from manucif. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as llama3.2.
Full supervised fine-tune of meta-llama/Llama-3.2-1B on a Latin American instruction mixture, with sequence packing and assistant-only loss masking.
Downloads · 30 days
67
10% of all-time downloads
All-time downloads
640
Public
Parameters
1.5B
3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3 GB · 99%
From the Hugging Face model README
Full supervised fine-tune of meta-llama/Llama-3.2-1B on a Latin American instruction mixture, with sequence packing and assistant-only loss masking.
| Dataset | Role |
|---|---|
latam-gpt/wikipedia-qa-iberoamerica-clean | Iberoamerican QA |
latam-gpt/tulu-3-sft-mixture-no-identity-clean | General SFT mixture |
latam-gpt/sft-mcqa-unified-clean | Multiple-choice QA |
latam-gpt/self-identity-v3-clean | Self-identity |
latam-gpt/copuchatV2-clean | Chilean conversational |
After tokenization with the Llama 3 chat template and FFD packing at 4096 tokens (99.16% packing efficiency), the training set is 175,995 packed sequences (~721M tokens) with 119,573 validation examples.
meta-llama/Llama-3.2-1B| Metric | Value |
|---|---|
train_loss | 0.8579 |
eval_loss | 0.8910 |
epoch | 2.0 |
train_samples | 175,995 |
from transformers import AutoTokenizer, AutoModelForCausalLM
tok = AutoTokenizer.from_pretrained("latam-gpt/latamgpt-1b-sft")
model = AutoModelForCausalLM.from_pretrained("latam-gpt/latamgpt-1b-sft", torch_dtype="bfloat16", device_map="auto")
messages = [{"role": "user", "content": "¿Cuál es la capital de Chile?"}]
inputs = tok.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
out = model.generate(inputs, max_new_tokens=256, do_sample=True, temperature=0.7)
print(tok.decode(out[0][inputs.shape[-1]:], skip_special_tokens=True))
Inherits the Llama 3.2 Community License from the base model.