Views
No views yet
portugueseT5 is a Portuguese encoder-decoder research checkpoint trained from
scratch with the architecture and configuration of
google/t5-v1_1-large. The doctoral
thesis describes pre-training on a 20% sample of GigaVerbo.portuguese-openie. For OpenIE, use
bratao/PortugueseT5Oie or bratao/PortugueseT5OieAbstractive and their documented
task prompt.| Field | Value |
|---|---|
| Public repository | bratao/portugueseT5 |
| Architecture reference | google/t5-v1_1-large |
| Architecture | T5 encoder-decoder, 24 encoder and 24 decoder layers, GEGLU |
| Task status | Portuguese pre-training checkpoint; no task-specific contract |
| Parameters in published configuration | 783,150,080 (approximately 783M) |
| Published weight precision | bfloat16 |
| Approximate repository size | 1.57 GB |
| Audited revision | 96e9ee96be4f6fedcfece958f74e895b19352acf (2026-08-30) |
1import torch
2from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
3
4model_id = "bratao/portugueseT5"
5revision = "96e9ee96be4f6fedcfece958f74e895b19352acf"
6tokenizer = AutoTokenizer.from_pretrained(model_id, revision=revision)
7model = AutoModelForSeq2SeqLM.from_pretrained(
8 model_id,
9 revision=revision,
10 dtype="auto",
11 device_map="auto",
12)
13
14# This is only a low-level generation example. The base checkpoint has no
15# documented instruction or OpenIE prompt contract.
16text = "A UFBA está localizada em Salvador."
17inputs = tokenizer(text, return_tensors="pt", truncation=True).to(model.device)
18with torch.inference_mode():
19 output = model.generate(**inputs, max_new_tokens=64, do_sample=False)
20decoded = tokenizer.decode(output[0], skip_special_tokens=True)
21print(decoded) # plain generated text; content is not guaranteeddatasets.PortugueseT5Oie family
members must not be transferred to this artifact. Treat it as an intermediate
research checkpoint that requires task-specific evaluation.1@phdthesis{cabral2025evolving,
2 author = {Cabral, Bruno Souza},
3 title = {Evolving Open Information Extraction for Portuguese employing Language Models},
4 school = {Universidade Federal da Bahia},
5 year = {2025}
6}
7
8@inproceedings{cabral2022portnoie,
9 author = {Cabral, Bruno and Souza, Marlo and Claro, Daniela Barreiro},
10 title = {PortNOIE: A Neural Framework for Open Information Extraction for the Portuguese Language},
11 booktitle = {Computational Processing of the Portuguese Language (PROPOR 2022)},
12 year = {2022},
13 doi = {10.1007/978-3-030-98305-5_23}
14}