Skip to content

Commit 2e07360

Browse files
committed
remove old soln
Summary Signed-off-by: HDCharles <[email protected]>
1 parent 7904137 commit 2e07360

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/llmcompressor/transformers/utils/helpers.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,10 @@ def infer_recipe_from_model_path(model_path: Union[str, Path]) -> Optional[str]:
7979
return None
8080

8181
# Try to resolve HF model ID to cached location first
82-
cached_recipe = None
83-
try:
84-
cached_recipe = try_to_load_from_cache(
85-
repo_id=model_path,
86-
filename=RECIPE_FILE_NAME,
87-
)
88-
except HFValidationError as e:
89-
logger.debug(f"unable to get recipe from hf_hub, raised:\n{e}")
82+
cached_recipe = try_to_load_from_cache(
83+
repo_id=model_path,
84+
filename=RECIPE_FILE_NAME,
85+
)
9086

9187
if cached_recipe and cached_recipe is not _CACHED_NO_EXIST:
9288
# Recipe found in cached model

0 commit comments

Comments
 (0)