Expand description
§llama-tokenizer
Deterministic tokenization for llama.rs.
This crate provides:
- A
Tokenizertrait for pluggable tokenization backends - A reference whitespace tokenizer for testing
- Streaming decoding with UTF-8 handling
- Chat template support (future)
Structs§
- Decoding
State - Streaming decoding state for handling partial UTF-8 sequences.
- Whitespace
Tokenizer - Reference whitespace tokenizer for Milestone A testing.
Enums§
- Tokenizer
Error - Error type for tokenization operations.
Traits§
- Tokenizer
- Core tokenizer trait. Implementations can be swapped without changing app code.