"""Write the host token tables from the checkpoint: [256000, 384] little-endian float16 (shipped) and float32.""" import hashlib from pathlib import Path import numpy as np from safetensors import safe_open ROOT = Path(__file__).resolve().parents[1] def main(): with safe_open(str(ROOT / 'src/Julia-1/model.safetensors'), 'pt') as f: table = f.get_tensor('encoder.embeddings.tok_embeddings.weight').numpy() assert table.shape == (256000, 384) and table.dtype == np.float32 out = ROOT / 'exports' out.mkdir(exist_ok=True) for name, dtype in (('julia1_token_table_fp16.bin', '