changh95's picture
tt-model push centerpoint-p150 (container)
2230fab verified
|
Raw History Blame Contribute Delete
2.84 kB

code/scripts

script purpose device
fetch_samples.sh sha256-checked download helper for public data that may not be redistributed; nothing is fetched by default (the shipped sample is tt_centerpoint/samples/test_pcd.npz; the public-dataset frames of the card are rebuilt in the workspace from the datasets with research/centerpoint/scripts/public_data_convert.py) no
bench.py stage breakdown of warm forwards per serve profile (--variant base / tiny): host pre-processing (and its split: decode, densification, voxelization, decoration, canvas index), input staging, H2D (per input), one traced replay, back-to-back replays, D2H (copy / host conversion), unpack, post-processing, e2e p50 / p99; AICLK and host load; --dispatch eth / worker and --cqs 1 / 2 for the dispatch / CQ matrix; checks the served output against the stored CPU reference (the card / OPT numbers) yes, via bin/devrun
profile_ops.py one eager forward (module / layer signposts) + one traced replay between signposts under the device profiler (python -m tracy -r -p -v ...) yes
profile_summary.py the OPT_BASELINE tables of a profile_ops.py ops CSV: programs, kernel sum, op-to-op gaps, span, per category / module / op / layer, top ops (standard library) no
visualizer_report.py ttnn-visualizer memory + graph report of one eager forward (never for timing) 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 runs the model on the shipped sample (or --input) per serve profile and renders the p150 output next to the stored fp32 CPU reference as a bird's-eye view (media/test_pcd_*_tt_vs_cpu.png; tt_centerpoint.viz, PIL only); --tt-json renders a stored output without the device yes (no with --tt-json)
make_goldens.py CPU-reference goldens (torch fp32, ONNX Runtime agreement per tap): large ones to research/centerpoint/goldens, small ones to tt_centerpoint/tests/goldens and the smoke references tt_centerpoint/samples/<stem>.<variant>.reference.json (research venv) no
make_samples.py rebuilds the shipped sample test_pcd.npz and the staged PandaSet sample (staging_samples_pandaset/pandaset_019_f40.npz, not shipped: research/DATASETS.md N5) from the workspace research data no

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