Manuscript Offprint

arXiv:2608.30114

Manacá-1B: An Open, Reproducible Brazilian-Portuguese Language Model and a Tokenizer-Aware, Paired Evaluation

Bruno Leonardo Santos Menezes, Carlos Leonardo Souza Cardoso, Fabio Andre Machado Porto

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Brazilian Portuguese remains under-served by open language models, and the few that exist are difficult to reproduce and are often compared without measures of uncertainty. We release Manacá-1B, an open decoder-only model of 1.72 billion parameters trained from scratch for Brazilian Portuguese with a fully containerized, reproducible pipeline. The pretraining is stable, with zero skipped or NaN steps and self-recovering loss spikes, and we release its full log and dynamics. We evaluate the model against nine open baselines on four Portuguese benchmarks under a single harness. Every comparison reports a standard error and a paired significance test, and the harness is validated against previously published numbers. On last-word prediction Manacá-1B is the strongest model below the 7B scale, exceeding both Tucano-1b1 and Tucano-2b4 on LAMBADA-PT with large paired margins; it is competitive on commonsense completion and near chance on multiple-choice reasoning, as are all small base models. Along the way we document a concrete evaluation pitfall: converting a SentencePiece tokenizer with case-folding normalization to the HuggingFace fast format silently drops the normalizer, routing every capitalized token to byte-fallback and depressing scores in a way that is invisible in aggregate metrics. The uncorrected tokenizer lowered LAMBADA-PT accuracy from 45.3 to 25.0; we quantify the effect and provide a one-line fix that reproduces the training tokenizer exactly. Code, raw training and evaluation logs, per-example prediction vectors, the model weights, and the corrected tokenizer are released so that every number in this paper can be recomputed.

1 Introduction

Open language models for Brazilian Portuguese have grown in number but not yet in reproducibility or in the rigor of their evaluation. Tucano [1] and its TeenyTinyLlama predecessor [2] released model families and the GigaVerbo corpus; Sabiá adapted LLaMA to Portuguese at the 7B scale [4]; GlórIA trained a European-Portuguese decoder and introduced the CALAME-PT last-word benchmark [3]. These works advanced the field, yet three gaps persist. The training pipelines are rarely reproducible end to end, comparisons between models are usually reported as point estimates without uncertainty, and the tokenizer, which silently governs how each model reads text, is seldom audited.

We address these gaps with a model and a protocol rather than with scale. Manacá-1B is a 1.72B-parameter Brazilian-Portuguese model trained from scratch inside a containerized Megatron-LM pipeline on a curated, openly licensed corpus of about 20 billion Brazilian-Portuguese tokens, with every configuration, log, and artifact committed to a public repository. We evaluate it against nine open baselines that span three tokenizer families and two orders of magnitude in size, on four Portuguese benchmarks, under one harness, and we attach a standard error and a paired test to every comparison. We also treat the tokenizer as a first-class object of study, and we show that a common conversion step can invalidate an evaluation without leaving a visible trace.

Our contributions are the following.

  • An open, reproducible model. Manacá-1B, trained from scratch for Brazilian Portuguese, with a fully containerized pipeline and with all code, raw training and evaluation logs, and per-example prediction vectors released.

  • A rigorous comparison. Manacá-1B against nine open baselines on CALAME-PT, ARC-Challenge-PT, HellaSwag-PT, and LAMBADA-PT, under a single harness, with binomial standard errors, boot-strap confidence intervals, and paired McNemar tests, validated against published numbers.

  • A tokenizer-fidelity finding. We show that HuggingFace conversion drops the SentencePiece case-folding normalizer, quantify the resulting invisible penalty, and release a corrected tokenizer that reproduces the training tokenization exactly.