Spaces:
akhaliq
/
Sleeping

akhaliq HF Staff Claude commited on
Commit
0bd0eaf
·
1 Parent(s): 810f18c

Pre-install the full NeMo [tts] dep graph at build time

Browse files

Stop playing ImportError whack-a-mole. The --no-deps nemo install was
discovering NeMo's ~40 transitive deps one missing module at a time
(regex, tokenizers, matplotlib, seaborn, …). Now every dep NeMo's
[tts] extra needs — minus the one conflicting `transformers<=4.52`
pin — is pre-installed at build time, so installing nemo-toolkit
itself with --no-deps at runtime doesn't miss anything.

Complete list sourced from pypi.org/pypi/nemo-toolkit/2.4.0/json
(the `tts` extra): librosa, soundfile, omegaconf<=2.3, webdataset,
pandas, matplotlib, seaborn, einops, kornia, lhotse, lightning,
peft, torchmetrics, datasets, hydra-core<=1.3.2, nltk, janome,
jieba, pypinyin, mediapy==1.1.6, sentencepiece<1.0.0,
sacremoses, texterrors<1.0.0, jiwer, pydub, pyloudnorm, resampy,
pyannote.core, pyannote.metrics, optuna, marshmallow, fiddle,
cloudpickle, wandb, cdifflib, attrdict, braceexpand, kaldi-python-io,
whisper_normalizer, num2words, inflect, numba, ruamel.yaml,
scikit-learn, tensorboard, onnx, protobuf~=5.29.5, setuptools>=70.0.0,
python-dateutil, text-unidecode, wrapt, wget, tqdm, packaging,
fsspec==2024.12.0, scipy, plus transformers 5.x's own regex +
tokenizers>=0.22.0,<=0.23.0.

Co-Authored-By: Claude <noreply@anthropic.com>

2 files changed +79 -31
Files changed (2)
create_env.py+11-7
requirements.txt+68-24