Views
No views yet
PortugueseT5-Instruct is an instruction-tuned intermediate checkpoint derived from
the PortugueseT5 research line. The doctoral thesis describes supervised tuning on
approximately three million Portuguese question-answer pairs derived from Wikipedia
and provided by a project partner.portuguese-openie. It is the
intermediate model described before task-specific fine-tuning of
PortugueseT5OieAbstractive.| Field | Value |
|---|---|
| Public repository | bratao/PortugueseT5-Instruct |
| Predecessor described in thesis | bratao/portugueseT5 |
| Architecture | T5 encoder-decoder |
| Task status | general Portuguese instruction-tuning intermediate |
| Parameters | 783,150,080 (approximately 783M; thesis rounds to 770M) |
| Published weight precision | float32 |
| Approximate repository size | 3.13 GB |
| Audited revision | b379913821c4e886ead8ae576db7abfa05d9da69 (2026-08-30) |
1import torch
2from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
3
4model_id = "bratao/PortugueseT5-Instruct"
5revision = "b379913821c4e886ead8ae576db7abfa05d9da69"
6tokenizer = AutoTokenizer.from_pretrained(model_id, revision=revision)
7model = AutoModelForSeq2SeqLM.from_pretrained(
8 model_id, revision=revision, dtype="auto", device_map="auto"
9)
10
11# Illustrative instruction only: the public repository does not document a stable
12# prompt template, so validate a template on your own task before relying on it.
13prompt = "Pergunta: Em qual cidade fica a UFBA?\nResposta:"
14inputs = tokenizer(prompt, return_tensors="pt", truncation=True).to(model.device)
15with torch.inference_mode():
16 output = model.generate(**inputs, max_new_tokens=64, do_sample=False)
17print(tokenizer.decode(output[0], skip_special_tokens=True))Salvador., but this is not a recorded
model output or accuracy claim. The public artifact has no documented canonical
prompt or validated response for this example.datasets and does not reproduce private examples.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}