Skip to content

SL-61: wire opencua, openpangu_vl and qwen3_omni_moe (text-only) - #111

Merged
solderzzc merged 15 commits into
mainfrom
sl61/vlm-bgroup
Nov 3, 2026
Merged

solderzzc merged 15 commits into
mainfrom
sl61/vlm-bgroup

Conversation

@solderzzc

Copy link
Copy Markdown
Member

What

Wires three more VLM model types through the text-only processor shim from #107: opencua, openpangu_vl and qwen3_omni_moe. VLM usable through the factory goes from 28 to 31 (on top of #107).

  • Text prompts load and run; image, video and audio input is rejected with mediaNotSupported rather than dropped.
  • No new processor was needed: the shared SharpAITextOnlyProcessor resolver covers all three.
  • openpangu_vl is removed from the blocked list; wired-key count 6 → 9. Conformance expectations and the missing-ops report regenerated.

Tests (air-gapped, nothing downloaded)

Per-model tests (SharpAIOpencua*, SharpAIOpenpanguVl*, SharpAIQwen3OmniMoe*), SharpAIVLMAirgapLoadTests (three new cases through the real registry with synthetic weights), SharpAIVLMOverlaysTests, VLMProcessorLoadingRegistryTests, ConformanceMissingOpsTests, ConformanceRegistryTests: 68 XCTest cases and 31 Swift Testing cases pass locally. No .github/workflows or Package.swift changes.

Not verified

  • Sanitizers are not checked against real checkpoints; real processor_class values are unknown.
  • Known gap: opencua image positions use 2D M-RoPE where OpenCUA needs 1D (a test marks it as an expected failure). Text-only use is unaffected and images are rejected by the shim.
  • The qwen3_omni alias stays unwired.
  • This branch touches the same wired-key and conformance files as SL-51 PR2: Cosmos3Omni generation tower and wiring #109 (Cosmos3Omni); whichever merges second needs a rebase and regenerated conformance files.

🤖 Generated with Claude Code

solderzzc and others added 4 commits November 2, 2026 06:11
Wire opencua, openpangu_vl, qwen3_omni_moe as text-only VLM keys; regenerate conformance expectations and missing-ops report.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
solderzzc and others added 11 commits November 2, 2026 19:47
Keep both sides' VLM wired keys (main: moondream3, phi4-siglip; this PR: opencua,
openpangu_vl, qwen3_omni_moe), regenerate the conformance files with
gen_expectations.py and gen_report.py, and update the wired-key count test 10 -> 13.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Package.resolved is gitignored, so the cache key was a constant and the cache never
refreshed. Key on Package.swift plus the commit, and stop deleting .build / SwiftLM
before the job-end cache save: free disk only when under 20 GiB.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
We ship Release. The xcodebuild phase rebuilt the whole package in Debug for the sake of
14 assert() calls and cost ~29 min; SwiftLM's separate Debug test build cost ~10 min more.
- remove the xcodebuild (Debug) phase
- SwiftLM: one Release build with -enable-testing, tests run with swift test -c release
- sealed offline phase stays the one Debug build and now also runs KVCacheTests,
  RotatingKVCacheRewindTests and ChatSession (144 tests, pass in Debug locally)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…repo

Its jobs are guarded by github.repository == 'ml-explore/mlx-swift-lm' (and two need a
self-hosted runner), so here every PR got three skipped checks. Keep it for manual runs.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…elease

Release compiles out 14 assert()/assertionFailure() calls. Add tests that check the same
invariants with #expect/XCTAssert so they run in the Release suite (KVCachePlan x4,
KVCache metaState restore x2, KVCacheRound, MTP shared-KV snapshot, OpenELM heads,
ChatSession main cache alignment, ToolCallProcessor recovery pairing). Two asserts have
no test (Gemma3nText vocabSize > 0, Bitnet input dtype): no input can break them.
Then the sealed offline phase builds and tests in Release too (BUILD_ARGS in run-blocked.sh),
so CI has no Debug build and the check is renamed accordingly.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…aches

Split the one job into two jobs that run at the same time: lib (Release build, tests,
gates) and swiftlm (SwiftLM integration, then the sealed offline phase, all Release).
Key the .build caches on the mlx-swift commit and the Xcode version so the Cmlx C/C++
objects (~16 min in Release) carry over between runs. Not pushed with the previous
commit: held until the single-job run on db479ae finishes, to read its cold timings.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
A Debug SwiftPM build costs about half a Release one (Cmlx C++ ~4 min vs ~11-16) and the
sealed phase always builds clean, so it can never use a cache. Run the assert-bearing test
filters there as well; the explicit tests still cover them in the Release lane.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
In Release two SwiftLM test processes aborted with signal 6 under --parallel (the Debug run
had none). GPU tests that overlap hit the Metal command-buffer assertion; the library lane
already runs --no-parallel for that reason.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
ClientDisconnectTests/testDeferredCancellationCancelsATaskAttachedAfterTheRequest dies with
'freed pointer was not the last allocation' (signal 6) in Release, which ends the whole
XCTest process and hides the rest. It passes in Debug and is SwiftLM code, not this repo.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… run

Two tests in that suite abort the XCTest process in Release (Swift runtime
'freed pointer was not the last allocation'); the other 127 SwiftLM tests
pass in Release locally.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
SwiftLM has only XCTest tests. With Swift 6.2 in Release the Swift Testing
phase starts SwiftLM's own entry point (Missing expected argument '--model')
and the step exits 1 although all 457 XCTest tests passed.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@solderzzc
solderzzc merged commit 5b07e70 into main Nov 3, 2026
3 of 4 checks passed
@solderzzc
solderzzc deleted the sl61/vlm-bgroup branch November 3, 2026 21:45
solderzzc added a commit that referenced this pull request Nov 4, 2026
docs: README counts after #111 (LLM 112, VLM 35, embedder 13; 3 new VLM types text-only)
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