Skip to content

Commit 2aa6c59

Browse files
committed
remove old soln
Summary Signed-off-by: HDCharles <charlesdavidhernandez@gmail.com>
1 parent 0e676e2 commit 2aa6c59

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
@@ -117,14 +117,10 @@ def infer_recipe_from_model_path(model_path: Union[str, Path]) -> Optional[str]:
117117
return None
118118

119119
# Try to resolve HF model ID to cached location first
120-
cached_recipe = None
121-
try:
122-
cached_recipe = try_to_load_from_cache(
123-
repo_id=model_path,
124-
filename=RECIPE_FILE_NAME,
125-
)
126-
except HFValidationError as e:
127-
logger.debug(f"unable to get recipe from hf_hub, raised:\n{e}")
120+
cached_recipe = try_to_load_from_cache(
121+
repo_id=model_path,
122+
filename=RECIPE_FILE_NAME,
123+
)
128124

129125
if cached_recipe and cached_recipe is not _CACHED_NO_EXIST:
130126
# Recipe found in cached model

0 commit comments

Comments
 (0)