Centralize numba compatibility system with smart testing Technical implementation: - Replace 15+ duplicate JIT workaround blocks with unified system - Add utils/compatibility/numba_compat.py with startup testing - Implement fallback for environments without compatibility module - Test librosa.stft() at startup and apply workarounds only when needed - Eliminate contradictory startup messages between init and nodes - Maintain backward compatibility with legacy Python 3.13 fixes
24 lines
624 B
Python
24 lines
624 B
Python
"""
|
|
TTS Audio Suite Compatibility Module
|
|
Centralized compatibility fixes for Python 3.13, transformers, numba, and other dependencies
|
|
"""
|
|
|
|
from .numba_compat import (
|
|
setup_numba_compatibility,
|
|
is_jit_disabled,
|
|
get_compatibility_status,
|
|
force_apply_workaround
|
|
)
|
|
|
|
from .transformers_patches import *
|
|
|
|
__all__ = [
|
|
# Numba compatibility
|
|
'setup_numba_compatibility',
|
|
'is_jit_disabled',
|
|
'get_compatibility_status',
|
|
'force_apply_workaround',
|
|
|
|
# Transformers compatibility (from transformers_patches.py)
|
|
# Add any exports from transformers_patches if needed
|
|
] |