Skip to content

Commit

Permalink
fix: fix dependency error in the job image (#296)
Browse files Browse the repository at this point in the history
Split up the unitxt and openai dependencies to
avoid the conflict.

Signed-off-by: Yihong Wang <[email protected]>
  • Loading branch information
yhwang authored Sep 17, 2024
1 parent db7ae08 commit d9b5684
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile.lmes-job
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ COPY --chown=1001:0 patch /opt/app-root/src/patch
RUN git clone https://github.com/opendatahub-io/lm-evaluation-harness.git && \
cd lm-evaluation-harness && git checkout 568af943e315100af3f00937bfd6947844769ab8 && \
curl --output lm_eval/models/bam.py https://raw.githubusercontent.com/IBM/ibm-generative-ai/main/src/genai/extensions/lm_eval/model.py && \
git apply /opt/app-root/src/patch/lmes/models.patch && pip install --no-cache-dir --user -e .[unitxt] .[openai]
git apply /opt/app-root/src/patch/lmes/models.patch && pip install --no-cache-dir --user -e .[unitxt] && \
pip install --no-cache-dir --user -e .[openai]

ENV PYTHONPATH=/opt/app-root/src/.local/lib/python3.11/site-packages:/opt/app-root/src/lm-evaluation-harness:/opt/app-root/src:/opt/app-root/src/server
ENV HF_HOME=/opt/app-root/src/hf_home
Expand Down

0 comments on commit d9b5684

Please sign in to comment.