Add Qwen3.8 MTP and multimodal inference on Metal without regressing text #89
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Complete Qwen3.8-27B on Apple Metal by adding MTP and image or video inference as separately measurable extensions after #88.
CUDA is deferred and does not block this issue.
Scope and order
Implement and accept these steps sequentially:
Keep model weights and heads under models/qwen3_8. Move a vision operation into shared ops only after a second real consumer needs identical semantics. Do not add speculative cross-platform or universal vision abstractions.
Correctness gates
Performance gates
Measure baseline decode, MTP draft and verify work, accepted-token throughput, memory, image preprocessing, vision encoder, projector, combined prefill, transfers, and cold start separately on the same Mac. Mojo-Metal must meet the native Metal reference for each enabled feature. A faster text backend cannot hide a slower MTP or vision stage, and absent visual input may not add text-path work.
Acceptance criteria
Binding outcome from #84 (2026-08-31)
#84 stopped product integration on Mojo 1.0.0 because the open compiler/standard-library environment has no host-side Metal
DeviceContext. The workingmax.gpu.hostpath requires MAX plus AsyncRT/KGEN dylibs whose component-specific redistribution permission could not be established.mojo build --emit shared-libalso links@rpath/libKGENCompilerRTShared.dylibfor a trivial export.MTP, multimodal, and Gated DeltaNet design work must retain the same backend boundary. Do not introduce MAX to obtain missing host-side GPU functionality.
These constraints are acceptance criteria:
uv.lock; do not use nightly or an older release;max,max-core,max-mojo-libs, AsyncRT, or KGEN to the product/build/package closure without an authoritative redistribution grant naming every shipped component;docs/MOJO_SPIKE_84.md;If the runtime grant or open host API changes, update #84 evidence first so this milestone has one source of truth.
Add Qwen3.8 MTP and multimodal inference without regressing the text pathto Add Qwen3.8 MTP and multimodal inference on Metal without regressing textBased on findings in #84, all work on MOJO migration is stopped. Licene-hell.
Project decision: the Mojo backend effort is canceled. All committed spike tooling, dependencies, lockfiles, and documentation were removed in
9a33c61; generated probe state was deleted as well. The independent Apple-silicon/macOS-15 product floor remains. This issue is no longer actionable.