Commit ee8aa3d
Unblock the DROID policy server setup on CUDA 13 (#187)
### Summary
Moves the **Cosmos3-Policy-DROID** server setup onto torch 2.13, adds
the instrumentation needed to measure its inference latency during
RoboLab evaluation, and makes the apex build optional — it currently
cannot build against the CUDA 13 base image at all, and is the slowest
layer by a wide margin.
### Changes
- **`docs/action_policy_droid_server.md`** — Sync the container with
`--group=cu130-torch213-train` rather than `cu130-train`, putting the
policy server on torch 2.13. The image itself still bakes in `cu130`
(torch 2.10), so the container re-syncs over the baked-in wheels at
startup. The documented `docker build` also passes `--build-arg
INSTALL_APEX=0`, since the policy server never imports apex. Also drops
the paragraph directing CUDA 12.x users to `cu128-train`.
- **`scripts/action_policy_server_robolab.py`** — Time each
`RobolabPolicyService.infer` call and print the elapsed milliseconds
when `EVAL_VERBOSE` is set, to measure server latency during RoboLab
evaluation runs. Gated behind the env var so evaluation runs opt in
without altering default server output.
- **`Dockerfile`** — Bump the apex pin `bf903a2` → `9e3568a` and add an
`INSTALL_APEX` build arg. Pin `bf903a2` assembles its own `-gencode`
flags and appends `arch=compute_70,code=sm_70` unconditionally, gated
only by lower bounds on the CUDA version, so several extensions fail on
the CUDA 13 base image with `nvcc fatal : Unsupported gpu architecture
'compute_70'`. Those code paths never consult `TORCH_CUDA_ARCH_LIST`, so
no arch override can work around it; upstream has since removed the
hand-built lists and derives the architectures from the detected CUDA
version instead. `INSTALL_APEX=0` skips the build entirely, which is
worth having regardless: apex is optional, its only import being the
`try`/`except`-guarded one in `callbacks/norm_monitor.py`.
---------
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: lfengad <liangf@nvidia.com>1 parent 44c63ea commit ee8aa3d
3 files changed
Lines changed: 21 additions & 6 deletions
File tree
- cosmos_framework/scripts
- docs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | | - | |
58 | | - | |
59 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
60 | 68 | | |
61 | 69 | | |
62 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
574 | 576 | | |
575 | 577 | | |
576 | 578 | | |
| 579 | + | |
577 | 580 | | |
578 | 581 | | |
579 | 582 | | |
| |||
616 | 619 | | |
617 | 620 | | |
618 | 621 | | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
619 | 627 | | |
620 | 628 | | |
621 | 629 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | | - | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
66 | | - | |
67 | | - | |
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
| |||
0 commit comments