Skip to content

Commit

Permalink
Single container deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
BeatrixCohere committed Jun 27, 2024
1 parent 48ed2ea commit b02b71e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 35 deletions.
56 changes: 28 additions & 28 deletions src/backend/config/deployments.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,41 +30,41 @@ class ModelDeploymentName(StrEnum):


ALL_MODEL_DEPLOYMENTS = {
ModelDeploymentName.CoherePlatform: Deployment(
name=ModelDeploymentName.CoherePlatform,
deployment_class=CohereDeployment,
models=CohereDeployment.list_models(),
is_available=CohereDeployment.is_available(),
env_vars=COHERE_ENV_VARS,
),
# ModelDeploymentName.CoherePlatform: Deployment(
# name=ModelDeploymentName.CoherePlatform,
# deployment_class=CohereDeployment,
# models=CohereDeployment.list_models(),
# is_available=CohereDeployment.is_available(),
# env_vars=COHERE_ENV_VARS,
# ),
ModelDeploymentName.SingleContainer: Deployment(
name=ModelDeploymentName.SingleContainer,
deployment_class=SingleContainerDeployment,
models=SingleContainerDeployment.list_models(),
is_available=SingleContainerDeployment.is_available(),
env_vars=SC_ENV_VARS,
),
ModelDeploymentName.SageMaker: Deployment(
name=ModelDeploymentName.SageMaker,
deployment_class=SageMakerDeployment,
models=SageMakerDeployment.list_models(),
is_available=SageMakerDeployment.is_available(),
env_vars=SAGE_MAKER_ENV_VARS,
),
ModelDeploymentName.Azure: Deployment(
name=ModelDeploymentName.Azure,
deployment_class=AzureDeployment,
models=AzureDeployment.list_models(),
is_available=AzureDeployment.is_available(),
env_vars=AZURE_ENV_VARS,
),
ModelDeploymentName.Bedrock: Deployment(
name=ModelDeploymentName.Bedrock,
deployment_class=BedrockDeployment,
models=BedrockDeployment.list_models(),
is_available=BedrockDeployment.is_available(),
env_vars=BEDROCK_ENV_VARS,
),
# ModelDeploymentName.SageMaker: Deployment(
# name=ModelDeploymentName.SageMaker,
# deployment_class=SageMakerDeployment,
# models=SageMakerDeployment.list_models(),
# is_available=SageMakerDeployment.is_available(),
# env_vars=SAGE_MAKER_ENV_VARS,
# ),
# ModelDeploymentName.Azure: Deployment(
# name=ModelDeploymentName.Azure,
# deployment_class=AzureDeployment,
# models=AzureDeployment.list_models(),
# is_available=AzureDeployment.is_available(),
# env_vars=AZURE_ENV_VARS,
# ),
# ModelDeploymentName.Bedrock: Deployment(
# name=ModelDeploymentName.Bedrock,
# deployment_class=BedrockDeployment,
# models=BedrockDeployment.list_models(),
# is_available=BedrockDeployment.is_available(),
# env_vars=BEDROCK_ENV_VARS,
# ),
}


Expand Down
14 changes: 7 additions & 7 deletions src/community/config/deployments.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ class ModelDeploymentName(StrEnum):


AVAILABLE_MODEL_DEPLOYMENTS = {
ModelDeploymentName.HuggingFace: Deployment(
name=ModelDeploymentName.HuggingFace,
deployment_class=HuggingFaceDeployment,
models=HuggingFaceDeployment.list_models(),
is_available=HuggingFaceDeployment.is_available(),
env_vars=[],
),
# ModelDeploymentName.HuggingFace: Deployment(
# name=ModelDeploymentName.HuggingFace,
# deployment_class=HuggingFaceDeployment,
# models=HuggingFaceDeployment.list_models(),
# is_available=HuggingFaceDeployment.is_available(),
# env_vars=[],
# ),
# Add the below for local model deployments
# ModelDeploymentName.LocalModel: Deployment(
# name=ModelDeploymentName.LocalModel,
Expand Down

0 comments on commit b02b71e

Please sign in to comment.