File size: 1,156 Bytes
68a3286
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
# code/scripts

| script | purpose | device |
|---|---|---|
| `fetch_samples.sh` | downloads the public sample data that is not redistributable (sha256-checked) | no |
| `bench.py` | stage breakdown of a warm forward (the card / OPT numbers) | yes, via `bin/devrun` |
| `profile_ops.py` | one eager forward + one traced replay between signposts under the device profiler (`python -m tracy -r -p -v ...`) | yes |
| `container_smoke.sh` | serve ONE serve profile of the built package (`--profile NAME`; default profile otherwise), run `server/smoke_test.py` against it (asserts ETH dispatch, the 12x10 grid and the profile's pins; compares with the stored CPU reference), keep the evidence (container log, `/info`, the `/predict` output and the result, in `logs/smoke/` of the repo or `--log-dir DIR`), always stop it; one `bin/devrun -t 3600 -k 150` window per profile | yes |
| `make_demo.py` | renders `media/*.png` (BEV / overlay views) from the shipped sample | yes |
| `ref_golden.py` | CPU reference (+ ONNX Runtime) goldens for the tests | no |

Everything here ships in `code/` on the Hub and inside the image (`source.extra_code` lists `scripts`).