Datasets:
File size: 926 Bytes
ead2c27 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | # Tokenizer
## Recommended Tokenizer
Use a byte-level BPE tokenizer with explicit FIM and metadata tokens. The
current local tokenizer uses Hugging Face `tokenizers` JSON format.
Required special tokens:
- `<|fim_prefix|>`
- `<|fim_suffix|>`
- `<|fim_middle|>`
- `<|fim_pad|>`
- `<|repo|>`
- `<|file|>`
- `<|lang|>`
- `<|endoftext|>`
- `<|pad|>`
## Usage Rules
- Encode with `add_special_tokens=False` when the record text already contains
FIM markers.
- Decode audits with `skip_special_tokens=False`.
- Preserve indentation, tabs, newlines, comments, and Korean text.
- Do not lowercase or normalize code whitespace.
- Append EOS between JSONL records during training.
## Quality Checks
Audit tokenizer quality with:
- Special tokens remain atomic.
- Round-trip decode has no byte loss.
- FIM markers remain visible in decoded samples.
- Code chars/token is stable across Python, Rust, C++, JavaScript, and Java.
|