Skip to content
Open
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
4 changes: 2 additions & 2 deletions RAI/evaluator/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ async def async_main_evaluator(rai_target_name: str, baseline_only=False):
path = str(pathlib.Path(pathlib.Path.cwd())) + f"/outputs_{rai_target_name}.jsonl"

Evaluator = EVALUATOR_CLASSES["rai_target_name"]
eci_evaluator = Evaluator(azure_ai_project=azure_ai_project, credential=credential)
rai_evaluator = Evaluator(azure_ai_project=azure_ai_project, credential=credential)

randomNum = random.randint(1111, 9999)
results = evaluate(
evaluation_name="Eval-Run-" + str(randomNum) + "-" + model.title(),
data=path,
evaluators={
f"{rai_target_name}": Evaluator,
f"{rai_target_name}": rai_evaluator,
},
evaluator_config={
f"{rai_target_name}": {
Expand Down
62 changes: 0 additions & 62 deletions RAI/rai_script.sh

This file was deleted.

26 changes: 26 additions & 0 deletions docker/Dockerfile_cpu
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Build Docker image for model publish pipeline
FROM ptebic.azurecr.io/public/aifx/acpt/stable-ubuntu2004-cu121-py310-torch24x:biweekly.202502.2


# Update python version
RUN conda install python=3.12

# Update the gcc version
RUN apt install build-essential manpages-dev software-properties-common \
add-apt-repository ppa:ubuntu-toolchain-r/test \
apt update && sudo apt install gcc-11 g++-11 \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 \
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 100

# Update the cudnn
RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.1-1_all.deb \
dpkg -i cuda-keyring_1.1-1_all.deb \
apt-get update \
apt-get install -y \
apt-get -y install cudnn9-cuda-12 \
rm -rf cuda-keyring_1.1-1_all.deb

# Install the dependencies
RUN pip install --upgrade pip


26 changes: 26 additions & 0 deletions docker/Dockerfile_cuda
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Build Docker image for model publish pipeline
FROM ptebic.azurecr.io/public/aifx/acpt/stable-ubuntu2004-cu121-py310-torch24x:biweekly.202502.2


# Update python version
RUN conda install python=3.12

# Update the gcc version
RUN apt install build-essential manpages-dev software-properties-common \
add-apt-repository ppa:ubuntu-toolchain-r/test \
apt update && sudo apt install gcc-11 g++-11 \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 \
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 100

# Update the cudnn
RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.1-1_all.deb \
dpkg -i cuda-keyring_1.1-1_all.deb \
apt-get update \
apt-get install -y \
apt-get -y install cudnn9-cuda-12 \
rm -rf cuda-keyring_1.1-1_all.deb

# Install the dependencies
RUN pip install --upgrade pip


28 changes: 28 additions & 0 deletions docker/Dockerfile_torch
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Build Docker image for model publish pipeline
FROM ptebic.azurecr.io/public/aifx/acpt/stable-ubuntu2004-cu121-py310-torch24x:biweekly.202502.2


# Update python version
RUN conda install python=3.12

# Update the gcc version
RUN apt install build-essential manpages-dev software-properties-common \
add-apt-repository ppa:ubuntu-toolchain-r/test \
apt update && sudo apt install gcc-11 g++-11 \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 \
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 100

# Update the cudnn
RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.1-1_all.deb \
dpkg -i cuda-keyring_1.1-1_all.deb \
apt-get update \
apt-get install -y \
apt-get -y install cudnn9-cuda-12 \
rm -rf cuda-keyring_1.1-1_all.deb

# Install the dependencies
RUN pip install --upgrade pip

RUN pip install -r requirements-torch.txt


15 changes: 0 additions & 15 deletions docker/docker_script_cpu.sh

This file was deleted.

20 changes: 0 additions & 20 deletions docker/docker_script_cuda.sh

This file was deleted.

18 changes: 0 additions & 18 deletions docker/docker_script_torch.sh

This file was deleted.