Fixes for Actions
All checks were successful
Build and push Docker image in git push / build (push) Successful in 4m58s

This commit is contained in:
2024-10-04 17:47:12 +02:00
parent fa36f93466
commit fdbbbc3e3d
5 changed files with 16 additions and 9 deletions

View File

@ -29,8 +29,16 @@ RUN apt-get update \
curl wget \
htop screen
RUN python3 -m pip install --no-cache-dir --break-system-packages \
torch --index-url https://download.pytorch.org/whl/cpu
# if cpu container (install cpu only versions; for gpu, gpu versions)
RUN if [ ! -d /usr/local/cuda/ ]; then \
python3 -m pip install --no-cache-dir --break-system-packages \
torch --index-url https://download.pytorch.org/whl/cpu; \
python3 -m pip install --no-cache-dir --break-system-packages \
faiss-cpu; \
else \
python3 -m pip install --no-cache-dir --break-system-packages \
faiss-gpu; \
fi;
RUN mkdir /ums-agenten/

View File

@ -20,12 +20,12 @@ RUN apt update && \
libopenmpi-dev && \
rm -rf /var/lib/apt/lists
RUN python3 -m pip install --no-cache-dir \
RUN python3 -m pip install --no-cache-dir --break-system-packages \
torch --index-url https://download.pytorch.org/whl/cu124
RUN git clone https://github.com/NVIDIA/apex
RUN cd apex && \
pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation --config-settings "--build-option=--cpp_ext" --config-settings "--build-option=--cuda_ext" ./
pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation --break-system-packages --config-settings "--build-option=--cpp_ext" --config-settings "--build-option=--cuda_ext" ./
# fix library path for tensorflow and link a file
ENV LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/cuda/lib64"

View File

@ -17,7 +17,6 @@ matplotlib
transformers
huggingface_hub
faiss-cpu
datasets
accelerate
peft