Skip to content

Update hardware flavors with HF Hub#3965

Merged
Wauplin merged 6 commits into
mainfrom
update-hardware-flavors
Mar 24, 2026
Merged

Update hardware flavors with HF Hub#3965
Wauplin merged 6 commits into
mainfrom
update-hardware-flavors

Conversation

@cbensimon

@cbensimon cbensimon commented Mar 23, 2026

Copy link
Copy Markdown
Contributor

Note

Medium Risk
Adds new SpaceHardware enum members and updates CLI docs, but renames the A100x4/A100x8 enum attribute names to A100X4/A100X8, which can break users importing those symbols directly.

Overview
Updates the documented hf jobs --flavor options to include newly available hardware flavors (e.g. cpu-performance, sprx8, h200*, inf2x6).

Extends SpaceHardware in _space_api.py with the same new flavors and fixes the A100 family enum constant naming inconsistency by changing A100x4/A100x8 to A100X4/A100X8 (string values unchanged).

Written by Cursor Bugbot for commit a2587bc. This will update automatically on new commits. Configure here.

Also fixes the x vs X inconsistency introduced with A100 family

@cbensimon cbensimon requested review from Wauplin and lhoestq March 23, 2026 15:35

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Comment thread src/huggingface_hub/_space_api.py Outdated
Comment thread src/huggingface_hub/_space_api.py Outdated
@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.

@hanouticelina hanouticelina left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me!
(for reference, the flavors are defined here server-side)

Comment thread src/huggingface_hub/_space_api.py Outdated
@Wauplin Wauplin merged commit 5596477 into main Mar 24, 2026
20 of 21 checks passed
@Wauplin Wauplin deleted the update-hardware-flavors branch March 24, 2026 11:32
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.

3 participants