Skip to content

Commit

Permalink
Merge pull request #454 from mystic-ai/matthew/scaling-config-yaml
Browse files Browse the repository at this point in the history
Scaling config yaml
  • Loading branch information
MPCherry authored May 22, 2024
2 parents 087b3b1 + 6e80e8c commit 40d32ad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
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

0 comments on commit 40d32ad

Please sign in to comment.