Spaces:
Sleeping
Sleeping
encryptd commited on
Commit ·
a35ce3f
1
Parent(s): 1cc1c9e
Remove torchvision pin to allow vllm 0.12.0 to resolve its own torchvision dependency
Browse files- Dockerfile +1 -1
- handover.md +2 -2
- requirements.txt +0 -1
Dockerfile
CHANGED
|
@@ -17,7 +17,7 @@ RUN useradd -m -u 1000 user
|
|
| 17 |
WORKDIR /app
|
| 18 |
|
| 19 |
COPY --chown=user requirements.txt ./
|
| 20 |
-
RUN python3 -m pip install --no-cache-dir torch==2.6.0+cu124
|
| 21 |
RUN python3 -m pip install --no-cache-dir -r requirements.txt
|
| 22 |
|
| 23 |
|
|
|
|
| 17 |
WORKDIR /app
|
| 18 |
|
| 19 |
COPY --chown=user requirements.txt ./
|
| 20 |
+
RUN python3 -m pip install --no-cache-dir torch==2.6.0+cu124 --index-url https://download.pytorch.org/whl/cu124
|
| 21 |
RUN python3 -m pip install --no-cache-dir -r requirements.txt
|
| 22 |
|
| 23 |
|
handover.md
CHANGED
|
@@ -50,9 +50,9 @@ This document maintains a persistent, sequential log of all operations and state
|
|
| 50 |
### 6. Resolution of the NVIDIA Driver 12040 Mismatch (Completed)
|
| 51 |
- **Problem:** When `pip` installed the standard `torch` package, it fell back to PyPI's default CUDA 13.0/12.8 wheel because the `https://download.pytorch.org/whl/cu124` index contains `2.6.0+cu124` (requiring the exact version suffix match to prevent PyPI fallback). This mismatch crashed the container runtime on the Space's A100 GPU host (which runs NVIDIA driver `12040` supporting up to CUDA 12.4).
|
| 52 |
- **Resolution:**
|
| 53 |
-
- Updated `requirements.txt` to explicitly request `torch==2.6.0+cu124`
|
| 54 |
- Added a direct pre-installation layer in the `Dockerfile` targeting `--index-url https://download.pytorch.org/whl/cu124` to absolutely guarantee that PyTorch installs the CUDA 12.4 pre-compiled wheel.
|
| 55 |
-
- This guarantees PyTorch matches the host's driver version (`12040`) perfectly while allowing the modern `vllm==0.
|
| 56 |
|
| 57 |
---
|
| 58 |
|
|
|
|
| 50 |
### 6. Resolution of the NVIDIA Driver 12040 Mismatch (Completed)
|
| 51 |
- **Problem:** When `pip` installed the standard `torch` package, it fell back to PyPI's default CUDA 13.0/12.8 wheel because the `https://download.pytorch.org/whl/cu124` index contains `2.6.0+cu124` (requiring the exact version suffix match to prevent PyPI fallback). This mismatch crashed the container runtime on the Space's A100 GPU host (which runs NVIDIA driver `12040` supporting up to CUDA 12.4).
|
| 52 |
- **Resolution:**
|
| 53 |
+
- Updated `requirements.txt` to explicitly request `torch==2.6.0+cu124`.
|
| 54 |
- Added a direct pre-installation layer in the `Dockerfile` targeting `--index-url https://download.pytorch.org/whl/cu124` to absolutely guarantee that PyTorch installs the CUDA 12.4 pre-compiled wheel.
|
| 55 |
+
- This guarantees PyTorch matches the host's driver version (`12040`) perfectly while allowing the modern `vllm==0.12.0` runtime to execute natively on the A100 hardware, dynamically pulling its compatible `torchvision` version automatically.
|
| 56 |
|
| 57 |
---
|
| 58 |
|
requirements.txt
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
--extra-index-url https://download.pytorch.org/whl/cu124
|
| 2 |
torch==2.6.0+cu124
|
| 3 |
-
torchvision==0.21.0+cu124
|
| 4 |
vllm==0.12.0
|
| 5 |
gradio
|
| 6 |
openai
|
|
|
|
| 1 |
--extra-index-url https://download.pytorch.org/whl/cu124
|
| 2 |
torch==2.6.0+cu124
|
|
|
|
| 3 |
vllm==0.12.0
|
| 4 |
gradio
|
| 5 |
openai
|