cache
Browse files- Dockerfile +1 -1
- server/entrypoint.sh +2 -0
Dockerfile
CHANGED
|
@@ -12,6 +12,6 @@ COPY server/ ./
|
|
| 12 |
|
| 13 |
ENV DEVICE cuda:0
|
| 14 |
ENV ATTN_IMPLEMENTATION flash_attention_2
|
|
|
|
| 15 |
|
| 16 |
ENTRYPOINT [ "./entrypoint.sh" ]
|
| 17 |
-
CMD ["./.venv/bin/uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 12 |
|
| 13 |
ENV DEVICE cuda:0
|
| 14 |
ENV ATTN_IMPLEMENTATION flash_attention_2
|
| 15 |
+
ENV PDM_CACHE_DIR /code/.pdm_cache/
|
| 16 |
|
| 17 |
ENTRYPOINT [ "./entrypoint.sh" ]
|
|
|
server/entrypoint.sh
CHANGED
|
@@ -2,3 +2,5 @@
|
|
| 2 |
|
| 3 |
|
| 4 |
pdm add flash_attn --no-isolation
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
|
| 4 |
pdm add flash_attn --no-isolation
|
| 5 |
+
|
| 6 |
+
./.venv/bin/uvicorn src.main:app --host 0.0.0.0 --port 7860
|