LoopsDeployment¶
- class baseten.client.managementapi.LoopsDeployment(*, id, active_run_id=None, latest_run_id=None, base_model, base_checkpoint=None, base_url, status, user, created_at, availability_model='standard', instance_type, node_count=1, sampler=None)¶
Bases:
BaseModel- Parameters:
id (Annotated[str, FieldInfo(annotation=NoneType, required=True, title='Id', description='The Loops deployment ID.')])
active_run_id (Annotated[str | None, FieldInfo(annotation=NoneType, required=True, title='Active Run Id', description="The ID of the run currently active on this deployment, if any. Null when the deployment's runs have been marked inactive (e.g. scale-to-zero) without a successor.")])
latest_run_id (Annotated[str | None, FieldInfo(annotation=NoneType, required=True, title='Latest Run Id', description='The ID of the most recent run on this deployment, active or not, so idle deployments still expose a usable run handle. Null only if the deployment has no runs.')])
base_model (Annotated[str, FieldInfo(annotation=NoneType, required=True, title='Base Model', description='The HuggingFace base model the deployment is fine-tuning.')])
base_checkpoint (Annotated[str | None, FieldInfo(annotation=NoneType, required=True, title='Base Checkpoint', description="The custom base checkpoint the deployment's trainer loaded, pinned to a commit (hf://<org>/<repo>@<sha>). Null when it uses the base model's own weights.")])
base_url (Annotated[str, FieldInfo(annotation=NoneType, required=True, title='Base Url', description="The run's base URL.")])
status (Annotated[LoopsDeploymentStatus, FieldInfo(annotation=NoneType, required=True, description='Latest deployment status.')])
user (Annotated[User, FieldInfo(annotation=NoneType, required=True, description='The user who owns the Loops deployment.')])
created_at (Annotated[AwareDatetime, FieldInfo(annotation=NoneType, required=True, title='Created At', description='Time the deployment was created in ISO 8601 format.')])
availability_model (Annotated[Literal['standard', 'spot'] | str, FieldInfo(annotation=NoneType, required=True, title='AvailabilityModelV1', description='Capacity the trainer was scheduled on.')])
instance_type (Annotated[InstanceType, FieldInfo(annotation=NoneType, required=True, description='Instance type backing the trainer.')])
node_count (Annotated[int, FieldInfo(annotation=NoneType, required=True, title='Node Count', description='Number of nodes backing the trainer.')])
sampler (Annotated[LoopsSampler | None, FieldInfo(annotation=NoneType, required=True, description='The sampler bound to this deployment.')])
- model_config = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].