Skip to content

Commit e026658

Browse files
committed
add debug statement
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
1 parent 53d762e commit e026658

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/llmcompressor/transformers/utils/helpers.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,14 @@ def recipe_from_huggingface_model_id(
142142
try:
143143
recipe = hf_hub_download(repo_id=hf_stub, filename=recipe_file_name)
144144
logger.info(f"Found recipe: {recipe_file_name} for model ID: {hf_stub}.")
145-
except Exception: # TODO: narrow acceptable exceptions
145+
except Exception as e: # TODO: narrow acceptable exceptions
146+
logger.debug(
147+
(
148+
f"Unable to find recipe {recipe_file_name} "
149+
f"for model ID: {hf_stub}: {e}."
150+
"Skipping recipe resolution."
151+
)
152+
)
146153
recipe = None
147154

148155
return recipe

0 commit comments

Comments
 (0)