Skip to content

Commit f14700c

Browse files
authored
Merge branch 'main' into fix-jumpstart-object-detection-example-notebook
2 parents 3285576 + e642782 commit f14700c

File tree

12 files changed

+2939
-0
lines changed

12 files changed

+2939
-0
lines changed

sagemaker_model_monitor/index.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,12 @@ LLM Monitoring
5858
:maxdepth: 1
5959

6060
llm_monitor_byoc/byoc_llm_monitor
61+
62+
LLM Mutliple Evauation Monitoring
63+
==============================
64+
65+
.. toctree::
66+
:maxdepth: 1
67+
68+
llm_multiple_evals_monitor_byoc/byoc_llm_multiple_evals_monitor
6169

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
FROM --platform=linux/amd64 ubuntu:22.04 as build
2+
3+
# Install required packages
4+
RUN apt-get update && apt-get install -y \
5+
python3.10 \
6+
python3.10-dev \
7+
python3-pip \
8+
build-essential \
9+
libssl-dev \
10+
libffi-dev \
11+
git \
12+
&& rm -rf /var/lib/apt/lists/*
13+
14+
# Set the default Python version to 3.10
15+
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1
16+
RUN update-alternatives --config python3
17+
18+
# Copy requirements.txt and install dependencies
19+
COPY requirements.txt /opt/program/requirements.txt
20+
RUN pip3 install -r /opt/program/requirements.txt
21+
22+
# Set working directory and copy application files
23+
WORKDIR /opt/program
24+
COPY src /opt/program
25+
26+
ENV DOCKER_CONTAINER=1 EVAL_RESULTS_PATH=/opt/ml/processing/output/
27+
28+
# Set execute permission for main.py
29+
RUN chmod +x /opt/program/main.py
30+
31+
# Set entrypoint to main.py
32+
ENTRYPOINT ["python3", "/opt/program/main.py"]

0 commit comments

Comments
 (0)