Skip to content

Commit

Permalink
feat: add bedrock choice in common.py
Browse files Browse the repository at this point in the history
  • Loading branch information
takipipo committed Apr 24, 2024
1 parent 0dcb822 commit 7512357
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/llmperf/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
)
from llmperf.ray_clients.sagemaker_client import SageMakerClient
from llmperf.ray_clients.vertexai_client import VertexAIClient
from llmperf.ray_clients.bedrock_client import BedrockClient
from llmperf.ray_llm_client import LLMClient


Expand All @@ -28,6 +29,8 @@ def construct_clients(llm_api: str, num_clients: int) -> List[LLMClient]:
clients = [SageMakerClient.remote() for _ in range(num_clients)]
elif llm_api == "vertexai":
clients = [VertexAIClient.remote() for _ in range(num_clients)]
elif llm_api == "bedrock":
clients = [BedrockClient.remote() for _ in range(num_clients)]
elif llm_api in SUPPORTED_APIS:
clients = [LiteLLMClient.remote() for _ in range(num_clients)]
else:
Expand Down

0 comments on commit 7512357

Please sign in to comment.