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

Remove unnecessary lib and codes on Gen AI #187

Merged
merged 4 commits into from
Jan 23, 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
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ def __init__(
# build container image from local folder
# image=ContainerImage.from_asset("web-app", platform=Platform.LINUX_AMD64),
# load pre-built image from public repository
image=ContainerImage.from_registry(
self.stack_props.container_image
),
image=ContainerImage.from_asset("web-app", platform=Platform.LINUX_AMD64),
environment={'region': self.stack_props.aws_region},
container_port=self.stack_props.container_port,
execution_role=self.ecs_task_execution_role,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ def __init__(
account_number=None,
aws_region=None,
az_count=None,
container_image=None,
container_name=None,
container_port="3000",
desired_count="2",
Expand All @@ -30,7 +29,6 @@ def __init__(
):
self.account_number = account_number
self.aws_region = aws_region
self.container_image = container_image
self.container_name = container_name
self.container_port = int(container_port)
self.desired_count = int(desired_count)
Expand Down
3 changes: 2 additions & 1 deletion cdk/examples/generative_ai_service/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
aws-cdk-lib==2.84.0
aws-cdk-lib==2.122.0
python-dotenv==0.21.0
streamlit
boto3
sagemaker==2.183.0
sentence_transformers
opensearch-py
torch==2.1.1
1 change: 0 additions & 1 deletion cdk/examples/generative_ai_service/sample.env
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ az_count="3"

# Gen AI Service Props
container_name="web-container"
container_image="public.ecr.aws/g4t0l7p7/sc-genai:latest"
container_port="80"
task_cpu="2048"
task_memory="8192"
Expand Down
143 changes: 0 additions & 143 deletions cdk/examples/generative_ai_service/web-app/pages/2_llm_langchain.py

This file was deleted.

3 changes: 0 additions & 3 deletions cdk/examples/generative_ai_service/web-app/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ requests
jinja2==3.1.3
matplotlib
boto3
langchain
opensearch-py
requests_aws4auth
sentence_transformers
pydantic
pypdf
Loading