Skip to content

Commit

Permalink
Merge pull request #436 from mystic-ai/matthew/pc-1053-aws-gpu-options
Browse files Browse the repository at this point in the history
A10 GPU support
  • Loading branch information
MPCherry authored Mar 18, 2024
2 parents 5ee353c + 131b7de commit 6b4d2c5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions pipeline/cloud/compute_requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class Accelerator(str, Enum):
nvidia_a100_80gb_20gb: str = "nvidia_a100_80gb_20gb"
nvidia_a100_80gb_40gb: str = "nvidia_a100_80gb_40gb"

nvidia_a10: str = "nvidia_a10"

@classmethod
def from_str(cls, accelerator: str) -> "Accelerator":
if "T4" in accelerator:
Expand All @@ -31,6 +33,9 @@ def from_str(cls, accelerator: str) -> "Accelerator":
accelerator_type = Accelerator.nvidia_h100
elif "L4" in accelerator:
accelerator_type = Accelerator.nvidia_l4
# guess this works as long as its after A100
elif "A10" in accelerator:
accelerator_type = Accelerator.nvidia_a10

else:
raise Exception(f"Unknown GPU name: {accelerator}")
Expand All @@ -48,6 +53,7 @@ def valid_accelerator_config(cls, accelerators: list["Accelerator"]):
[Accelerator.nvidia_a100_80gb] * 2,
[Accelerator.nvidia_a100_80gb] * 4,
[Accelerator.nvidia_l4],
[Accelerator.nvidia_a10],
[Accelerator.cpu],
]

Expand All @@ -64,4 +70,5 @@ def valid_accelerator_config(cls, accelerators: list["Accelerator"]):
Accelerator.nvidia_a100_80gb_10gb,
Accelerator.nvidia_a100_80gb_20gb,
Accelerator.nvidia_a100_80gb_40gb,
Accelerator.nvidia_a10,
]
1 change: 1 addition & 0 deletions pipeline/container/frontend/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export type Accelerator =
| "nvidia_h100"
| "nvidia_l4"
| "nvidia_all"
| "nvidia_a10"
| "cpu";

export interface GetPipelineResponse {
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pipeline-ai"
version = "2.0.23"
version = "2.0.24"
description = "Pipelines for machine learning workloads."
authors = [
"Paul Hetherington <ph@mystic.ai>",
Expand Down

0 comments on commit 6b4d2c5

Please sign in to comment.