Downloads · 30 days
0
AMFORGE/cofos_general_tok
cofos_general_tok is a machine learning model from AMFORGE. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Specialized SentencePiece BPE tokenizer for the cofos programming and logic language model.
Downloads · 30 days
0
Access
Public
Updated Jun 3, 2026
Repo size
1.1 MB
Likes
1
Public
Click a slice to open those files.
.model539 KB · 52%
From the Hugging Face model README
Specialized SentencePiece BPE tokenizer for the cofos programming and logic language model.
identity rule) — indentation preservedKeywords (def, class, fn, struct, impl, return, async, …),
operators (==, !=, =>, ->, ::, ///, …) and structural tags
(<python>, <code>, <explanation>, …) are all guaranteed single tokens.
import sentencepiece as spm
sp = spm.SentencePieceProcessor()
sp.Load("cofos_tokenizer.model")
print(sp.EncodeAsPieces("def hello():\n return 42"))