#!/usr/bin/env python3 """Convert the published EXLLM8 artifact to the EX-word EXQ12 format.""" import argparse import hashlib import json import struct from pathlib import Path MAGIC_IN = b"EXLLM8\0\0" MAGIC_OUT = b"EXQ12\0\0\0" def read_exllm8(path): raw = path.read_bytes() if raw[:8] != MAGIC_IN: raise ValueError("input is not EXLLM8") offset = 8 version, count = struct.unpack_from("