|
Download code/PERF_CONFIGS.md from changh95/vla-jepa-base-p150: direct link, hf CLI and curl.
- Browser
- Download file 20.2 kB
-
https://huggingface.co/changh95/vla-jepa-base-p150/resolve/main/code/PERF_CONFIGS.md
- Command line
-
hf download hf://changh95/vla-jepa-base-p150/code/PERF_CONFIGS.md
-
curl -L -o PERF_CONFIGS.md https://huggingface.co/changh95/vla-jepa-base-p150/resolve/main/code/PERF_CONFIGS.md
20.2 kB
| # VLA-JEPA on one p150: every configuration (cameras x flow-matching steps) | |
| An independent evaluation of this package's configurations (`VLA_JEPA_NUM_CAMERAS` 1-4 x `VLA_JEPA_NUM_STEPS`, | |
| `SERVING.md` section 4.1): which device programs each configuration runs, how close its action chunks are to | |
| LeRobot's own VLA-JEPA code run with the same configuration, its latency and its start-up time. Every number below | |
| was measured on 2026-11-21 with this code and its shipped defaults (the earlier evaluation of 2026-11-20 is cited | |
| where it still applies). | |
| - Hardware: one Blackhole p150, ETH dispatch, 12 x 10 worker grid, 1 command queue, batch 1. Runtime: tt-metal | |
| `44d66500520` with the two patches in `patches/`. Checkpoint: `lerobot/VLA-JEPA-Pretrain` @ `e946c3e5`. | |
| - Host: an 8-vCPU VM shared with other jobs. Its load average was 4-14 during these runs (stated per table). The | |
| device-side numbers (trace replays) hardly depend on it. The host-side numbers (served `total`, start-up) do. | |
| - A configuration is fixed when the server starts. Each camera count has 4 prompt buckets (prompt rows): | |
| 1 camera 160 / 192 / 224 / 256, 2 cameras 224 / 256 / 288 / 320, 3 cameras 320 / 352 / 384 / 416, | |
| 4 cameras 384 / 416 / 448 / 480. A request uses the smallest bucket that holds its prompt. | |
| - The action chunk is always 7 x 7. | |
| - "Round 5" in brackets below = the same code with `VLA_JEPA_MP_OPT=qkvb+gupk+deep+kvg+kvfit` and | |
| `VLA_JEPA_MK_OPT=lnf+share`, which reproduces the previous package bit for bit (checked on 80 case-configurations). | |
| The shipped defaults give the previous package's outputs bit for bit in every configuration (all 170 | |
| case-configurations of section 2); only the action head's statistics exchange is faster. | |
| ## 1. Device programs per configuration | |
| `/info` `engine` (VISION / PREFIX / EXPERT) of every configuration of 1-4 cameras x 1 / 2 / 4 / 8 / 16 steps, as the | |
| server builds it. `mk` = a persistent megakernel. No configuration falls back to a ttnn program (`fallbacks` is empty | |
| everywhere). | |
| | cameras | steps 1 | 2 | 4 | 8 | 16 | vision runs (cameras per run) | language-model passes per bucket | | |
| |---|---|---|---|---|---|---|---| | |
| | 1 | mk / mk / mk | mk / mk / mk | mk / mk / mk | mk / mk / mk | mk / mk / mk | 1 (1: the 1-camera program) | 1 / 1 / 1 / 1 | | |
| | 2 | mk / mk / mk | mk / mk / mk | mk / mk / mk | mk / mk / mk | mk / mk / mk | 1 (2) | 1 / 1 / 1 / 1 | | |
| | 3 | mk / mk / mk | mk / mk / mk | mk / mk / mk | mk / mk / mk | mk / mk / mk | 2 (2 + 1) | 1 / 2 / 2 / 2 | | |
| | 4 | mk / mk / mk | mk / mk / mk | mk / mk / mk | mk / mk / mk | mk / mk / mk | 2 (2 + 2) | 2 / 2 / 2 / 2 | | |
| Kernel options in use everywhere: VISION `fc1p+mrgx+attq+deep+cam1`, PREFIX `qkvb+gupk+deep+kvg+kvfit` (the previous | |
| package's), EXPERT `lnf+share+rta+hsc+stf`; kernel digest `730253be0b1a4c01` (the numbers below were measured with the | |
| sources of digest `c9ddb9e4164f1155`, which differ only by a code path no configuration runs, removed since, and by | |
| the end-of-kernel write barriers of the vision-encoder and language-model programs, added since: outputs | |
| bit-identical in every configuration, device time per call within -0.03..+0.06 ms, median +0.01 ms, in an interleaved | |
| comparison of 1-4 cameras at 4 steps and 2 cameras at 16 steps, every prompt bucket). The 3 / 4-camera prompts of 352-480 rows run the | |
| language model as two passes over the row groups, each streaming its weights once. `/info` reports the passes per | |
| bucket (`configuration.prefix_passes`). | |
| ## 2. Accuracy per configuration | |
| Reference: LeRobot 0.7.0's VLA-JEPA code (the official implementation of these checkpoints) run on CPU in fp32 with | |
| the same configuration, the same images, instruction and initial noise. The camera count is set through the policy's | |
| image features and the step count through the action head's `num_inference_timesteps`. | |
| Metrics on the normalised actions `[7, 7]`: PCC, and the largest absolute error of the arm values (0-5) and of the | |
| gripper value (6). The floor is LeRobot's own bf16 error: for each case and metric, the larger of (a) LeRobot's bf16 | |
| configuration vs its fp32 run and (b) a bf16 reference action head fed with LeRobot's bf16 conditioning vs the fp32 | |
| run. The ratio is this package's error divided by the floor. The package's acceptance criterion: each metric at most | |
| 4 x its floor, or under the absolute bf16 noise level (1 - PCC 2e-5, arm / gripper 0.004). | |
| ### 2.1 This evaluation's cases (2026-11-21) | |
| 18 new cases made for this evaluation, never used to tune anything: one per prompt bucket of each camera count, plus a | |
| second case in the largest bucket of 3 and 4 cameras. Images: UR5 wrist frames not used before, photos and figure | |
| crops from other sources, new synthetic patterns, flips, crops and resizes, from 120 x 160 to 1080 x 1920 px; new | |
| instructions; new noise seeds. Each case runs at every step count: 90 case-configurations. | |
| | cameras | steps | cases | criterion met | lowest PCC (LeRobot bf16) | largest error arm / gripper | largest ratio 1 - PCC / arm / gripper | median ratio | gripper flips (LeRobot bf16) | | |
| |---|---|---|---|---|---|---|---|---| | |
| | 1 | 1 | 4 | 4 / 4 | 0.99979 (0.99884) | 0.0137 / 0.0078 | 1.16 / 1.28 / 2.73 | 1.54 | 0 (0) | | |
| | 1 | 2 | 4 | 4 / 4 | 0.99983 (0.99922) | 0.0155 / 0.0079 | 1.14 / 1.30 / 3.83 | 1.14 | 0 (0) | | |
| | 1 | 4 | 4 | 4 / 4 | 0.99991 (0.99925) | 0.0193 / 0.0176 | 0.77 / 1.41 / 3.06 | 0.94 | 0 (0) | | |
| | 1 | 8 | 4 | 4 / 4 | 0.99993 (0.99951) | 0.0203 / 0.0109 | 1.36 / 1.50 / 2.01 | 0.98 | 0 (0) | | |
| | 1 | 16 | 4 | 4 / 4 | 0.99993 (0.99953) | 0.0207 / 0.0082 | 1.39 / 1.62 / 1.53 | 1.06 | 0 (0) | | |
| | 2 | 1 | 4 | 4 / 4 | 0.99892 (0.99933) | 0.0119 / 0.0050 | 1.49 / 0.98 / 0.99 | 0.94 | 0 (0) | | |
| | 2 | 2 | 4 | **3 / 4** | 0.99944 (0.99987) | 0.0125 / 0.0060 | **4.12** / 1.07 / 1.24 | 1.09 | 0 (0) | | |
| | **2** | **4 (default)** | 4 | **3 / 4** | 0.99966 (0.99992) | 0.0137 / 0.0080 | **4.64** / 1.35 / 0.91 | 1.00 | 0 (0) | | |
| | 2 | 8 | 4 | **3 / 4** | 0.99975 (0.99994) | 0.0151 / 0.0102 | **4.05** / 1.73 / 2.07 | 1.52 | 0 (0) | | |
| | 2 | 16 | 4 | **3 / 4** | 0.99979 (0.99994) | 0.0142 / 0.0086 | **4.58** / 1.84 / 2.40 | 1.52 | 0 (0) | | |
| | 3 | 1 | 5 | 5 / 5 | 0.99983 (0.99920) | 0.0090 / 0.0078 | 0.24 / 0.53 / 0.95 | 0.51 | 0 (0) | | |
| | 3 | 2 | 5 | 5 / 5 | 0.99971 (0.99886) | 0.0091 / 0.0174 | 0.37 / 0.62 / 1.81 | 0.65 | 0 (0) | | |
| | 3 | 4 | 5 | 5 / 5 | 0.99955 (0.99921) | 0.0092 / 0.0223 | 0.66 / 0.35 / 1.54 | 0.81 | 0 (0) | | |
| | 3 | 8 | 5 | 5 / 5 | 0.99968 (0.99929) | 0.0094 / 0.0232 | 0.52 / 0.35 / 1.64 | 0.80 | 0 (0) | | |
| | 3 | 16 | 5 | 5 / 5 | 0.99982 (0.99933) | 0.0106 / 0.0133 | 0.33 / 0.35 / 1.64 | 0.64 | 0 (0) | | |
| | 4 | 1 | 5 | 5 / 5 | 0.99961 (0.99905) | 0.0168 / 0.0070 | 0.94 / 1.26 / 2.16 | 0.76 | 0 (0) | | |
| | 4 | 2 | 5 | 5 / 5 | 0.99977 (0.99923) | 0.0188 / 0.0069 | 0.65 / 1.66 / 0.48 | 0.63 | 0 (0) | | |
| | 4 | 4 | 5 | 5 / 5 | 0.99968 (0.99881) | 0.0204 / 0.0073 | 0.88 / 1.77 / 1.06 | 0.81 | 0 (0) | | |
| | 4 | 8 | 5 | 5 / 5 | 0.99979 (0.99807) | 0.0214 / 0.0040 | 1.32 / 1.90 / 0.99 | 0.99 | 0 (0) | | |
| | 4 | 16 | 5 | 5 / 5 | 0.99937 (0.99699) | 0.0220 / 0.0034 | 3.08 / 2.50 / 1.14 | 1.14 | 0 (0) | | |
| - The criterion is met on **86 of the 90**. Lowest PCC 0.99892, median 0.99996. LeRobot's own bf16 run on the same | |
| cases: lowest 0.99699, median 0.99984. No gripper flip. | |
| - The four misses are one case at 2, 4 (the default configuration), 8 and 16 steps: two UR5 wrist frames, a 222-row | |
| prompt (bucket 224). 1 - PCC is 4.05-4.64 x its floor (PCC 0.99944-0.99979), because LeRobot's own bf16 run is | |
| unusually close to its fp32 run on this case (PCC 0.99987-0.99994); the arm (1.07-1.35 x) and gripper (0.73-2.40 x) | |
| errors are within the criterion. Every output of this table is the previous package's bit for bit, so this is not | |
| new in this version; it is the first miss found at the default configuration. | |
| ### 2.2 The previous evaluation's cases | |
| The 16 cases of the 2026-11-20 evaluation (one per prompt bucket of each camera count, x 5 step counts = 80 | |
| case-configurations) were run again: every output is the previous package's bit for bit (80 / 80), so its results | |
| stand: criterion met on 78 of the 80, lowest PCC 0.99846 (4 cameras), median 0.99990 (LeRobot's own bf16 run: 0.99532 | |
| / 0.99981). Its two misses: 1 camera at 16 steps (1 - PCC 4.8 x, PCC 0.99948) and 2 cameras at 8 steps (gripper error | |
| 0.0198 = 4.4 x, no flip). | |
| ### 2.3 Summary over both evaluations (170 case-configurations) | |
| - Criterion met on 164 of 170. Lowest PCC 0.99846 (4 cameras), median 0.99993; LeRobot's own bf16 run: lowest | |
| 0.99532, median 0.99982. | |
| - Per camera count, the lowest PCC (LeRobot bf16 in brackets): 1 camera 0.99921 (0.99860), 2 cameras 0.99892 | |
| (0.99914), 3 cameras 0.99949 (0.99886), 4 cameras 0.99846 (0.99532). | |
| - Gripper flips: 3 of the 1,190 gripper values (LeRobot's own bf16 run: 4), all where LeRobot's fp32 gripper value | |
| lies within 0.011 of the 0.5 threshold. | |
| - The default configuration (2 cameras, 4 steps): 7 of its 8 cases meet the criterion; the miss is the case of 2.1. | |
| - The package's own configuration cases (3 + 4 per camera count, `test_config_device.py`) are unchanged from the | |
| previous package (bit for bit). | |
| - These are agreement numbers against the reference code. They say nothing about task success: camera counts other | |
| than a checkpoint's training cameras are outside its training data (`SERVING.md` section 4.1). | |
| ## 3. Device latency (trace replay) | |
| One request = one replay of the bucket's full-call Metal trace (VISION + PREFIX + EXPERT), with the inputs already in | |
| the device buffers; the host waits for the end of each replay. Input: the shipped sample's cameras repeated or | |
| truncated to n, its task (or "pick up the black bowl" where the task does not fit). Three ways of replaying: | |
| - 30 ms gap: 60 replays, each 30 ms after the previous one ended. Back to back: 100 replays with no gap; under this | |
| sustained load the chip lowers its clock, so these are 0-2.7 ms slower. Both were measured with this version and | |
| the previous one ("round 5", in parentheses) built side by side in one process and replayed alternately, replay by | |
| replay. Medians, ms. Host load average 4.1-6.8. | |
| - 10 ms gap (as between served requests): `code/scripts/bench.py --sample --num-cameras n --num-steps N`, 100 replays, | |
| median with p10 / p90 in brackets, and each of the three programs replayed alone. Host load average 4.4-5.3. | |
| ### 3.1 4 steps (default), per camera count and prompt bucket | |
| | cameras | bucket | full call, 30 ms gap: this version (round 5) | back to back: this version (round 5) | 10 ms gap: median (p10 / p90) | VISION / PREFIX / EXPERT alone | | |
| |---|---|---|---|---|---| | |
| | 1 | 160 | 17.97 (18.25) | 18.03 (18.27) | 18.03 (17.89 / 18.16) | 5.53 / 9.63 / 2.99 | | |
| | 1 | 192 | 18.11 (18.36) | 18.20 (18.44) | 18.13 (18.00 / 18.27) | 5.54 / 9.75 / 3.00 | | |
| | 1 | 224 | 18.62 (18.84) | 18.90 (19.12) | 18.59 (18.45 / 19.03) | 5.58 / 10.31 / 3.02 | | |
| | 1 | 256 | 18.54 (18.79) | 19.24 (19.54) | 18.57 (18.43 / 19.43) | 5.69 / 10.41 / 3.07 | | |
| | **2** | 224 | 21.33 (21.57) | 22.03 (22.28) | 21.34 (21.17 / 21.90) | 8.42 / 10.40 / 3.05 | | |
| | **2** | 256 | 21.28 (21.56) | 22.45 (22.67) | 21.33 (21.16 / 22.47) | 8.63 / 10.63 / 3.14 | | |
| | **2** | 288 | 21.72 (21.95) | 23.41 (23.69) | 21.85 (21.59 / 23.51) | 8.71 / 11.23 / 3.18 | | |
| | **2** | 320 | 22.05 (22.32) | 23.93 (24.19) | 22.21 (21.96 / 24.03) | 8.89 / 11.75 / 3.23 | | |
| | 3 | 320 | 27.60 (27.84) | 29.12 (29.31) | 27.69 (27.46 / 29.54) | 14.52 / 11.61 / 3.17 | | |
| | 3 | 352 | 36.81 (37.03) | 37.43 (37.62) | 36.83 (36.64 / 37.07) | 13.86 / 20.46 / 3.02 | | |
| | 3 | 384 | 37.15 (37.43) | 38.15 (38.40) | 37.21 (37.00 / 37.88) | 14.10 / 21.20 / 3.07 | | |
| | 3 | 416 | 37.34 (37.59) | 38.94 (39.22) | 37.45 (37.25 / 38.67) | 14.24 / 21.60 / 3.12 | | |
| | 4 | 384 | 39.89 (40.12) | 41.10 (41.38) | 39.93 (39.69 / 40.68) | 16.91 / 21.16 / 3.08 | | |
| | 4 | 416 | 40.13 (40.41) | 42.24 (42.50) | 40.18 (39.86 / 41.29) | 17.11 / 21.71 / 3.12 | | |
| | 4 | 448 | 40.41 (40.65) | 43.01 (43.23) | 40.50 (40.24 / 42.03) | 17.33 / 22.25 / 3.16 | | |
| | 4 | 480 | 40.74 (40.96) | 43.48 (43.76) | 40.89 (40.57 / 42.81) | 17.49 / 22.77 / 3.19 | | |
| Every configuration: -0.19..-0.30 ms per call against round 5 (30 ms gap and back to back), from the action head's | |
| shorter LayerNorm-statistics exchange; outputs identical bit for bit in every bucket. 3 cameras at 352-416 rows and 4 | |
| cameras run the language model in two passes (PREFIX 20.5-22.8 ms alone). With 3 cameras the VISION runs twice (a 2-camera and a 1-camera run); with 4 | |
| cameras twice with 2 cameras each. | |
| ### 3.2 2 cameras, per step count (full call, 30 ms gap: this version (round 5), medians, ms) | |
| | steps | bucket 224 | 256 | 288 | 320 | back to back, bucket 224 / 320 | | |
| |---|---|---|---|---|---| | |
| | 1 | 19.28 (19.35) | 19.23 (19.30) | 19.68 (19.79) | 20.05 (20.08) | 20.15 / 22.26 | | |
| | 2 | 19.97 (20.06) | 19.89 (20.02) | 20.34 (20.47) | 20.74 (20.86) | 20.75 / 22.81 | | |
| | **4 (default)** | 21.33 (21.57) | 21.28 (21.56) | 21.72 (21.95) | 22.05 (22.32) | 22.03 / 23.93 | | |
| | 8 | 24.00 (24.48) | 23.98 (24.43) | 24.47 (24.95) | 24.80 (25.26) | 24.52 / 26.46 | | |
| | 16 | 29.46 (30.44) | 29.40 (30.35) | 29.86 (30.85) | 30.18 (31.15) | 29.47 / 31.27 | | |
| Each step adds ~0.68 ms of device time ((29.46 - 19.28) / 15 at bucket 224; round 5: 0.74 ms), for any camera count; | |
| against round 5: -0.03..-0.11 ms at 1 step, -0.09..-0.16 at 2, -0.45..-0.52 at 8, -0.95..-1.04 at 16. | |
| ### 3.3 16 steps, per camera count (30 ms gap / back to back: this version (round 5), medians, ms) | |
| | cameras | bucket 1 | bucket 2 | bucket 3 | bucket 4 | | |
| |---|---|---|---|---| | |
| | 1 (160 / 192 / 224 / 256) | 26.16 / 26.15 (27.12 / 27.11) | 26.22 / 26.28 (27.22 / 27.22) | 26.71 / 26.76 (27.67 / 27.70) | 26.69 / 26.75 (27.64 / 27.73) | | |
| | 2 (224 / 256 / 288 / 320) | 29.46 / 29.47 (30.44 / 30.45) | 29.40 / 29.79 (30.35 / 30.78) | 29.86 / 30.54 (30.85 / 31.49) | 30.18 / 31.27 (31.15 / 32.31) | | |
| | 3 (320 / 352 / 384 / 416) | 35.72 / 36.39 (36.66 / 37.33) | 44.90 / 44.96 (45.85 / 46.00) | 45.32 / 45.53 (46.28 / 46.48) | 45.52 / 46.29 (46.50 / 47.26) | | |
| | 4 (384 / 416 / 448 / 480) | 47.97 / 48.31 (48.98 / 49.35) | 48.19 / 49.44 (49.21 / 50.47) | 48.52 / 50.26 (49.50 / 51.19) | 48.83 / 50.97 (49.73 / 51.99) | | |
| ## 4. Served latency (HTTP) | |
| The server was started as the container starts it, with the configuration set in its environment. Requests | |
| went over loopback HTTP, one at a time. Per bucket: one warm request, then 100 identical requests (the shipped | |
| sample's cameras as 256 x 256 PNGs, repeated or truncated to n; its task, or "pick up the black bowl" where the task | |
| does not fit; seed 0; `prompt_bucket` set). Every repeat returned the same chunk bit for bit (2,800 / 2,800). The | |
| times are the server's `timing_ms` and the client round trip in ms; ranges are over the 4 buckets. Host load | |
| average 4.5-6.2. | |
| | configuration | buckets | `inference` p50 / largest p99 | `total` p50 / largest p99 | client round trip p50 | `preprocess` p50 | server READY | | |
| |---|---|---|---|---|---|---| | |
| | 1 camera, 4 steps | 160 / 192 / 224 / 256 | 18.9-19.5 / 19.7 | 24.4-25.5 / 27.3 | 26.3-27.5 | 5.3-6.0 | 17.7 s | | |
| | 1 camera, 8 steps | 160 / 192 / 224 / 256 | 21.6-22.2 / 23.1 | 27.4-28.3 / 29.6 | 29.4-30.4 | 4.9-6.1 | 19.5 s | | |
| | **2 cameras, 4 steps (default)** | 224 / 256 / 288 / 320 | 22.0-22.9 / 23.2 | 32.1-32.9 / 35.8 | 34.4-35.3 | 9.7-9.9 | 18.2 s | | |
| | 2 cameras, 16 steps | 224 / 256 / 288 / 320 | 30.2-31.0 / 31.3 | 39.0-40.4 / 44.5 | 41.4-42.8 | 8.2-9.9 | 22.5 s | | |
| | 3 cameras, 4 steps | 320 / 352 / 384 / 416 | 29.2 (320) and 38.4-39.0 / 39.8 | 41.4 (320) and 50.8-51.8 / 54.9 | 44.1-54.6 | 12.0-12.5 | 18.5 s | | |
| | 4 cameras, 4 steps | 384 / 416 / 448 / 480 | 41.2-42.0 / 42.4 | 56.4-57.1 / 62.0 | 59.4-60.2 | 14.7-15.1 | 18.5 s | | |
| | 4 cameras, 8 steps | 384 / 416 / 448 / 480 | 43.9-44.7 / 45.1 | 59.2-62.4 / 64.5 | 62.2-65.6 | 14.8-18.1 | 20.0 s | | |
| `inference` is the device part: upload, the trace replay and readback. The rest of `total` is host work that grows | |
| with the number and size of the cameras: decoding and resizing each image. On a busier host this part grows (the | |
| previous evaluation measured a `total` p50 of 33-115 ms with 1-3 cameras at a load average of 11-12, with | |
| `inference` within ~1-5 ms of its quiet-host value). | |
| ## 5. Start-up | |
| Time to create the model through the Python API (`VLAJEPA.from_pretrained(num_cameras=n, num_steps=N)`). This | |
| covers reading the checkpoint, folding and packing the weights into the three device programs, uploading them, | |
| capturing every bucket's traces and one warm request per bucket. The kernel cache was warm. All runs were in one | |
| process, one after another (after a first creation that also pays the first checkpoint read), at a host load average | |
| of 5.4-6.7. | |
| | configuration | 2 cameras, 1 step | 2 cameras, 4 steps | 3 cameras, 4 steps | 4 cameras, 4 steps | 1 camera, 16 steps | 2 cameras, 16 steps | 3 cameras, 16 steps | 4 cameras, 16 steps | | |
| |---|---|---|---|---|---|---|---|---| | |
| | creation, s | 7.1 | 8.0 | 8.4 | 9.9 | 15.4 | 14.6 | 14.9 | 15.1 | | |
| Each step adds ~0.4-0.5 s, mostly host-side folding and packing of the action head's per-step weights. A server | |
| reports READY (`/health` `ok`) 17.7-20.0 s after it starts at 1-8 steps and 22.5 s at 16 steps (section 4). That is | |
| the creation plus the process start, imports and opening the device. The first start on a machine also compiles the | |
| device kernels (a 3 / 4-camera configuration compiles up to 8 language-model programs, two per two-pass bucket). | |
| ## 6. Stability | |
| - Replays: for every camera count at 4 steps and at 16 steps, each of the 32 buckets was replayed 500 times back to | |
| back and 500 times with a 30 ms idle gap before each replay, with this evaluation's hold-out case of the bucket. | |
| The output was read back every 50 replays, and each bucket's trace pair (VISION | PREFIX + EXPERT) was also | |
| replayed 100 times. Then 200 replays in random bucket order (every second one after a 30 ms gap), each one checked. | |
| All of this ran with Metal's trace-allocation check armed (`TT_METAL_TRACE_ALLOC_TRACKING=1`). Result: 0 | |
| mismatches and no hang. Back to back, the 4-step medians were 18.1-20.2 ms (1 camera), 22.4-24.9 (2), 29.4 / 37.5- | |
| 39.6 (3) and 41.5-44.3 ms (4); with the 30 ms gap 18.0-18.6, 21.3-22.2, 27.7 / 36.9-37.4 and 39.9-40.7 ms (host | |
| load average 4-14). | |
| - Paths: in every configuration and case of section 2, five paths gave the same chunk bit for bit: the serving call | |
| with a new instruction, the same call with the instruction already on the device, the trace pair, the full-call | |
| trace and the eager op sequence. | |
| - Served (the server started as the container starts it; HTTP; a mix of requests: LeRobot goldens, the sample, and | |
| synthetic cameras from 224 x 224 to 1280 x 720 in PNG and JPEG, with repeated requests mixed in; trace-allocation | |
| check armed): 500 requests with the default configuration and 200 each with 3 and 4 cameras. There were 0 errors | |
| and every repeated request gave the same chunk bit for bit (434 / 140 / 140 repeats). Every LeRobot golden in these | |
| runs passed its gate (the default configuration's 22 goldens: lowest PCC 0.99982; the 16 configuration goldens of | |
| 3 and 4 cameras at 4 steps: lowest PCC 0.99955 / 0.99921, within the criterion of section 2). Each server shut down | |
| cleanly. `inference` p50 / p99 over the mix: 22.6 / 23.6 ms (default), 38.9 / 39.7 ms (3 cameras), 41.9 / 42.8 ms | |
| (4 cameras); `total` p99 51 / 143 / 142 ms, dominated by decoding up to four 1280 x 720 images per request (host | |
| load average 5-7). | |
| - WORKER dispatch (11 x 10, not a serve profile): the device gate suite passes with the trace-allocation check | |
| armed; the 3 / 4-camera prompts above 320 rows run as two passes there as well. | |
| ## 7. Reproduce | |
| ```bash | |
| # device latency of one configuration (10 ms gap, each program alone): inside the image or with PYTHONPATH=code | |
| python code/scripts/bench.py --sample --reps 100 --num-cameras 3 --num-steps 4 | |
| # a served configuration: SERVING.md section 4.1 (VLA_JEPA_NUM_CAMERAS / VLA_JEPA_NUM_STEPS in the launch command) | |
| ``` | |
| The accuracy numbers need LeRobot's VLA-JEPA run on CPU with the same configuration (not shipped). | |
| `code/tt_vla_jepa/tests/test_config_device.py` is the package's gate for them (`VLA_JEPA_CONFIG_GOLDEN`). | |