Views
No views yet




| Feature | Specification |
|---|---|
| Base Architecture | Byte-Pair Encoding (Mistral v1 Foundation) |
| Vocabulary Size | 32,003 Tokens (Efficient & Lean) |
| Added Special Tokens | `< |
| Optimization | Code & Logic Compression |
| Compatibility | Fully Compatible with LlamaTokenizerFast |
1from transformers import AutoTokenizer
2
3# Load the tokenizer
4tokenizer = AutoTokenizer.from_pretrained("AxtrioAI/Txa1-4B-Tokenizer")
5
6# Test ChatML Format
7chat = [
8 {"role": "user", "content": "Hello Txa, can you help me debug python?"},
9 {"role": "assistant", "content": "Certainly! Please paste your code below."}
10]
11
12# Apply template
13formatted_prompt = tokenizer.apply_chat_template(chat, tokenize=False)
14print(formatted_prompt)