Skip to content

Commit

Permalink
h100 -- support correctly restricting machine types
Browse files Browse the repository at this point in the history
  • Loading branch information
williamstein committed Jan 28, 2025
1 parent 20a75e5 commit b7c07eb
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/packages/frontend/compute/google-cloud-config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -976,18 +976,14 @@ function MachineType({ priceData, setConfig, configuration, disabled, state }) {
return false;
}
} else {
if (
acceleratorType == "nvidia-tesla-a100" ||
acceleratorType == "nvidia-a100-80gb" ||
acceleratorType == "nvidia-l4"
) {
if (acceleratorType == "nvidia-tesla-t4") {
return machineType.startsWith("n1-");
} else {
const machines =
priceData.accelerators[acceleratorType].machineType[
configuration.acceleratorCount ?? 1
] ?? [];
return machines.includes(machineType);
} else {
return machineType.startsWith("n1-");
}
}

Expand Down

0 comments on commit b7c07eb

Please sign in to comment.