feat: add rtx-pro-6000 hardware flavors#4259
Merged
Merged
Conversation
|
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
approved these changes
May 26, 2026
Contributor
|
This PR has been shipped as part of the v1.17.0 release. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the
rtx-pro-6000flavor family (x1/x2/x4/x8) toSpaceHardware. Without this,hf jobs run --flavor rtx-pro-6000x2 ...(and the same for Spaces / scheduled jobs /repos create|duplicate) fails Typer'sChoicevalidation: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 hardcodedSpaceHardwareenum was missing them. Mirrors the prior h200 addition in #3965.Changes
src/huggingface_hub/_space_api.py: four newSpaceHardwaremembers (RTX_PRO_6000,RTX_PRO_6000X2,RTX_PRO_6000X4,RTX_PRO_6000X8).docs/source/en/package_reference/cli.md: regenerated viapython utils/generate_cli_reference.py --update.Verification
No more
Invalid valueerror.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 theSpaceHardwareenum in_space_api.py, aligning the Python client with flavors already supported on the Hub.CLI commands that validate
--flavor/--hardwareagainst 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.