Skip to content

Commit

Permalink
fix: adjust aws_c5.18xlarge memory size (#991)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Zhipa <[email protected]>
  • Loading branch information
clumsy and azzhipa authored Mar 7, 2025
1 parent 767bc29 commit 357b9d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion torchx/specs/named_resources_aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,11 @@ def aws_m5_2xlarge() -> Resource:

def aws_c5_18xlarge() -> Resource:
return Resource(
cpu=72, gpu=0, memMB=144 * GiB, capabilities={K8S_ITYPE: "c5.18xlarge"}
# using lower memory size than the spec since MEM_TAX is not enough for adjustment
cpu=72,
gpu=0,
memMB=142 * GiB,
capabilities={K8S_ITYPE: "c5.18xlarge"},
)


Expand Down
2 changes: 1 addition & 1 deletion torchx/specs/test/named_resources_aws_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def test_aws_c5_18xlarge(self) -> None:
resource = aws_c5_18xlarge()
self.assertEqual(72, resource.cpu)
self.assertEqual(0, resource.gpu)
self.assertEqual(144 * GiB, resource.memMB)
self.assertEqual(142 * GiB, resource.memMB)

def test_aws_t3_medium(self) -> None:
resource = aws_t3_medium()
Expand Down

0 comments on commit 357b9d9

Please sign in to comment.