Update CUDA to 12.4.1 and unpin PyTorch version to fix torchao/int1 compatibility
Browse files- 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.
|
| 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
|
| 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 .
|
|
|
|
| 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 .
|