Skip to content

Commit

Permalink
[Download] Update HuggingFace git clone URL (#2991)
Browse files Browse the repository at this point in the history
The official git clone instructions from HuggingFace does not contain the `.git` suffix,
so this PR updates the git clone URL in MLC.
  • Loading branch information
MasterJH5574 authored Oct 21, 2024
1 parent 6da6aca commit 0b7e6bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/mlc_llm/support/download_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def download_and_cache_mlc_weights( # pylint: disable=too-many-locals
mlc_prefix = next(p for p in prefixes if model_url.startswith(p))
assert mlc_prefix

git_url_template = "https://huggingface.co/{user}/{repo}.git"
git_url_template = "https://huggingface.co/{user}/{repo}"
bin_url_template = "https://huggingface.co/{user}/{repo}/resolve/main/{record_name}"

if model_url.count("/") != 1 + mlc_prefix.count("/") or not model_url.startswith(mlc_prefix):
Expand Down

0 comments on commit 0b7e6bf

Please sign in to comment.