Spaces:
No application file
No application file
Update Dockerfile
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
|
@@ -19,9 +19,15 @@ RUN pip install --no-cache-dir --upgrade pip && \
|
|
| 19 |
"huggingface-hub>=0.23.2" \
|
| 20 |
"transformers==4.44.2" \
|
| 21 |
accelerate \
|
|
|
|
|
|
|
| 22 |
pillow \
|
| 23 |
requests
|
| 24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
COPY app.py /app/app.py
|
| 26 |
|
| 27 |
EXPOSE 7860
|
|
|
|
| 19 |
"huggingface-hub>=0.23.2" \
|
| 20 |
"transformers==4.44.2" \
|
| 21 |
accelerate \
|
| 22 |
+
einops \
|
| 23 |
+
timm \
|
| 24 |
pillow \
|
| 25 |
requests
|
| 26 |
|
| 27 |
+
# Tạo stub module flash_attn để thoả mãn yêu cầu import của model mà không cần CUDA
|
| 28 |
+
RUN mkdir -p /usr/local/lib/python3.10/site-packages/flash_attn && \
|
| 29 |
+
printf "def _not_available(*args, **kwargs):\n raise ImportError('flash_attn is not available in this CPU-only build')\n\n__all__ = ['_not_available']\n" > /usr/local/lib/python3.10/site-packages/flash_attn/__init__.py
|
| 30 |
+
|
| 31 |
COPY app.py /app/app.py
|
| 32 |
|
| 33 |
EXPOSE 7860
|