Repository navigation
Support official VibeVoice 1.5B checkpoint - #726
Conversation
Resolve the official legacy checkpoint against pinned Transformers-native config and processor sidecars while retaining official weights and provenance. Reject distinct unimplemented VibeVoice collection architectures explicitly. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
Performance Comparison
|
There was a problem hiding this comment.
🟢 Approval recommended
The change is well-scoped, heavily tested across builder/CLI/weight-alignment paths, and only minor nits remain.
Pull request overview
Adds first-class support for the official microsoft/VibeVoice-1.5B checkpoint while preserving official checkpoint identity/weights and pinning only the required Transformers-native sidecar assets (config/processor) from the HF conversion mirror. This integrates the new provenance model into both the Transformers builder and the CLI runtime-asset selection so exports remain reproducible and fail-closed for unimplemented VibeVoice collection entries.
Changes:
- Introduces a pinned VibeVoice source resolver + official→native weight key conversion path, and threads it through the Transformers build flow (config probing, metadata, and weight preprocessing).
- Updates CLI/runtime config emission to optionally download processor assets from the pinned sidecar source without changing the requested checkpoint provenance.
- Expands unit/integration/golden coverage to validate identity preservation, sidecar pinning behavior, unsupported-ID rejection, and official index key mapping.
File summaries
| File | Description |
|---|---|
| tests/weight_alignment_test.py | Adds an integration test ensuring the official safetensors index keys map 1:1 onto the pinned HF-native conversion layout. |
| tests/vibevoice_golden_test.py | Routes config/processor resolution through the pinned sidecar source for golden/parity runs while building from the official checkpoint target. |
| tests/cli_test.py | Verifies CLI build preserves requested model identity and that runtime assets can be sourced from the pinned processor sidecar. |
| src/mobius/models/vibevoice.py | Adds VibeVoiceSources, resolves official vs executable sources, and implements official weight key conversion + collision protection. |
| src/mobius/models/vibevoice_test.py | Adds unit tests for source resolution, revision pinning, unsupported model rejection, and key conversion correctness. |
| src/mobius/integrations/transformers/_builder.py | Uses resolve_vibevoice_sources to separate checkpoint provenance from executable sidecars and passes layout info into preprocess_weights. |
| src/mobius/integrations/transformers/_builder_test.py | Adds regression tests ensuring official VibeVoice uses pinned sidecars while downloading official weights; validates fail-closed behavior. |
| src/mobius/main.py | Pins the early Diffusers probe for official VibeVoice and introduces _runtime_asset_source to select processor downloads from metadata. |
| docs/model-catalog.md | Updates catalog entry and documents the official checkpoint + pinned sidecar behavior and explicit rejection of unimplemented collection IDs. |
Review details
- Files reviewed: 9/9 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Reference the follow-up issue for replacing the temporary community sidecar dependency when Microsoft publishes pinned HF-native sidecars. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 000b46be-a743-47cb-a063-dc3e16cc03d4 Signed-off-by: Justin Chu <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]> Signed-off-by: Justin Chu <[email protected]>
Signed-off-by: Justin Chu <[email protected]>
Signed-off-by: Justin Chu <[email protected]>
Resolve the supported VibeVoice TTS source bundle before loading its config so executable sidecars, provenance metadata, and official weight conversion use one coherent source plan. Preserve the existing ASR and realtime builder dispatches, and reject only unimplemented collection entries. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
The generic golden runner cannot execute continuous-token TTS, which is instead validated through the staged official-checkpoint L4/L5 suite. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
## Summary - integrate both supported VibeVoice streaming ASR checkpoints into the shared fail-closed source resolver - pin config, processor, and weight sources to each checkpoint's verified revision - preserve module-specific weight preprocessing: only TTS layouts receive the `checkpoint_layout` argument - retain fail-closed rejection for unsupported BitNet and standalone acoustic-tokenizer checkpoints ## Root cause #723 was tested before #726 landed, although both changed VibeVoice source resolution. The combined `main` state classified the newly supported streaming ASR IDs as unsupported before their architecture-specific exporter could load the pinned config. The fix does not bypass or weaken #726's resolver. It makes streaming ASR an explicit supported provenance route and removes the now-redundant exact-ID pinning branch from the Transformers builder. ## Validation - `python -m pytest src/mobius/integrations/transformers/_builder_test.py src/mobius/models/vibevoice_test.py -q --tb=short` (`60 passed, 1 skipped`) - builder-level `load_weights=True` regression coverage verifies pinned config/weight revisions, the native ASR preprocessing signature, and emitted source metadata for both variants - targeted lintrunner checks: clean - revised lightweight correctness and risk reviews: PASS --------- Signed-off-by: titaiwang <[email protected]> Co-authored-by: Copilot <[email protected]>
This pull request introduces robust support for VibeVoice model provenance, ensuring the correct handling of official and Transformers-native checkpoints and their dependencies. It adds a fail-closed resolver to separate executable dependencies from checkpoint provenance, prevents accidental mixing of incompatible model types, and enhances metadata tracking for VibeVoice models. The changes also introduce comprehensive tests for these new behaviors.
VibeVoice provenance and dependency resolution:
VibeVoiceSourcesdataclass and aresolve_vibevoice_sourcesfunction invibevoice.pyto robustly resolve and pin config, processor, and weight sources for supported VibeVoice model IDs, while failing closed for unsupported variants. This ensures that only verified model/revision pairs are allowed and that dependencies are tracked separately from checkpoint provenance._resolve_static_cache_taskin__main__.pyto useresolve_vibevoice_sourcesfor correct VibeVoice provenance and revision pinning during build._runtime_asset_sourcehelper and updated calls to ensure runtime config/processor assets are sourced from the correct pinned location, not just the user checkpoint. [1] [2] [3]Transformers integration and metadata tracking:
build_transformers_modelin_builder.pyto use the resolved VibeVoice sources for config loading, processor, and metadata properties. It now passes the correct checkpoint layout topreprocess_weightsand sets new metadata fields (mobius.executable_source,mobius.processor_source). [1] [2] [3]Official checkpoint conversion:
_transform_official_weight_nameand_convert_official_weightsinvibevoice.pyto map Microsoft checkpoint keys to the HF-native layout, with collision protection. Updatedpreprocess_weightsto use this mapping when loading official checkpoints.Testing improvements:
_builder_test.pyfor official VibeVoice provenance, correct asset pinning, fail-closed handling of unsupported variants, and correct preprocessing of weights. [1] [2] [3]vibevoice_test.pyto include new utilities and constants.These changes collectively ensure that VibeVoice models are built with the correct, reproducible dependencies, and that unsupported or unverified variants are explicitly rejected.