- ๐ซ๐ท gpTommy-32k-FR โ Native 32,768-Token Vocabulary & Tokenizer v2 for Franรงais (French) (Francese)
- ๐ Tokenizer v2 Update & Corrections Log (7 November 2026)
- ๐ Sentinel gpTommy 32k European Language Suite & R-08 Models
- ๐ฏ Why
gpTommy-32k-FRis Different from Statistical Subword Tokenizers - ๐ Card-Index Architecture: The 5-Digit
SSvvvSystem - ๐ Breakdown of the 32,768 Tokens (
32k= Vocabulary Size) - ๐ Quick Usage in Python โ Tokenizer v2 (Zero External Dependencies)
- ๐ก๏ธ License & Attribution
- ๐ Tokenizer v2 Update & Corrections Log (7 November 2026)
๐ซ๐ท gpTommy-32k-FR โ Native 32,768-Token Vocabulary & Tokenizer v2 for Franรงais (French) (Francese)
Deterministic 32,768-token (
32k) lexical vocabulary and Tokenizer v2 (Implicit Space + 100% Lossless Case) specifically engineered for the Franรงais (French) (fr) language.
Author & Creator: Thomas Seri (Sentinel)
Reference Ecosystem: Sentinel LifeOS & Sentinel R-08 Geodesic Model Family
๐ Tokenizer v2 Update & Corrections Log (7 November 2026)
This repository now includes Tokenizer v2 (v2.0.0, implicit_space=True by default), which eliminates wasted single-space tokens between words and preserves 100% lossless capitalization, while keeping optional implicit_space=False compatibility for v1 checkpoints.
| # | Aspect | Tokenizer v1 (Legacy) | Tokenizer v2 Updated (v2.0.0, default) |
Status |
|---|---|---|---|---|
| 1 | gptommy_tokenizer.py |
Had a SyntaxError (from __future__ import annotations placed after the license header) |
Fixed and upgraded to v2.0.0 (implicit_space=True by default, implicit_space=False for v1 compatibility) |
โ Fixed & Active |
| 2 | Lossless round-trip (decode(encode(text)) == text) |
Returned lowercased text ("Le roulement..." โ "le roulement...") |
100% Lossless (decode(encode(text)) == text), using case prefix markers ID 6 (TitleCase, e.g. "Le") and ID 5 (ALLCAPS, e.g. "PLC", "R08") |
โ 100% Lossless in v2 |
| 3 | Sequence length & space handling | Emitted a separate <spazio> token (ID 10) for every space (31 tokens on the 14-word French example sentence; 2.33 tokens/word on the 177 Italian test texts) |
Implicit single space between words (ID 10 = <attaccato> only when gluing sub-pieces or punctuation; ID 9 for extra spaces): 23 tokens (-25.8%) on the French example sentence (1.85 tokens/word, -20.4% tokens on the 177 Italian test texts) |
โ Tokenizer v2 Active |
๐ผ Investment, Compute Grants & Enterprise Licensing (Investimenti & Partnership Industriali)
๐ฌ๐ง Sentinel is scaling the Geodesic Pyramidal Sphere Architecture (
R-08) from 50M to 110Mโ1B+ parameters, with a patent application filed at the Italian Patent and Trademark Office (UIBM).
Open to Seed / Deep-Tech Investment, GPU/TPU Compute Grants, and Enterprise R&D Partnerships.
๐ฎ๐น Aperto a Investimenti Seed / Deep-Tech, Grant Computazionali GPU/TPU e Licenze Industriali Enterprise.
๐ฉ Contact Founder & Inventor Thomas Seri: ๐ www.sentinelhub.eu | ๐ GitHub (@Thomasseri) | ๐ค Hugging Face (@SentinelHub) | ๐ฌ Open an Inquiry / Issue
๐ Sentinel gpTommy 32k European Language Suite & R-08 Models
The gpTommy 32k family provides native whole-word SSvvv vocabularies (32,768 tokens each, with 100% shared control/space/numeric/alphabet IDs) across the 5 major European languages:
- ๐ฎ๐น Italiano (
gpTommy-32k): GitHub | Hugging Face - ๐ฌ๐ง English (
gpTommy-32k-EN): GitHub | Hugging Face - ๐ฉ๐ช Deutsch (
gpTommy-32k-DE): GitHub | Hugging Face - ๐ซ๐ท Franรงais (
gpTommy-32k-FR): GitHub | Hugging Face - ๐ช๐ธ Espaรฑol (
gpTommy-32k-ES): GitHub | Hugging Face
Related Sentinel R-08 Geodesic Language Models:
- ๐ค Sentinel R-08 v7 (Pyramid 44.5M): GitHub | Hugging Face
- ๐ Sentinel R-08 v7.2 (51.6M with 12 Icosahedral Hubs): GitHub | Hugging Face
- ๐ Sentinel R-08 v7.2a DA ZERO (51.6M 82.51% BLiMP-IT, migliore tra gli R-08): GitHub | Hugging Face
๐ฏ Why gpTommy-32k-FR is Different from Statistical Subword Tokenizers
Traditional statistical BPE tokenizers fragment words into arbitrary sub-syllables, inflating context length and computational cost while increasing spelling hallucinations in compact neural models.
gpTommy-32k-FR adopts a deterministic, structured lexical approach:
- Contains 29,775 complete native Franรงais (French) words and morphemes (90.9% of the vocabulary), covering base lemmas, plurals, conjugated verbs, and scientific/industrial terminology.
- Includes the complete uppercase/lowercase/accented Latin alphabet (
A..Z), all single digits (0..9) and two-digit numbers (00..99), spaces/newlines/tabs (<spazio>,<riga>,<tab>), punctuation and math operators, and 35 special AI/Chat/Reasoning control tokens (<|user|>,<|assistant|>,<|think|>) at the exact same fixed IDs as the entiregpTommysuite.
๐ Card-Index Architecture: The 5-Digit SSvvv System
The vocabulary uses a deterministic 5-digit index SSvvv (00000 .. 32767):
SS(Card / Scheda00..32): Identifies the category or initial alphabet letter (01..26= A..Z).vvv(Row000..999): Identifies the specific entry within that card.
Card (SS) |
Global ID Range | Primary Content | Token Examples |
|---|---|---|---|
00 |
00000 โ 00999 |
Special AI tokens, punctuation, digits 0-9, math symbols |
<|user|>, <|assistant|>, <|think|>, <spazio>, +, -, =, * |
01 |
01000 โ 01999 |
Letter A (alphabet headers + native French words) | avec, aussi, aprรจs, avoir, alors, autre, automatique |
03 |
03000 โ 03999 |
Letter C (includes ร/รง) |
comme, cette, contre, chaque, cylindre, capteur, contrรดle |
19 |
19000 โ 19999 |
Letter S | sur, sont, sans, systรจme, service, sรฉcuritรฉ, soupape |
27 |
27000 โ 27999 |
French Morphemes & contractions + high-freq words | -tion, -ment, -eur, -able, -itรฉ, c'est, d'un, qu'il, aujourd'hui |
30 |
30000 โ 30999 |
Two-digit numbers 00..99, scientific units & lexicon |
00..99, โฌ, ยฐ, ยฒ, ยณ, ยฑ, ร, รท, โ , โค, โฅ |
๐ Breakdown of the 32,768 Tokens (32k = Vocabulary Size)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ gpTommy-32k-FR (32,768 IDs) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโฌโโโโโโโโโโโโค
โ Category โ Count โ Share โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโผโโโโโโโโโโโโค
โ Complete Native Words & Morphemes โ 29,775 โ 90.9% โ
โ Single Characters, Digits & Symbols โ 1,925 โ 5.9% โ
โ Special AI Control, Space & Chat IDs โ 1,068 โ 3.2% โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโโ
๐ Quick Usage in Python โ Tokenizer v2 (Zero External Dependencies)
gptommy_tokenizer.py (v2.0.0) is 100% self-contained and requires no external libraries:
from gptommy_tokenizer import gpTommyTokenizer
# 1. Initialize Tokenizer v2 with gpTommy-32k-FR (Implicit Space + Lossless Case by default)
tokenizer = gpTommyTokenizer("gpTommy_vocab_by_id.txt")
# 2. Encode a Franรงais (French) sentence into token IDs (23 tokens in v2 vs 31 in v1)
text = "Le roulement ร billes radial rรฉduit le frottement de roulement dans la maintenance industrielle."
token_ids = tokenizer.encode(text)
print("Token IDs v2:", token_ids)
# 3. Decode back to the exact original text (100% lossless, including capitalization!)
decoded = tokenizer.decode(token_ids)
print("Decoded v2:", decoded)
assert decoded == text
# 4. Optional: legacy v1 mode (explicit space tokens)
tokenizer_v1 = gpTommyTokenizer("gpTommy_vocab_by_id.txt", implicit_space=False)
๐ก๏ธ License & Attribution
Released under the R08 Non-Commercial Research & Ethical License v2.0 (see LICENSE.md), with strict ethical protections (prohibition of military, weapon, surveillance, and harmful uses) and Exclusive Jurisdiction at the Court of Milan (Italy).
All rights to the SSvvv card architecture and lexical organization are reserved by Thomas Seri (Sentinel) โ www.sentinelhub.eu.