Skip to content

Commit dc03620

Browse files
authored
tidy: clean up lmes-job image (#333)
remove BAM related packages and patch. Signed-off-by: Yihong Wang <[email protected]>
1 parent 61744ff commit dc03620

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Dockerfile.lmes-job

+1-4
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,10 @@ RUN mkdir -p /opt/app-root/src/my_catalogs/cards && chmod -R g+rwx /opt/app-root
1212
RUN mkdir -p /opt/app-root/src/.cache
1313
ENV PATH="/opt/app-root/bin:/opt/app-root/src/.local/bin/:/opt/app-root/src/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
1414

15-
RUN pip install --no-cache-dir --user --upgrade ibm-generative-ai[lm-eval]
16-
COPY --chown=1001:0 patch /opt/app-root/src/patch
1715
# Clone the Git repository, check out v0.4.4 and install the Python package
1816
RUN git clone https://github.com/opendatahub-io/lm-evaluation-harness.git && \
1917
cd lm-evaluation-harness && git checkout 543617fef9ba885e87f8db8930fbbff1d4e2ca49 && \
20-
curl --output lm_eval/models/bam.py https://raw.githubusercontent.com/IBM/ibm-generative-ai/main/src/genai/extensions/lm_eval/model.py && \
21-
git apply /opt/app-root/src/patch/lmes/models.patch && pip install --no-cache-dir --user -e .[api]
18+
pip install --no-cache-dir --user -e .[api]
2219

2320
RUN python -c 'from lm_eval.tasks.unitxt import task; import os.path; print("class: !function " + task.__file__.replace("task.py", "task.Unitxt"))' > ./my_tasks/unitxt
2421

0 commit comments

Comments
 (0)