Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: tokenizers
|
| 3 |
+
tags:
|
| 4 |
+
- tokenizer
|
| 5 |
+
- multilingual
|
| 6 |
+
- byte-level-bpe
|
| 7 |
+
- indigenous-languages
|
| 8 |
+
- tachiwin
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# Tachiwin multilingual tokenizer
|
| 12 |
+
|
| 13 |
+
A multilingual ByteLevel-BPE tokenizer trained with Hugging Face Tokenizers.
|
| 14 |
+
|
| 15 |
+
## Corpus weighting
|
| 16 |
+
|
| 17 |
+
| Component | Target |
|
| 18 |
+
|---|---:|
|
| 19 |
+
| Modern + old exotic-language data | 70% |
|
| 20 |
+
| English | 10% |
|
| 21 |
+
| Spanish | 10% |
|
| 22 |
+
| Code | 10% |
|
| 23 |
+
|
| 24 |
+
The complete available exotic-language corpus is used as the 70% anchor.
|
| 25 |
+
Its existing modern/old composition is preserved.
|
| 26 |
+
|
| 27 |
+
## Tokenizer
|
| 28 |
+
|
| 29 |
+
- Model: BPE
|
| 30 |
+
- Vocabulary target: 256,000
|
| 31 |
+
- Initial alphabet: complete ByteLevel alphabet
|
| 32 |
+
- ByteLevel GPT-2 regex: disabled
|
| 33 |
+
- Unicode normalizer: none
|
| 34 |
+
- Special tokens: 94
|
| 35 |
+
- Human-language tags: 60
|
| 36 |
+
|
| 37 |
+
## Corpus size
|
| 38 |
+
|
| 39 |
+
Total materialized corpus:
|
| 40 |
+
|
| 41 |
+
50,027,186 bytes
|
| 42 |
+
(0.047 GiB)
|
| 43 |
+
|
| 44 |
+
## Important training note
|
| 45 |
+
|
| 46 |
+
The Hugging Face BPE trainer does not expose an internal resumable merge-state
|
| 47 |
+
checkpoint. The recipe therefore treats the completed `tokenizer.json` as the
|
| 48 |
+
training checkpoint:
|
| 49 |
+
|
| 50 |
+
- corpus preparation is resumable;
|
| 51 |
+
- recipe/statistics/checksums are stored in `recipe/`;
|
| 52 |
+
- if `tokenizer.json` already exists, subsequent runs skip BPE training;
|
| 53 |
+
- an interrupted BPE computation itself must be restarted.
|
| 54 |
+
|
| 55 |
+
This avoids changing the training procedure merely to obtain artificial
|
| 56 |
+
checkpointing.
|