Skip to content

Commit

Permalink
add debug statement
Browse files Browse the repository at this point in the history
Signed-off-by: Kyle Sayers <[email protected]>
  • Loading branch information
kylesayrs committed Feb 25, 2025
1 parent 53d762e commit e026658
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/llmcompressor/transformers/utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,14 @@ def recipe_from_huggingface_model_id(
try:
recipe = hf_hub_download(repo_id=hf_stub, filename=recipe_file_name)
logger.info(f"Found recipe: {recipe_file_name} for model ID: {hf_stub}.")
except Exception: # TODO: narrow acceptable exceptions
except Exception as e: # TODO: narrow acceptable exceptions
logger.debug(
(
f"Unable to find recipe {recipe_file_name} "
f"for model ID: {hf_stub}: {e}."
"Skipping recipe resolution."
)
)
recipe = None

return recipe
Expand Down

0 comments on commit e026658

Please sign in to comment.