---
license: mit
language:
- fra
tags:
- tokenizer
- bpe
- flexitok
- fineweb2
---
# Byte-Level BPE Tokenizer: ['fra_Latn'] (8K)
A **Byte-Level BPE** tokenizer trained on **['fra_Latn']** data from Fineweb-2-HQ.
## Training Details
| Parameter | Value |
|-----------|-------|
| Algorithm | Byte-Level BPE |
| Language | `['fra_Latn']` |
| Target Vocab Size | 8,000 |
| Final Vocab Size | 9,023 |
| Pre-tokenizer | custom:fra_Latn |
| Number handling | ltr_3digit |
| Contraction handling | True |
| Normalizer | NFC |
| Special Tokens | ``, ``, ``, `` |
| Training Shards | 2, ['fineweb_2_hq.fra_Latn.chunk.00.jsonl', 'fineweb_2_hq.fra_Latn.chunk.01.jsonl'] |
## Usage
```python
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("flexitok/bpe_ltr_fra_Latn_8000_v3")
tokens = tokenizer.encode("Hello, world!")
```
## Files
- `tokenizer.json` — Full HuggingFace tokenizer
- `vocab.json` — Vocabulary mapping
- `merges.txt` — BPE merge rules
## Sample Encoding
| Text | Tokens | Token IDs |
|------|--------|-----------|
| `Hello, world! 12345 This is a test. こんにちは` | `H, ell, o,Ġ, wor, l, d, !Ġ, 123, 45, Ġ, Th, isĠ, isĠ, aĠ, test, .Ġ, ãģ, ĵ, ã, Ĥ` | `42, 498, 1988, 5458, 78, 70, 1163, 8647, 4228, 223, 1158, 442, 442, 271, 4449, 283, 5616, 244, 162, 227` |
Command used to create this tokenizer:
```bash
['/home/gsa/tokenizers2/flexitok/tokenizer_training/train_tokenizers.py', 'algorithm=bpe', 'vocab_size=8000', 'langs=[fra_Latn]', 'pretok_behavior=contiguous', 'data_dir=/scratch/gsa/data/flexitok/', 'output_dir=/scratch/gsa/trained_tokenizers', 'pretokenizer=custom:fra_Latn', 'number_handling=ltr_3digit', 'add_numbers=true', 'handle_contractions=true', 'unicode_normalization=nfc', 'use_byte_level_regex=false', 'byte_fallback=false', 'strip_zero_width=false', 'cjk_char_split=false', 'cjk_char_coverage=0', 'add_cjk_chars=false', 'max_han_run=-1', 'max_lines=1_000_000', 'hf.publish_to_hf=true', 'hf_repo_prefix=flexitok/', 'hf.hf_repo_id=flexitok/bpe_ltr_fra_Latn_8000_v3', 'hf.collections=[flexitok/fineweb2-hq-tokenizers-v3,flexitok/8000-vocab-v3]']