windows/tools: ship repack_mlx_to_gguf.py, the import-only core of the MLX->GGUF converter - #126
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.