sayehghp commited on
Commit
c2420a4
·
1 Parent(s): af1afd3

update Docker

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -55,6 +55,9 @@ RUN pip install \
55
  torchaudio==2.3.0 \
56
  --index-url https://download.pytorch.org/whl/cu121
57
 
 
 
 
58
  # -----------------------------------------------------------------------------
59
  # Copy requirements & install Python deps
60
  # (We install requirements AFTER torch so pip doesn't upgrade it to 2.6+)
@@ -83,10 +86,9 @@ RUN pip install --no-build-isolation .
83
  # (adjust the path if your repo structure is slightly different)
84
  # WORKDIR /app/VG/groundingdino/models/GroundingDINO
85
  # RUN if [ -f setup.py ]; then python setup.py build_ext --inplace; fi
86
- ENV TORCH_CUDA_ARCH_LIST="7.0;7.5;8.0;8.6"
87
 
88
  # Build the CUDA ops explicitly
89
- WORKDIR /app/VG/groundingdino/models/ops
90
  RUN python setup.py build_ext --inplace && python setup.py install
91
 
92
  # Back to app root
 
55
  torchaudio==2.3.0 \
56
  --index-url https://download.pytorch.org/whl/cu121
57
 
58
+
59
+ # Tell PyTorch which CUDA archs to compile for (T4, A100, etc.)
60
+ ENV TORCH_CUDA_ARCH_LIST="7.0;7.5;8.0;8.6"
61
  # -----------------------------------------------------------------------------
62
  # Copy requirements & install Python deps
63
  # (We install requirements AFTER torch so pip doesn't upgrade it to 2.6+)
 
86
  # (adjust the path if your repo structure is slightly different)
87
  # WORKDIR /app/VG/groundingdino/models/GroundingDINO
88
  # RUN if [ -f setup.py ]; then python setup.py build_ext --inplace; fi
 
89
 
90
  # Build the CUDA ops explicitly
91
+ WORKDIR /app/VG
92
  RUN python setup.py build_ext --inplace && python setup.py install
93
 
94
  # Back to app root