Skip to content

Huggingface removes use_auth_token from their methods #2991

@lndip

Description

@lndip

Describe the bug

Huggingface seems to replace use_auth_token with token in their methods. This change affect the run of speechbrain inference task with models on Hugglingface.

from speechbrain.inference.separation import SepformerSeparation as separator
import torchaudio

model = separator.from_hparams(source="speechbrain/sepformer-dns4-16k-enhancement", savedir='pretrained_models/sepformer-dns4-16k-enhancement')

# for custom file, change path
est_sources = model.separate_file(path='speechbrain/sepformer-dns4-16k-enhancement/example_dns4-16k.wav') 

torchaudio.save("enhanced_dns4-16k.wav", est_sources[:, :, 0].detach().cpu(), 16000)

saw error
TypeError: hf_hub_download() got an unexpected keyword argument 'use_auth_token'

Expected behaviour

Expect the pretrained model to be downloaded

To Reproduce

No response

Environment Details

Package                            Version
---------------------------------- ----------------
aiohappyeyeballs                   2.6.1
aiohttp                            3.13.2
aiosignal                          1.4.0
alembic                            1.17.1
aniso8601                          9.0.1
annotated-types                    0.7.0
antlr4-python3-runtime             4.9.3
anyio                              4.11.0
asttokens                          2.4.1
attrs                              25.4.0
audioread                          3.1.0
beautifulsoup4                     4.14.2
blinker                            1.9.0
cachetools                         5.5.2
certifi                            2025.10.5
cffi                               2.0.0
charset-normalizer                 3.4.4
clearvoice                         0.1.2
click                              8.3.0
cloudpickle                        3.1.1
coloredlogs                        15.0.1
comm                               0.2.2
contourpy                          1.3.3
cryptography                       46.0.3
cycler                             0.12.1
databricks-sdk                     0.71.0
debugpy                            1.8.7
decorator                          5.2.1
Deprecated                         1.2.18
docker                             7.1.0
einops                             0.8.1
entrypoints                        0.4
executing                          2.1.0
fastapi                            0.119.1
filelock                           3.20.0
Flask                              3.1.2
flask-cors                         6.0.1
flatbuffers                        25.9.23
fonttools                          4.60.1
frozenlist                         1.8.0
fsspec                             2025.10.0
gdown                              5.2.0
geomloss                           0.2.6
gitdb                              4.0.12
GitPython                          3.1.45
google-auth                        2.42.1
graphene                           3.4.3
graphql-core                       3.2.6
graphql-relay                      3.2.0
greenlet                           3.2.4
gunicorn                           23.0.0
h11                                0.16.0
hf-xet                             1.2.0
httpcore                           1.0.9
httpx                              0.28.1
huggingface-hub                    1.0.1
humanfriendly                      10.0
hydra-core                         1.3.2
HyperPyYAML                        1.2.2
idna                               3.11
importlib_metadata                 8.7.0
ipykernel                          6.29.5
ipython                            8.29.0
itsdangerous                       2.2.0
jedi                               0.19.1
Jinja2                             3.1.6
joblib                             1.5.2
jupyter_client                     8.6.3
jupyter_core                       5.7.2
keopscore                          2.3
kiwisolver                         1.4.9
lazy_loader                        0.4
librosa                            0.10.2.post1
lightning                          2.4.0
lightning-utilities                0.15.2
llvmlite                           0.45.1
Mako                               1.3.10
Markdown                           3.9
markdown-it-py                     4.0.0
MarkupSafe                         3.0.3
matplotlib                         3.10.7
matplotlib-inline                  0.1.7
mdurl                              0.1.2
mlflow                             2.16.2
mlflow-skinny                      2.16.2
mlflow-tracing                     3.5.1
mpmath                             1.3.0
msgpack                            1.1.2
multidict                          6.7.0
nest-asyncio                       1.6.0
networkx                           3.5
numba                              0.62.1
numpy                              1.26.4
nvidia-cublas-cu12                 12.8.4.1
nvidia-cuda-cupti-cu12             12.8.90
nvidia-cuda-nvrtc-cu12             12.8.93
nvidia-cuda-runtime-cu12           12.8.90
nvidia-cudnn-cu12                  9.10.2.21
nvidia-cufft-cu12                  11.3.3.83
nvidia-cufile-cu12                 1.13.1.3
nvidia-curand-cu12                 10.3.9.90
nvidia-cusolver-cu12               11.7.3.90
nvidia-cusparse-cu12               12.5.8.93
nvidia-cusparselt-cu12             0.7.1
nvidia-nccl-cu12                   2.27.3
nvidia-nvjitlink-cu12              12.8.93
nvidia-nvshmem-cu12                3.3.20
nvidia-nvtx-cu12                   12.8.90
omegaconf                          2.3.0
onnxruntime                        1.23.2
opencv-python                      4.10.0.84
opentelemetry-api                  1.38.0
opentelemetry-proto                1.38.0
opentelemetry-sdk                  1.38.0
opentelemetry-semantic-conventions 0.59b0
packaging                          24.2
pandas                             2.3.3
parso                              0.8.4
pesq                               0.0.4
pexpect                            4.9.0
pillow                             12.0.0
pip                                24.2
platformdirs                       4.5.0
pooch                              1.8.2
prompt_toolkit                     3.0.48
propcache                          0.4.1
protobuf                           5.29.5
psutil                             6.1.0
ptyprocess                         0.7.0
pure_eval                          0.2.3
pyarrow                            17.0.0
pyasn1                             0.6.1
pyasn1_modules                     0.4.2
pybind11                           3.0.1
pycparser                          2.23
pydantic                           2.12.3
pydantic_core                      2.41.4
pydub                              0.25.1
Pygments                           2.19.2
pykeops                            2.3
pyparsing                          3.2.5
PySocks                            1.7.1
pystoi                             0.4.1
python-dateutil                    2.9.0.post0
python-dotenv                      1.2.1
python_speech_features             0.6
pytorch-lightning                  2.5.5
pytz                               2025.2
PyYAML                             6.0.3
pyzmq                              26.2.0
querystring-parser                 1.2.4
requests                           2.32.5
rich                               14.2.0
rotary-embedding-torch             0.8.3
rsa                                4.9.1
ruamel.yaml                        0.18.16
ruamel.yaml.clib                   0.2.14
scenedetect                        0.6.6
scikit-learn                       1.7.2
scikit-multilearn                  0.2.0
scipy                              1.16.3
seaborn                            0.13.2
sentencepiece                      0.2.1
setuptools                         80.9.0
shellingham                        1.5.4
six                                1.17.0
smmap                              5.0.2
sniffio                            1.3.1
soundfile                          0.12.1
soupsieve                          2.8
soxr                               1.0.0
speechbrain                        1.0.3
SQLAlchemy                         2.0.44
sqlparse                           0.5.3
stack-data                         0.6.3
starlette                          0.48.0
sympy                              1.14.0
thop                               0.1.1-2209072238
threadpoolctl                      3.6.0
torch                              2.8.0
torchaudio                         2.8.0
torchinfo                          1.8.0
torchmetrics                       1.8.2
torchvision                        0.23.0
tornado                            6.4.1
tqdm                               4.67.1
traitlets                          5.14.3
triton                             3.4.0
typer-slim                         0.20.0
typing_extensions                  4.15.0
typing-inspection                  0.4.2
tzdata                             2025.2
urllib3                            2.5.0
uvicorn                            0.38.0
wcwidth                            0.2.13
Werkzeug                           3.1.3
wheel                              0.44.0
wrapt                              1.17.2
yamlargparse                       1.31.1
yarl                               1.22.0
zipp                               3.23.0

Relevant Log Output

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions