Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/MojoLlama/blob/main/src/mojollama/mojo_engine/scan_zaya_vocab.py # MojoLlama Archived Mojo/MAX quantizer and serving research repository (read-only history) Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `MojoLlama / src / mojollama / mojo_engine / scan_zaya_vocab.py` 68 lines ยท 1886 bytes Raw Blame History 1 #!/usr/bin/env python3 2 """Scan ZAYA vocab for special tokens and test encoding.""" 3 import struct 4 5 with open('/tmp/vocab_zaya.bin', 'rb') as f: 6 data = f.read() 7 8 nv = struct.unpack('', '', '', '', '<|im_end', '<|start', '<|user', 27 '<|assistant', '<|system', '<|begin', '[INST', '[/INST]'] 28 off = 4 29 found = {} 30 for i in range(nv): 31 plen = struct.unpack('