Skip to content

windows/tools: ship repack_mlx_to_gguf.py, the import-only core of the MLX->GGUF converter - #126

Merged
linyubupa merged 1 commit into
mainfrom
fix/mlx-converter-missing-repack-core
Oct 2, 2026
Merged

linyubupa merged 1 commit into
mainfrom
fix/mlx-converter-missing-repack-core

Conversation

@alexyzhou

Copy link
Copy Markdown
Collaborator

The on-device conversion path documented in windows/README.md and android/README.md (both section 1.4) dies at step 1 on a fresh clone: repack_r3.py / repack_r3_8b.py / lora_mlx_to_gguf.py all import repack_mlx_to_gguf, but the module was never published. No gitignore was involved -- the exporter's tools whitelist listed the entry scripts that convert_mlx_to_gguf.py launches as subprocesses, and a library module that is only ever imported was invisible to that view.

…e MLX->GGUF converter

The on-device conversion path documented in windows/README.md and
android/README.md (both section 1.4) dies at step 1 on a fresh clone:
repack_r3.py / repack_r3_8b.py / lora_mlx_to_gguf.py all import
repack_mlx_to_gguf, but the module was never published. No gitignore was
involved -- the exporter's tools whitelist listed the entry scripts that
convert_mlx_to_gguf.py launches as subprocesses, and a library module that
is only ever imported was invisible to that view.

The module arrives Englishized to the same standard as the rest of the tools
chain (comments/docstrings only; the code is AST-identical to the internal
version). It carries its own seconds-level integrity gate, runnable from a
bare checkout with numpy installed:

    python windows/tools/repack_mlx_to_gguf.py --selftest --out .

Export tooling on our side also gained an import-closure tripwire (every
import in the published tools must resolve to stdlib, a documented external,
or a sibling file in the release tree), so this class of miss cannot recur.
@linyubupa
linyubupa merged commit feafe31 into main Oct 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants