Skip to content

Stop loading Splash packages - #335

Merged
jianc99 merged 8 commits into
incoai:mainfrom
jianc99:models/drop-legacy-packages
Oct 9, 2026
Merged

jianc99 merged 8 commits into
incoai:mainfrom
jianc99:models/drop-legacy-packages

Conversation

@jianc99

@jianc99 jianc99 commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

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 --model that names one, installed or on the Hub, stops and names the MLX model of its family:

incoai/Qwen3.8-27B-Splash is a Splash package, which Splash no longer loads; serve the MLX model of its family instead: splash serve --model mlx-community/Qwen3.8-27B-4bit
  • Engine: inspectModelRoot reads only an assembly's model.json. The package descriptors and validators, PackageTargetFiles, PackageDraftFiles and packageImage are removed, and every draft loads from its DFlash2 checkpoint.
  • Installer: legacy.py is removed. A package is recognized by the format its manifest.json names (splash-packed-q4, splash-packed-q4-moe) and refused with its replacement; another tool's manifest.json is not a package.
  • Tests: the engine tests that loaded synthetic packages write synthetic MLX checkpoints (TestCheckpoint.hpp); model_package_test becomes model_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.
  • Tools: affine-source-oracle, which compared MLX images with a package's files, is removed. vision_reference.py reads the MLX vision tower.
  • CI and the release check no longer run a package; the benchmark tools take only installed assemblies.
  • Shell completion's official-model catalog, which listed only the two packages, goes with them: install/catalog.py, its Hub refresh at each serve, the model-catalog workflow and its update tool. Completion suggests suggested-models.txt and the installed models.
  • Tests pin the refusal of an installed package on the serve path (nothing is requested or downloaded) and modelWeightBytes against the images a synthetic model loads.

Effect

  • vision_reference.py run on mlx-community/Qwen3.8-27B-4bit and mlx-community/Qwen3.6-35B-A3B-4bit reproduces both vision parity fixtures byte for byte.
  • make check-native-cpu check-native-build check-native-metal check-python architecture-check pass on an M5 Max.
  • The release check (vision parity, the runtime oracle, and backend regression against main) passes for the four example models on an M5 Max, a 20-core M5 Pro and an M3 Max.

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

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.
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().
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.
@jianc99
jianc99 merged commit 6a95a54 into incoai:main Oct 9, 2026
5 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.

1 participant