Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -36,10 +36,13 @@ WORKDIR ${HOME}/app
|
|
| 36 |
# Copy your app code
|
| 37 |
COPY --chown=user . ${HOME}/app
|
| 38 |
|
|
|
|
|
|
|
|
|
|
| 39 |
# Install torch with specific version for compatibility
|
| 40 |
RUN python3 -m pip install --user --no-cache-dir torch==2.4.1+cu121 torchvision==0.19.1+cu121 torchaudio==2.4.1+cu121 --index-url https://download.pytorch.org/whl/cu121
|
| 41 |
|
| 42 |
-
# Install requirements (includes
|
| 43 |
RUN python3 -m pip install --user --no-cache-dir -r requirements.txt
|
| 44 |
|
| 45 |
# Verify flash-attn installation
|
|
|
|
| 36 |
# Copy your app code
|
| 37 |
COPY --chown=user . ${HOME}/app
|
| 38 |
|
| 39 |
+
# Install packaging first to ensure it's available for flash-attn
|
| 40 |
+
RUN python3 -m pip install --user --no-cache-dir packaging==24.1
|
| 41 |
+
|
| 42 |
# Install torch with specific version for compatibility
|
| 43 |
RUN python3 -m pip install --user --no-cache-dir torch==2.4.1+cu121 torchvision==0.19.1+cu121 torchaudio==2.4.1+cu121 --index-url https://download.pytorch.org/whl/cu121
|
| 44 |
|
| 45 |
+
# Install requirements (includes flash-attn and other dependencies)
|
| 46 |
RUN python3 -m pip install --user --no-cache-dir -r requirements.txt
|
| 47 |
|
| 48 |
# Verify flash-attn installation
|