Skip to content

fix(sfcompute): report H100 memory as 80 GiB - #140

Merged
drewmalin merged 2 commits into
brevdev:mainfrom
sfcompute:mason/fix-sfcompute-gpu-memory-units
Jul 31, 2026
Merged

fix(sfcompute): report H100 memory as 80 GiB#140
drewmalin merged 2 commits into
brevdev:mainfrom
sfcompute:mason/fix-sfcompute-gpu-memory-units

Conversation

@masonsfc

@masonsfc masonsfc commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Summary

  • represent SF Compute H100 GPU memory as 80 GiB
  • add a regression test for both the legacy and structured memory fields

Why

SF Compute stored the advertised 80 GB value as decimal gigabytes and then converted it to an integer GiB value. That conversion truncated 74.5 GiB to 74, so Brev displayed less GPU memory for SF Compute H100s than for equivalent H100 offerings from other providers.

Using GiB at the metadata boundary keeps GPU.Memory and GPU.MemoryBytes consistent and reports the expected value of 80.

@masonsfc
masonsfc marked this pull request as ready for review July 31, 2026 20:13
@masonsfc
masonsfc requested a review from a team as a code owner July 31, 2026 20:13
@drewmalin
drewmalin merged commit a0287be into brevdev:main Jul 31, 2026
5 of 7 checks passed
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