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(
filename = f"{subfolder}/{filename}"
if mirror:
logger.warning(
"Deprecated: The mirroring is deprecated."
"Tuna and BFSU mirrors are no longer available."
"We will soon provide a self-hosted alternative."
)
if mirror in ["tuna", "bfsu"]:
raise ValueError("The Tuna and BFSU mirrors are no longer available. Try removing the mirror argument.")
legacy_format = "/" not in model_id
if legacy_format:
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