gsaltintas commited on
Commit
b2e24f0
verified
1 Parent(s): 8c577f6

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. README.md +4 -4
  2. merges.txt +0 -0
  3. tokenizer.json +0 -0
  4. tokenizer_config.json +0 -0
  5. vocab.json +0 -0
README.md CHANGED
@@ -21,10 +21,10 @@ A **Byte-Level BPE** tokenizer trained on **['swe_Latn']** data from Fineweb-2-H
21
  | Algorithm | Byte-Level BPE |
22
  | Language | `['swe_Latn']` |
23
  | Target Vocab Size | 8,000 |
24
- | Final Vocab Size | 9,039 |
25
  | Pre-tokenizer | custom:swe_Latn |
26
  | Number handling | ltr_3digit |
27
- | Contraction handling | True |
28
  | Normalizer | NFC |
29
  | Special Tokens | `<s>`, `</s>`, `<pad>`, `<unk>` |
30
  | Training Shards | 2, ['fineweb_2_hq.swe_Latn.chunk.00.jsonl', 'fineweb_2_hq.swe_Latn.chunk.01.jsonl'] |
@@ -47,8 +47,8 @@ tokens = tokenizer.encode("Hello, world!")
47
  ## Sample Encoding
48
  | Text | Tokens | Token IDs |
49
  |------|--------|-----------|
50
- | `Hello, world! 12345 This is a test. 銇撱倱銇仭銇痐 | `H, ell, o,, wor, ld, !臓, 123, 45, 臓T, his臓, is臓, a臓, test, .臓, 茫, 模, 牡, 茫, 膜, 牡` | `42, 353, 2990, 4744, 2275, 1244, 8323, 4576, 2413, 6869, 1751, 262, 2827, 280, 162, 226, 244, 162, 227, 244` |
51
 
52
  Command used to create this tokenizer:
53
  ```bash
54
- ['/home/gsa/tokenizers2/flexitok/tokenizer_training/train_tokenizers.py', 'algorithm=bpe', 'vocab_size=8000', 'langs=[swe_Latn]', 'pretok_behavior=contiguous', 'data_dir=/scratch/gsa/data/flexitok/', 'output_dir=/scratch/gsa/trained_tokenizers', 'pretokenizer=custom:swe_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_swe_Latn_8000_v3', 'hf.collections=[flexitok/fineweb2-hq-tokenizers-v3,flexitok/8000-vocab-v3]']
 
21
  | Algorithm | Byte-Level BPE |
22
  | Language | `['swe_Latn']` |
23
  | Target Vocab Size | 8,000 |
24
+ | Final Vocab Size | 9,030 |
25
  | Pre-tokenizer | custom:swe_Latn |
26
  | Number handling | ltr_3digit |
27
+ | Contraction handling | False |
28
  | Normalizer | NFC |
29
  | Special Tokens | `<s>`, `</s>`, `<pad>`, `<unk>` |
30
  | Training Shards | 2, ['fineweb_2_hq.swe_Latn.chunk.00.jsonl', 'fineweb_2_hq.swe_Latn.chunk.01.jsonl'] |
 
47
  ## Sample Encoding
48
  | Text | Tokens | Token IDs |
49
  |------|--------|-----------|
50
+ | `Hello, world! 12345 This is a test. 銇撱倱銇仭銇痐 | `H, ell, o, ,, 臓w, orld, !, 臓, 123, 45, 臓Th, is, 臓is, 臓a, 臓test, ., 臓, 茫, 模, 牡` | `42, 468, 81, 14, 742, 4847, 3, 223, 8030, 4263, 1344, 359, 1676, 271, 2229, 16, 223, 162, 226, 244` |
51
 
52
  Command used to create this tokenizer:
53
  ```bash
54
+ ['/home/gsa/tokenizers2/flexitok/tokenizer_training/train_tokenizers.py', 'algorithm=bpe', 'vocab_size=8000', 'langs=[swe_Latn]', 'pretok_behavior=isolated', 'data_dir=/scratch/gsa/data/flexitok/', 'output_dir=/scratch/gsa/trained_tokenizers', 'pretokenizer=custom:swe_Latn', 'number_handling=ltr_3digit', 'add_numbers=true', 'handle_contractions=false', '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_swe_Latn_8000_v3', 'hf.collections=[flexitok/fineweb2-hq-tokenizers-v3,flexitok/8000-vocab-v3]']
merges.txt CHANGED
The diff for this file is too large to render. See raw diff
 
tokenizer.json CHANGED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json CHANGED
The diff for this file is too large to render. See raw diff
 
vocab.json CHANGED
The diff for this file is too large to render. See raw diff