Downloads · 30 days
12
16% of all-time downloads
vreabernardo/ode-pessoana
ode-pessoana is a text generation model from vreabernardo. Use it when you need the model to write or continue text. The card lists the license as cc-by-sa-4.0.
A small (~10.7M-parameter) character-level GPT, trained from scratch in tinygrad on the Pessoana corpus of Portuguese classic literature. It writes Portuguese prose and verse one character at a time.
Downloads · 30 days
12
16% of all-time downloads
All-time downloads
74
Public
Parameters
10.8M
45.4 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors43.1 MB · 97%
From the Hugging Face model README
A small (~10.7M-parameter) character-level GPT, trained from scratch in tinygrad on the Pessoana corpus of Portuguese classic literature. It writes Portuguese prose and verse one character at a time.

meta.pkl).model.py).
The model ships with its architecture (model.py) and a sampler (sample.py):
pip install tinygrad numpy huggingface_hub
huggingface-cli download vreabernardo/ode-pessoana --local-dir ode-pessoana
cd ode-pessoana
python sample.py --prompt "A cidade" --tokens 500 --temperature 0.8
model.safetensors holds the weights; config.json the dimensions; meta.pkl the
character vocabulary for encode/decode.
Prompt "A cidade":
A cidade da camisa me faz ali perdão; é para me lembrar o que me diz em que casada,
se me engendrara. Eu não custaria a minha graça, a ser só a sua...»
A RAINHA
— Mas é assim. De mim não te amendo a distância, com filha, as manas, se opusesse de si.
D. LANCEROTE
— Se pensar o meu quarto, que agradecesse o rei...
D. TIBÚRCIO
— Continuou ela. E eu não o quis que me disse que eu fosse a torre a catarra.
Pessoana — 84 public-domain works of Portuguese and Brazilian classic literature (Eça de Queirós, Machado de Assis, Camilo Castelo Branco, Florbela Espanca, Fernando Pessoa…), from Projecto Adamastor, under CC BY-SA 4.0.
A character-level model of this size learns Portuguese spelling, morphology, dialogue formatting, and literary rhythm, but not factual or long-range semantic coherence — the output reads like Portuguese literature without meaning much. It uses pre-1990 orthography.
CC BY-SA 4.0, inheriting the ShareAlike terms of the training corpus.
@misc{vrea2026odepessoana,
title = {ode: A Character-Level GPT for Portuguese Literature},
author = {Vrea, Bernardo},
year = {2026},
publisher = {Hugging Face},
url = {https://huggingface.co/vreabernardo/ode-pessoana}
}