K446 commited on
Commit
371b620
·
1 Parent(s): 3c0ad6e

Update CUDA to 12.4.1 and unpin PyTorch version to fix torchao/int1 compatibility

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -2,7 +2,7 @@
2
  # Serves both the UI dashboard AND GRPO training.
3
  # Set env OPENGRID_MODE=training for training mode.
4
 
5
- FROM nvidia/cuda:12.1.1-runtime-ubuntu22.04
6
 
7
  LABEL org.opencontainers.image.title="OpenGrid"
8
  LABEL org.opencontainers.image.description="Renewable energy grid load-balancing environment"
@@ -31,8 +31,8 @@ WORKDIR /app
31
  COPY --chown=user requirements.txt .
32
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
33
 
34
- # Install PyTorch with CUDA support (must come before training deps)
35
- RUN pip install --no-cache-dir torch==2.5.1 --extra-index-url https://download.pytorch.org/whl/cu121
36
 
37
  # Install training deps (only re-runs if training reqs change)
38
  COPY --chown=user requirements-training.txt .
 
2
  # Serves both the UI dashboard AND GRPO training.
3
  # Set env OPENGRID_MODE=training for training mode.
4
 
5
+ FROM nvidia/cuda:12.4.1-runtime-ubuntu22.04
6
 
7
  LABEL org.opencontainers.image.title="OpenGrid"
8
  LABEL org.opencontainers.image.description="Renewable energy grid load-balancing environment"
 
31
  COPY --chown=user requirements.txt .
32
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
33
 
34
+ # Install PyTorch (latest version to support torchao/torch.int1)
35
+ RUN pip install --no-cache-dir torch
36
 
37
  # Install training deps (only re-runs if training reqs change)
38
  COPY --chown=user requirements-training.txt .