Add Huggingface download CDN and Xet domains#113
Open
rovle wants to merge 1 commit into
Open
Conversation
…hitelist
Modern HuggingFace downloads no longer come solely from huggingface.co.
LFS-backed repos redirect to the hf.co CDN (cdn-lfs.hf.co,
cdn-lfs-{us,eu}-1.hf.co), Xet-backed repos pull from the Xet storage
endpoints (cas-bridge / cas-server / transfer.xethub.hf.co), and the
newer multi-cloud CDN serves from {region}.{cloud}.cdn.hf.co (e.g.
us.aws.cdn.hf.co, us.gcp.cdn.hf.co), verified live via the x-hf-cdn-pop
header.
None match the existing *.huggingface.co wildcard. Because *.hf.co only
matches one subdomain level, the xethub and cdn branches each need their
own wildcard per label level.
Signed-off-by: rovle <lovre.pesut@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Huggingface downloads nowadays redirect off
huggingface.coto backends the current whitelist doesn't cover:hf.coLFS CDN,*.xethub.hf.co),*.cdn.hf.co,*.aws.cdn.hf.co,*.gcp.cdn.hf.co).Adding these to enable downloads from HF.