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

LLM Monitoring Multiple Evals #4718

Merged
merged 5 commits into from
Aug 2, 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
8 changes: 8 additions & 0 deletions sagemaker_model_monitor/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,12 @@ LLM Monitoring
:maxdepth: 1

llm_monitor_byoc/byoc_llm_monitor

LLM Mutliple Evauation Monitoring
==============================

.. toctree::
:maxdepth: 1

llm_multiple_evals_monitor_byoc/byoc_llm_multiple_evals_monitor

32 changes: 32 additions & 0 deletions sagemaker_model_monitor/llm_multiple_evals_monitor_byoc/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FROM --platform=linux/amd64 ubuntu:22.04 as build

# Install required packages
RUN apt-get update && apt-get install -y \
python3.10 \
python3.10-dev \
python3-pip \
build-essential \
libssl-dev \
libffi-dev \
git \
&& rm -rf /var/lib/apt/lists/*

# Set the default Python version to 3.10
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1
RUN update-alternatives --config python3

# Copy requirements.txt and install dependencies
COPY requirements.txt /opt/program/requirements.txt
RUN pip3 install -r /opt/program/requirements.txt

# Set working directory and copy application files
WORKDIR /opt/program
COPY src /opt/program

ENV DOCKER_CONTAINER=1 EVAL_RESULTS_PATH=/opt/ml/processing/output/

# Set execute permission for main.py
RUN chmod +x /opt/program/main.py

# Set entrypoint to main.py
ENTRYPOINT ["python3", "/opt/program/main.py"]
Loading