Skip to content

[Jobs] Add ephemeral_storage field to JobHardware#4233

Merged
Wauplin merged 1 commit into
mainfrom
add-ephemeral-storage-to-job-hardware
May 21, 2026
Merged

[Jobs] Add ephemeral_storage field to JobHardware#4233
Wauplin merged 1 commit into
mainfrom
add-ephemeral-storage-to-job-hardware

Conversation

@Wauplin

@Wauplin Wauplin commented May 19, 2026

Copy link
Copy Markdown
Collaborator

context: https://huggingface.slack.com/archives/C07RD3RVD5W/p1779182444778049?thread_ts=1776291512.670289&cid=C07RD3RVD5W

Following https://github.com/huggingface-internal/moon-landing/pull/18232, the GET /api/jobs/hardware endpoint now returns an ephemeralStorage field per flavor.

  • Added ephemeral_storage: str field to the JobHardware dataclass.
  • Added a STORAGE column to hf jobs hardware CLI output.
>>> from huggingface_hub import list_jobs_hardware
>>> hw = list_jobs_hardware()[0]
>>> hw.ephemeral_storage
'20 GB'
$ hf jobs hardware
NAME            PRETTY NAME            CPU      RAM     STORAGE  ACCELERATOR       COST/MIN COST/HOUR 
--------------- ---------------------- -------- ------- -------- ----------------- -------- --------- 
cpu-basic       CPU Basic              2 vCPU   16 GB   50 GB                      $0.0002  $0.01     
cpu-upgrade     CPU Upgrade            8 vCPU   32 GB   50 GB                      $0.0005  $0.03     
cpu-performance CPU Performance        32 vCPU  256 GB  1024 GB                    $0.0317  $1.90     
cpu-xl          CPU XL                 16 vCPU  124 GB  1000 GB                    $0.0167  $1.00 
...

🤖 Generated with Claude Code


Note

Low Risk
Low risk: adds an optional ephemeral_storage field with a safe default and only extends display/docs, without changing request/response flows beyond reading one extra API field.

Overview
Exposes the new ephemeralStorage value returned by GET /api/jobs/hardware by adding ephemeral_storage to JobHardware (defaulting to "N/A" when absent) and updating examples/docs accordingly.

Updates hf jobs hardware to show a new STORAGE column populated from hw.ephemeral_storage.

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

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Wauplin Wauplin requested a review from hanouticelina May 19, 2026 09:57
@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.

Thanks!

@Wauplin Wauplin merged commit 06d6990 into main May 21, 2026
21 checks passed
@Wauplin Wauplin deleted the add-ephemeral-storage-to-job-hardware branch May 21, 2026 10:01
@huggingface-hub-bot

Copy link
Copy Markdown
Contributor

This PR has been shipped as part of the v1.16.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