Downloads · 30 days
0
nfeliperealbr/hpt-v2-tokenizer
hpt-v2-tokenizer is a machine learning model from nfeliperealbr. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Brazilian AI Tokenizer — SentencePiece BPE 32K
Downloads · 30 days
0
Access
Public
Updated Apr 29, 2026
Repo size
547 KB
Likes
0
Public
Click a slice to open those files.
.model547 KB · 50%
From the Hugging Face model README
Brazilian AI Tokenizer — SentencePiece BPE 32K
Bilingual (Portuguese + English) + Code tokenizer for HPT v2 (118M params).
Trained on:
| Token | ID | Usage |
|---|---|---|
<pad> | 0 | Padding |
<s> | 1 | BOS |
</s> | 2 | EOS |
<unk> | 3 | Unknown |
| `< | user | >` |
| `< | assistant | >` |
| `< | system | >` |
| `< | thinking | >` |
| `< | /thinking | >` |
import sentencepiece as spm
sp = spm.SentencePieceProcessor()
sp.Load("tokenizer/hpt_tokenizer.model")
# Encode
ids = sp.EncodeAsIds("Oi, tudo bem?")
# Decode
text = sp.DecodeIds(ids)
NeuralSpark Labs 🇧🇷