Repository navigation
Stop loading Splash packages - #335
Merged
Merged
Conversation
Splash packages, the prebuilt format of earlier releases, kept a second loading path beside upstream models: manifest validation, reading package files as they are, an installer of their own (install/legacy.py), a release check step and tests built on synthetic packages. The MLX 4-bit models load the same weights, so packages are no longer loaded. A --model that names a package, installed or on the Hub, now stops and names the MLX model of its family: mlx-community/Qwen3.8-27B-4bit or mlx-community/Qwen3.6-35B-A3B-4bit. - The engine reads only an assembly's model.json. The package descriptors, PackageTargetFiles, PackageDraftFiles and packageImage are removed, and every draft loads from its DFlash2 checkpoint. - The installer drops legacy.py and refuses a package, by the format its manifest.json names, with the replacement. - Tests that loaded synthetic packages write synthetic MLX checkpoints (TestCheckpoint.hpp); model_package_test becomes model_loading_test. Tests that stub serve's installation leave the assembly an installation leaves (link_assembly): serve held any other link as a package. - affine-source-oracle, which compared MLX images with a package's files, is removed. vision_reference.py reads the MLX vision tower and reproduces both vision parity fixtures byte for byte. - CI and the release check no longer run a package; the benchmark tools take only installed assemblies.
This was referenced Oct 7, 2026
The official catalog (install/catalog.py, its bundled list, its refresh from the Hub collection and the workflow that regenerated it) listed only the two Splash packages, so shell completion offered first the models serve now refuses. Completion now reads suggested-models.txt, the upstream models the README starts with, and the installed models. serve no longer starts a refresh, and packaging and the architecture check no longer name the removed files.
A fine-tune published as a Splash package was told to serve "its MLX model", though the model named is its family's base model. The refusal now says to serve the MLX model of its family instead.
prepare refuses a package an earlier release installed before asking the Hub, the path an upgraded installation takes on its next serve, but only a package on the Hub and verify had tests. The new test links a package's snapshot and checks the refusal names its family's MLX model with nothing requested or downloaded.
Only legacy.py passed the token a request used; every caller left now redacts the configured one.
runtime_resources_test now derives its minimum from modelWeightBytes itself, so it no longer shows that admission counts every image, though its comment said so. model_loading_test now checks modelWeightBytes against the bytes of the target, draft and vision images it loads, and the budget comment states what it pins: admission charges modelWeightBytes and all a model needs beside its weights.
readDraft only forwarded the checkpoint loader once the package variant was gone, requireLayerTypes took the layer type names a package manifest spelled differently, and a test fixture was still named package(). loadDFlashDraftWeights reads the draft itself, requireLayerTypes names full_attention and linear_attention, and the fixture is loadedModel().
This was referenced Oct 9, 2026
A package an earlier release installed stays in the Hub cache after the refusal, 17 GB for the 27B and 21 GB for the 35B, and nothing said so. For an installed package, a link to its Hub snapshot, the message now names the cache folder holding its files, which can be deleted. A link to a folder outside a Hub cache names none.
7 tasks done
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.
Problem
Splash packages (
incoai/Qwen3.8-27B-Splash,incoai/Qwen3.6-35B-A3B-Splash), the prebuilt format of earlier releases, kept a second loading path beside upstream models: manifest validation in the engine, reading package files as they are, an installer of their own (install/legacy.py), a release-check step and tests built on synthetic packages. The MLX 4-bit models load the same weights.Fix
Packages are no longer loaded. A
--modelthat names one, installed or on the Hub, stops and names the MLX model of its family:inspectModelRootreads only an assembly'smodel.json. The package descriptors and validators,PackageTargetFiles,PackageDraftFilesandpackageImageare removed, and every draft loads from its DFlash2 checkpoint.legacy.pyis removed. A package is recognized by the format itsmanifest.jsonnames (splash-packed-q4,splash-packed-q4-moe) and refused with its replacement; another tool'smanifest.jsonis not a package.TestCheckpoint.hpp);model_package_testbecomesmodel_loading_test. The installer, completion and benchmark-tool tests use assemblies, and tests that stub serve's installation leave the assembly an installation leaves (link_assembly): serve held any other link as a package.affine-source-oracle, which compared MLX images with a package's files, is removed.vision_reference.pyreads the MLX vision tower.install/catalog.py, its Hub refresh at eachserve, the model-catalog workflow and its update tool. Completion suggestssuggested-models.txtand the installed models.modelWeightBytesagainst the images a synthetic model loads.Effect
vision_reference.pyrun onmlx-community/Qwen3.8-27B-4bitandmlx-community/Qwen3.6-35B-A3B-4bitreproduces both vision parity fixtures byte for byte.make check-native-cpu check-native-build check-native-metal check-python architecture-checkpass on an M5 Max.Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.