Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit fccb742

Browse files
authored
[Cherry Pick] Download deployment dir for llms (#436)
* Download deployment dir for llms * Use path instead of download
1 parent dc449a4 commit fccb742

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/sparsezoo/analyze/analysis.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,6 +1305,8 @@ def create(cls, file_path: Union[str, ModelProto]) -> "ModelAnalysis":
13051305
result = ModelAnalysis.from_onnx(Path(file_path) / "model.onnx")
13061306

13071307
elif file_path.startswith("zoo:"):
1308+
# download and extract deployment directory
1309+
Model(file_path).deployment.path
13081310
result = ModelAnalysis.from_onnx(
13091311
Model(file_path).deployment.get_file("model.onnx").path
13101312
)

0 commit comments

Comments
 (0)