Byte-Level BPE Tokenizer: ['digit'] (0K)

A Byte-Level BPE tokenizer trained on ['digit'] data from Fineweb-2-HQ.

Training Details

Parameter Value
Algorithm Byte-Level BPE
Language ['digit']
Target Vocab Size 360
Final Vocab Size 259
Pre-tokenizer custom:addition_split_on_hyphen
Number handling individual
Contraction handling False
Normalizer NFC
Special Tokens <s>, </s>, <pad>, <unk>
Training Shards 2, ['train.chunk.00.jsonl', 'val.chunk.00.jsonl']

Usage

from transformers import AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained("flexitok/maddition_digit_individual_minimal_v2")
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
22+9=31\nyirmi iki+dokuz=otuz bir\ntwenty two+nine=thirty one 2, 2, +, 9, =, 3, 1, \, n, y, i, r, m, i, Ä , i, k, i, +, d 20, 20, 13, 27, 31, 21, 19, 62, 80, 91, 75, 84, 79, 75, 223, 75, 77, 75, 13, 70

Command used to create this tokenizer:

['/home/gsa/tokenizers2/flexitok/tokenizer_training/train_tokenizers.py', 'algorithm=bpe', 'vocab_size=360', 'langs=[digit]', 'data_dir=/scratch/gsa/data/multilingual-addition/', 'output_dir=/scratch/gsa/trained_tokenizers/multilingual_addition', 'pretokenizer=custom:addition_split_on_hyphen', 'number_handling=individual', 'add_numbers=false', 'handle_contractions=false', 'unicode_normalization=nfc', 'use_byte_level_regex=false', 'byte_fallback=false', 'strip_zero_width=false', 'cjk_char_split=false', 'add_cjk_chars=false', 'max_lines=-1', 'test_string=22+9=31\\nyirmi iki+dokuz=otuz bir\\ntwenty two+nine=thirty one', 'hf.publish_to_hf=true', 'hf_repo_prefix=flexitok/', 'hf.hf_repo_id=flexitok/maddition_digit_individual_minimal_v2', 'hf.collections=[flexitok/multilingual_addition_tokenizers_minimal]']
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Collections including flexitok/maddition_digit_v2_360