Unverified Commit 361b6df3 authored by Kevin Canwen Xu's avatar Kevin Canwen Xu Committed by GitHub
Browse files

Throw ValueError for mirror downloads (#13478)

parent 99029ab6
...@@ -1257,11 +1257,8 @@ def hf_bucket_url( ...@@ -1257,11 +1257,8 @@ def hf_bucket_url(
filename = f"{subfolder}/{filename}" filename = f"{subfolder}/{filename}"
if mirror: if mirror:
logger.warning( if mirror in ["tuna", "bfsu"]:
"Deprecated: The mirroring is deprecated." raise ValueError("The Tuna and BFSU mirrors are no longer available. Try removing the mirror argument.")
"Tuna and BFSU mirrors are no longer available."
"We will soon provide a self-hosted alternative."
)
legacy_format = "/" not in model_id legacy_format = "/" not in model_id
if legacy_format: if legacy_format:
return f"{mirror}/{model_id}-{filename}" return f"{mirror}/{model_id}-{filename}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment