Skip to content

Support official VibeVoice 1.5B checkpoint - #726

Merged
justinchuby merged 7 commits into
mainfrom
justinchuby-support-official-vibevoice-tts
Sep 16, 2026
Merged

justinchuby merged 7 commits into
mainfrom
justinchuby-support-official-vibevoice-tts

Conversation

@justinchuby

@justinchuby justinchuby commented Sep 4, 2026 •

Copy link
Copy Markdown
Member

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:

  • Added a VibeVoiceSources dataclass and a resolve_vibevoice_sources function in vibevoice.py to 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.
  • Updated _resolve_static_cache_task in __main__.py to use resolve_vibevoice_sources for correct VibeVoice provenance and revision pinning during build.
  • Added _runtime_asset_source helper 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:

  • Updated build_transformers_model in _builder.py to use the resolved VibeVoice sources for config loading, processor, and metadata properties. It now passes the correct checkpoint layout to preprocess_weights and sets new metadata fields (mobius.executable_source, mobius.processor_source). [1] [2] [3]

Official checkpoint conversion:

  • Added _transform_official_weight_name and _convert_official_weights in vibevoice.py to map Microsoft checkpoint keys to the HF-native layout, with collision protection. Updated preprocess_weights to use this mapping when loading official checkpoints.

Testing improvements:

  • Added comprehensive tests in _builder_test.py for official VibeVoice provenance, correct asset pinning, fail-closed handling of unsupported variants, and correct preprocessing of weights. [1] [2] [3]
  • Updated test imports in vibevoice_test.py to 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.

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]>
@justinchuby
justinchuby requested review from a team and a lite review from Copilot September 4, 2026 16:35
@github-actions

github-actions Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

🏗️ Architecture Diff

Comparing 8c1bf544 → a2b3df13

Model Sub-model Changes Status

No architecture changes detected. ✅


Legend: ⚪ No change · 🔵 Minor (attrs/inits) · 🟡 Moderate (nodes added/removed) · 🔴 Major (interface changed)

@github-actions

github-actions Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

Performance Comparison

Comparing 8c1bf544 → a2b3df13

Model Metric Baseline Current Delta
bert (feature-extraction) model_size_bytes 359 KB 359 KB +0.0% ⚪
bert (feature-extraction) num_nodes 68 68 +0.0% ⚪
falcon model_size_bytes 364 KB 364 KB +0.0% ⚪
falcon num_nodes 66 66 +0.0% ⚪
gemma2 model_size_bytes 428 KB 428 KB +0.0% ⚪
gemma2 num_nodes 105 105 +0.0% ⚪
gpt2 model_size_bytes 324 KB 324 KB +0.0% ⚪
gpt2 num_nodes 54 54 +0.0% ⚪
llama model_size_bytes 425 KB 425 KB +0.0% ⚪
llama num_nodes 60 60 +0.0% ⚪
llama (static-cache) model_size_bytes 425 KB 425 KB +0.0% ⚪
llama (static-cache) num_nodes 56 56 +0.0% ⚪
mamba (ssm-text-generation) model_size_bytes 296 KB 296 KB +0.0% ⚪
mamba (ssm-text-generation) num_nodes 94 94 +0.0% ⚪
phi3 model_size_bytes 421 KB 421 KB +0.0% ⚪
phi3 num_nodes 58 58 +0.0% ⚪
phi3 (static-cache) model_size_bytes 421 KB 421 KB +0.0% ⚪
phi3 (static-cache) num_nodes 54 54 +0.0% ⚪
qwen2 model_size_bytes 425 KB 425 KB +0.0% ⚪
qwen2 num_nodes 60 60 +0.0% ⚪
qwen2 (static-cache) model_size_bytes 425 KB 425 KB +0.0% ⚪
qwen2 (static-cache) num_nodes 56 56 +0.0% ⚪
qwen3_5_moe (hybrid-text-generation) model_size_bytes 506 KB 506 KB +0.0% ⚪
qwen3_5_moe (hybrid-text-generation) num_nodes 265 265 +0.0% ⚪
qwen3_5_text (hybrid-text-generation) model_size_bytes 458 KB 458 KB +0.0% ⚪
qwen3_5_text (hybrid-text-generation) num_nodes 127 127 +0.0% ⚪
qwen3_5_vl (hybrid-qwen-vl) model_size_bytes 977 KB 977 KB +0.0% ⚪
qwen3_5_vl (hybrid-qwen-vl) num_nodes 450 450 +0.0% ⚪
t5 (seq2seq) model_size_bytes 836 KB 836 KB +0.0% ⚪
t5 (seq2seq) num_nodes 176 176 +0.0% ⚪
whisper (speech-to-text) model_size_bytes 1008 KB 1008 KB +0.0% ⚪
whisper (speech-to-text) num_nodes 128 128 +0.0% ⚪

No performance regressions.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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.

Comment thread tests/weight_alignment_test.py Resolved
justinchuby and others added 3 commits September 4, 2026 10:01
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]>
Comment thread tests/weight_alignment_test.py Fixed
justinchuby and others added 3 commits September 16, 2026 15:43
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]>
@justinchuby
justinchuby merged commit 12ed392 into main Sep 16, 2026
21 of 24 checks passed
@justinchuby
justinchuby deleted the justinchuby-support-official-vibevoice-tts branch September 16, 2026 23:20
titaiwangms added a commit that referenced this pull request Sep 17, 2026
## 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]>
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.

3 participants