Skip to content

feat: add rtx-pro-6000 hardware flavors#4259

Merged
Wauplin merged 1 commit into
mainfrom
add-rtx-pro-6000-flavors
May 26, 2026
Merged

feat: add rtx-pro-6000 hardware flavors#4259
Wauplin merged 1 commit into
mainfrom
add-rtx-pro-6000-flavors

Conversation

@christophe-rannou

@christophe-rannou christophe-rannou commented May 26, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds the rtx-pro-6000 flavor family (x1/x2/x4/x8) to SpaceHardware. Without this, hf jobs run --flavor rtx-pro-6000x2 ... (and the same for Spaces / scheduled jobs / repos create|duplicate) fails Typer's Choice validation:

Error: Invalid value for '--flavor': 'rtx-pro-6000x2' is not one of 'cpu-basic', ..., 'h200x8', 'inf2x6'.

These flavors are already wired up on the platform side (moon-landing SpaceHardwareFlavor.ts, workloads jobs/endpoints control planes, billing products). Only the Python CLI's hardcoded SpaceHardware enum was missing them. Mirrors the prior h200 addition in #3965.

Changes

  • src/huggingface_hub/_space_api.py: four new SpaceHardware members (RTX_PRO_6000, RTX_PRO_6000X2, RTX_PRO_6000X4, RTX_PRO_6000X8).
  • docs/source/en/package_reference/cli.md: regenerated via python utils/generate_cli_reference.py --update.

Verification

$ hf jobs run --flavor rtx-pro-6000x2 --help
Usage: hf jobs run [OPTIONS] IMAGE COMMAND...
  ...

No more Invalid value error.


This PR was prepared with assistance from Claude Code.


Note

Low Risk
Small enum and generated-docs update only; no auth, API contract, or runtime logic changes beyond allowing new flavor strings.

Overview
Adds RTX Pro 6000 hardware flavors (rtx-pro-6000, x2, x4, x8) to the SpaceHardware enum in _space_api.py, aligning the Python client with flavors already supported on the Hub.

CLI commands that validate --flavor / --hardware against that enum—Jobs (run, scheduled/UV), Spaces settings, and repos create/duplicate—now accept these values instead of failing Typer choice validation. The English CLI reference was regenerated so help text lists the new options.

Reviewed by Cursor Bugbot for commit eac9c58. Bugbot is set up for automated code reviews on this repo. Configure here.

@christophe-rannou christophe-rannou requested a review from Wauplin May 26, 2026 08:16
@bot-ci-comment

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@Wauplin Wauplin merged commit 7ffb702 into main May 26, 2026
22 checks passed
@Wauplin Wauplin deleted the add-rtx-pro-6000-flavors branch May 26, 2026 12:38
@huggingface-hub-bot

Copy link
Copy Markdown
Contributor

This PR has been shipped as part of the v1.17.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants