Download examples/infer_cpu.py from approchin/sonic-pm01: direct link, hf CLI and curl.
- Browser
- Download file 331 Bytes
-
https://huggingface.co/approchin/sonic-pm01/resolve/main/examples/infer_cpu.py
- Command line
-
hf download hf://approchin/sonic-pm01/examples/infer_cpu.py
-
curl -L -o infer_cpu.py https://huggingface.co/approchin/sonic-pm01/resolve/main/examples/infer_cpu.py
331 Bytes
| #!/usr/bin/env python3 | |
| # SPDX-License-Identifier: Apache-2.0 | |
| """Run the CPU inference CLI directly from a source checkout.""" | |
| from pathlib import Path | |
| import sys | |
| sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "src")) | |
| from pm01_sonic_inference.cli import main | |
| if __name__ == "__main__": | |
| raise SystemExit(main()) | |