Skip to content

Run frontier MoE models on hardware you already own — pure C, zero deps, experts streamed from disk. Tiny engine, immense model. 🐦

C

fix(release): read the packaged tokenizer as UTF-8, not the Windows ANSI page

JustVugg72cf894758e0
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index d3f6346a..11d166f7 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -143,7 +143,11 @@ jobs:
# Kimi K3 needs tokenizer.json synthesized from tiktoken.model; without this
# script in the archive the engine ships but cannot be driven by coli chat.
test -f tools/k3_tokenizer.py || { echo "FAIL: k3_tokenizer.py missing from archive"; exit 1; }
- python3 -c "import ast,sys; ast.parse(open('tools/k3_tokenizer.py').read())" \
+ # encoding='utf-8' explicitly: on Windows open() defaults to the ANSI code
+ # page (cp1252), which cannot decode this UTF-8 file, so the v1.4.0 tag build
+ # failed here with a UnicodeDecodeError while the file itself was perfectly
+ # fine. The check was wrong, not the artifact.
+ python3 -c "import ast; ast.parse(open('tools/k3_tokenizer.py', encoding='utf-8').read())" \
|| { echo "FAIL: packaged k3_tokenizer.py does not parse"; exit 1; }
python3 - <<'PYCHK'
import os, sys