INNER CODE UNIT · Python
_download_deployment_directory
neuralmagic/sparsezoo · src/sparsezoo/deployment_package/cli.py:101
def _download_deployment_directory(stub: str, destination: Optional[str] = None) -> str:
model = Model(stub)
model.deployment.download(destination_path=destination)
return model.deployment.path
def _get_template(results: Mapping[str, Any], destination: Optional[str] = None):
stub = results.get("stub")
if not stub:
return "No relevant models found for specified metrics"
stub_info = f"""
Relevant Stub: {stub}
"""
metrics = results.get("metrics")
metrics_info = (
f"""