mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-09-16 21:30:39 -07:00
- patch transformers.masking_utils to set _is_torch_greater_or_equal_than_2_6 = False, forcing sdpa_mask_older_torch and avoiding the vmap .item() crash that breaks Qwen CustomVoice generation (our torch._dynamo stub can't reproduce TransformGetItemToIndex's graph transform). - add PyInstaller hook to bundle transformers.masking_utils .py source so the runtime finder can source-patch it. - --collect-all spacy_pkuseg so Chatterbox Multilingual can load its Chinese segmenter (dicts/default.pkl + native .so extensions). - add per-finder install diagnostics + _HOOK_VERSION marker to make future bundle-only regressions easier to triage. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
12 lines
466 B
Python
12 lines
466 B
Python
"""
|
|
Force transformers.masking_utils to be bundled with its .py source alongside
|
|
the .pyc bytecode so the runtime hook in
|
|
backend/pyi_rth_torch_compiler_disable.py can source-patch it.
|
|
|
|
The patch forces the torch<2.6 code path, bypassing `with TransformGetItemToIndex()`
|
|
which our torch._dynamo no-op stub can't implement for real — the real context
|
|
manager uses dynamo graph transforms to avoid `.item()` calls inside vmap.
|
|
"""
|
|
|
|
module_collection_mode = "pyz+py"
|