Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A10 GPU support #436

Merged
merged 1 commit into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading