File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
label_studio_ml/examples/segment_anything_2_image Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1- FROM pytorch/pytorch:2.1.2 -cuda12.1-cudnn8 -runtime
1+ FROM pytorch/pytorch:2.5.1 -cuda12.4-cudnn9 -runtime
22ARG DEBIAN_FRONTEND=noninteractive
33ARG TEST_ENV
44
55WORKDIR /app
66
7- RUN conda update conda -y
7+ RUN mamba update conda -y
88
99RUN --mount=type=cache,target="/var/cache/apt" ,sharing=locked \
1010 --mount=type=cache,target="/var/lib/apt/lists" ,sharing=locked \
@@ -23,8 +23,7 @@ ENV PYTHONUNBUFFERED=1 \
2323 THREADS=4 \
2424 CUDA_HOME=/usr/local/cuda
2525
26- # this image is already built with cuda 12.1.1, so we don't need to install it again
27- # RUN conda install -c "nvidia/label/cuda-12.1.1" cuda -y
26+ RUN mamba install nvidia/label/cuda-12.4.0::cuda -y
2827
2928ENV CUDA_HOME=/opt/conda \
3029 TORCH_CUDA_ARCH_LIST="6.0;6.1;7.0;7.5;8.0;8.6+PTX;8.9;9.0"
Original file line number Diff line number Diff line change @@ -8,6 +8,14 @@ services:
88 context : .
99 args :
1010 TEST_ENV : ${TEST_ENV}
11+ deploy :
12+ resources :
13+ reservations :
14+ devices :
15+ - driver : nvidia
16+ count : 1
17+ capabilities : [ gpu ]
18+
1119 environment :
1220 # specify these parameters if you want to use basic auth for the model server
1321 - BASIC_AUTH_USER=
You can’t perform that action at this time.
0 commit comments