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

Scaling config yaml #454

Merged
merged 3 commits into from
May 22, 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
2 changes: 2 additions & 0 deletions pipeline/cloud/schemas/pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ class PipelineCreate(BaseModel):

cluster: PipelineClusterConfig | None = None

scaling_config: str | None = None

# Additional meta data
description: t.Optional[str]
readme: t.Optional[str]
Expand Down
5 changes: 2 additions & 3 deletions pipeline/console/container/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class PipelineConfig(BaseModel):
readme: str | None = None
extras: t.Dict[str, t.Any] | None
cluster: cluster_schemas.PipelineClusterConfig | None = None
scaling_config_name: str | None = None

class Config:
extra = "forbid"
Expand Down Expand Up @@ -492,14 +493,12 @@ def _push_container(namespace: Namespace):
image=image_to_push_reg,
input_variables=[],
output_variables=[],
minimum_cache_number=None,
maximum_cache_number=None,
gpu_memory_min=pipeline_config.accelerator_memory,
accelerators=pipeline_config.accelerators,
description=pipeline_config.description,
readme=pipeline_config.readme,
extras=pipeline_config.extras,
cluster=pipeline_config.cluster,
scaling_config=pipeline_config.scaling_config_name,
).json()
),
)
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.1.9"
version = "2.1.10"
description = "Pipelines for machine learning workloads."
authors = [
"Paul Hetherington <ph@mystic.ai>",
Expand Down
Loading