Manmay commited on
Commit
e44cca0
Β·
1 Parent(s): 7e0eb32

Drop mamba-ssm / causal-conv1d from requirements

Browse files

HF Spaces build container has no nvcc, so mamba-ssm / causal-conv1d wheels
fail to compile at pip install time, aborting the whole build. The code
path already handles their absence gracefully β€” super_resolution lazy-loads
REUSEUpsampler and TTSServer._denoise_voice_ref catches the ImportError,
logs a one-time warning, and silently skips voice-ref denoise for the rest
of the session. Long-form chunking is unaffected.

Files changed (1) hide show
  1. requirements.txt +11 -11
requirements.txt CHANGED
@@ -25,14 +25,14 @@ spaces>=0.30.0
25
  soundfile>=0.12.0
26
  resemble-perth @ git+https://github.com/resemble-ai/Perth.git@master
27
 
28
- # ── Optional: NVIDIA RE-USE speech enhancement (input-side voice-ref denoise) ─
29
- # RE-USE is applied to the uploaded voice reference before VAE encoding so the
30
- # model conditions on a clean speaker / style anchor (generated paralinguistic
31
- # events β€” laughs, breaths, sighs β€” stay untouched because the denoiser only
32
- # touches the reference). resampy is used for its pre-resample step; mamba_ssm
33
- # + causal-conv1d power the bi-Mamba kernels. The kernels have no pre-built
34
- # wheels for every CUDA toolkit β€” if installs fail, app.py logs a warning
35
- # once and silently skips the reference denoise for the rest of the session.
36
- resampy>=0.4.0
37
- mamba-ssm>=2.2.0 ; platform_system == "Linux"
38
- causal-conv1d>=1.4.0 ; platform_system == "Linux"
 
25
  soundfile>=0.12.0
26
  resemble-perth @ git+https://github.com/resemble-ai/Perth.git@master
27
 
28
+ # ── RE-USE deps intentionally omitted on HF Spaces ──────────────────────────
29
+ # The mamba-ssm / causal-conv1d wheels need nvcc + matching CUDA toolkit at
30
+ # install time, which HF Spaces' build container doesn't provide. Without
31
+ # them, super_resolution.REUSEUpsampler raises ImportError on first use and
32
+ # TTSServer._denoise_voice_ref logs a one-time warning + silently skips the
33
+ # voice-ref denoise for the rest of the session. Long-form chunking + the
34
+ # rest of the model are unaffected. To enable denoise_ref on the Space,
35
+ # switch to a Dockerfile-based Space build with nvcc available, then add:
36
+ # resampy>=0.4.0
37
+ # mamba-ssm>=2.2.0 ; platform_system == "Linux"
38
+ # causal-conv1d>=1.4.0 ; platform_system == "Linux"