Skip to content

pkg/slurm hardcoded GPU prices are stale (p4d off 49%, p5 off 79%) and miss g6e/g7/g7e/p6 #447

Closed

Description

@scttfrdmn

Summary

pkg/slurm/resources.go getInstanceTypes() carries a hardcoded instance table
with a Price field. The GPU entries are substantially stale — p4d.24xlarge is
listed at $32.77/hr when the actual us-east-1 On-Demand rate is
$21.9576/hr, a 49% overstatement.

Evidence (live Price List API, us-east-1, 2026-07-27)

$ 21.9576  BoxUsage:p4d.24xlarge  marketoption=OnDemand
$  0.0000  BoxUsage:p4d.24xlarge  marketoption=CapacityBlock

(filtered to operatingSystem=Linux, tenancy=Shared, preInstalledSw=NA,
capacitystatus=Used — $21.9576 is the only real On-Demand rate)

Type Hardcoded Actual us-east-1 Delta
p4d.24xlarge $32.77 $21.96 -49%
p5.48xlarge $98.32 $55.04 -79%

p5.48xlarge at $98.32 is even further off — the real rate is $55.04.

Missing GPU families

The table's newest GPU generation is p5 (H100). As of July 2026 the following are
generally available and absent:

Family GPU VRAM us-east-1 $/hr
g7.* RTX PRO 4500 32 GB/GPU $2.52 (2xl)
g7e.* RTX PRO Server 6000 96 GB/GPU $3.36 (2xl)
g6e.* L40S 48 GB/GPU $10.49 (12xl)
p4de.24xlarge A100-80 ×8 640 GB $27.45
p5.4xlarge H100 ×1 80 GB $6.88
p5e/p5en.48xlarge H200 ×8 1128 GB $63.30 (p5en)
p6-b200.48xlarge B200 ×8 1432 GB $113.93
p6-b300.48xlarge B300 ×8 2149 GB $142.42

Also worth noting the p3.* (V100) entries are a retired generation.

p5.4xlarge is a notable gap for single-GPU GPU work — it is the only
H100-class type that doesn't require renting all 8 GPUs.

Also: prices are region-specific

The table has one Price per type, but GPU pricing varies sharply by region.
Verified 2026-07-27:

Type us-east-1 / us-east-2 / us-west-2 eu-central-1 ap-northeast-1 eu-west-1
g7e.4xlarge $3.998 $6.799 (+70%) $5.799 (+45%) not offered
g6e.12xlarge $10.493 $13.120 $15.217 not offered

A single number can be off by 70% depending on where the instance actually runs.

Suggested direction

Given truffle already has a live, caching On-Demand pricer
(truffle/pkg/aws/pricing.go) that spawn could call, the durable fix is probably
to source these rates from it rather than grow the hardcoded table — the same
"recipe, not cake" reasoning as #290/#389 for the AMI table, which drifted the
same way.

If the table needs to stay static (offline use, no-credentials path), then
refreshing the numbers plus a comment stating the as-of date, the region they
apply to, and that they're indicative-only would at least make the staleness
visible.

I don't know how load-bearing these prices are for slurm scheduling decisions —
if they're only used for relative ranking within the table the impact is smaller
than if they're reported to users as costs. Happy to be told this is
lower-priority than it looks.

Context

Found while building a HF-model→AWS deployment tool that compares Bedrock vs
SageMaker vs EC2 hosting costs; I was cross-checking my own GPU price table
against the suite's.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions