Skip to content

Commit

Permalink
Reorder transformers recipe download logs (#2225)
Browse files Browse the repository at this point in the history
* Reorder transformers recipe download logs

* Format
  • Loading branch information
mgoin authored Apr 5, 2024
1 parent e5d2fc4 commit fd0a779
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/sparseml/transformers/utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,11 +362,8 @@ def recipe_from_huggingface_model_id(
f"{HUGGINGFACE_CO_URL_HOME}"
)
try:
_LOGGER.info(
f"Found recipe: {recipe_name} for model id: "
f"{model_path}. Downloading..."
)
recipe = hf_hub_download(repo_id=model_path, filename=recipe_name)
_LOGGER.info(f"Found recipe: {recipe_name} for model id: {model_path}.")
except Exception as e:
_LOGGER.info(
f"Unable to to find recipe {recipe_name} "
Expand Down

0 comments on commit fd0a779

Please sign in to comment.