Skip to content

Commit

Permalink
remove completely broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ef0xa committed Feb 10, 2025
1 parent d5acd32 commit 559aec6
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 87 deletions.
73 changes: 0 additions & 73 deletions .github/workflows/CI-test_handler.yml

This file was deleted.

27 changes: 14 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
ARG WORKER_CUDA_VERSION=12.1.0
# ATTENTION: is this still the right CUDA version?
ARG WORKER_CUDA_VERSION=12.1.0
FROM runpod/base:0.6.2-cuda${WORKER_CUDA_VERSION}

#Reinitialize, as its lost after the FROM command
# &efron: this doesn't quite follow to me.
ARG WORKER_CUDA_VERSION=12.1.0

# Python dependencies
COPY builder/requirements.txt /requirements.txt
RUN python3.11 -m pip install --upgrade pip && \
python3.11 -m pip install -r /requirements.txt --no-cache-dir && \
rm /requirements.txt
# Python dependencies.

RUN pip uninstall torch -y && \
CUDA_VERSION_SHORT=$(echo ${WORKER_CUDA_VERSION} | cut -d. -f1,2 | tr -d .) && \
pip install --pre torch==2.4.0.dev20240518+cu${CUDA_VERSION_SHORT} --index-url https://download.pytorch.org/whl/nightly/cu${CUDA_VERSION_SHORT} --no-cache-dir

ENV HF_HOME=/runpod-volume

# Add src files (Worker Template)
ADD src .
RUN --mount-type=cache,target=/root/.cache/pip python3.11 -m pip install --upgrade pip

CMD python3.11 -u /handler.py
# we're always going to do this. important to do this FIRST - it can take >2m and we want to cache the result as early as possible.
# TODO: pin this to a specific version
RUN --mount-type=cache,target=/root/.cache/pip python3.11 -m pip install torch torchvision torchaudio

# ourother requirements may change; updating the version of infinity embedding, for instance.
COPY builder/requirements.txt /requirements.txt
RUN --mount-type=cache,target=/root/.cache/pippython3.11 -m pip install -r /requirements.txt
COPY ./src /src
CMD python3.11 -u /src/handler.py
2 changes: 1 addition & 1 deletion builder/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
runpod~=1.7.0
runpod>=1.7.7
infinity-emb[all,onnxruntime-gpu]==0.0.75
einops # deployment of custom code with nomic
Empty file added test.sh
Empty file.

0 comments on commit 559aec6

Please sign in to comment.