fix(cli): align cluster NVIDIA selector handling - #499
Conversation
Co-authored-by: Blaine Kasten <blainekasten@gmail.com>
Broly Security ScanNote ✅ Clean scan Note Re-scan this PR anytime with
|
| ] | ||
| NvidiaDriverVersionParameter = Annotated[Optional[str], Parameter(help="Nvidia driver version to use for the cluster")] | ||
| CudaVersionParameter = Annotated[Optional[str], Parameter(help="CUDA version to use for the cluster")] | ||
| NvidiaDriverVersionParameter = Annotated[ |
There was a problem hiding this comment.
@cursoragent in the cli let's call this --driver
There was a problem hiding this comment.
Renamed the cluster create CLI flag from --nvidia-driver-version to --driver.
- CLI param is now
driver→--driver - Still maps to API field
nvidia_driver_version - Updated help/error strings + CLI tests
17 related unit tests passed. Pushed on cursor/cli-sdk-updates-af30 (PR #499).
There was a problem hiding this comment.
@cursoragent sorry, revert that request. I meant to ask you to change NvidiaVersionIDParameter on L28 to be named --driver
There was a problem hiding this comment.
Reverted the earlier rename and applied the intended one:
--nvidia-driver-version/--cuda-versionrestored for the legacy pair- canonical NVIDIA version ID is now
--driver(was--nvidia-version-id) - still maps to API
nvidia_version_id - help examples + tests updated
17 related tests passed. Pushed to PR #499.
Use the shorter --driver flag for the legacy NVIDIA driver selector in beta cluster create, and update help/error strings and CLI tests. Co-authored-by: Blaine Kasten <blainekasten@gmail.com>
Revert the earlier rename of the legacy selector. Keep --nvidia-driver-version/--cuda-version for semantic pairs, and rename the canonical NVIDIA version catalog flag from --nvidia-version-id to --driver. Co-authored-by: Blaine Kasten <blainekasten@gmail.com>
|
@cursoragent resolve conflicts, fix lint and tests |
|
Done. PR is mergeable again.
Verified locally: full |
Bring main into the branch, keep canonical NVIDIA version ID as --driver in help examples, preserve B300 create help coverage, and reformat create.py for ruff. Co-authored-by: Blaine Kasten <blainekasten@gmail.com>


Summary
--nvidia-version-idto be sent with legacy driver/CUDA selectorsTests
python3 -m pytest tests/cli/test_beta_clusters.py -k 'NvidiaVersionSelection or TestBetaClustersCreate'python3 -m ruff check src/together/lib/cli/api/beta/clusters/create.py src/together/lib/cli/utils/_help_examples.py tests/cli/test_beta_clusters.py