We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ed756a commit d1488f9Copy full SHA for d1488f9
src/llmcompressor/transformers/utils/helpers.py
@@ -150,8 +150,8 @@ def recipe_from_huggingface_model_id(
150
return None
151
152
# Use custom HF_ENDPOINT
153
- hf_endpoint = HfApi().endpoint.rstrip("/")
154
- model_id_url = f"{hf_endpoint}/{hf_stub}"
+ hf_api = HfApi()
+ model_id_url = f"{hf_api.endpoint.rstrip('/')}/{hf_stub}"
155
request = requests.head(model_id_url)
156
157
if request.status_code != 200:
0 commit comments