Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +2 -6
Dockerfile
CHANGED
|
@@ -9,12 +9,8 @@ WORKDIR /app
|
|
| 9 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 10 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 11 |
|
| 12 |
-
#
|
| 13 |
-
RUN python -c "from transformers import
|
| 14 |
-
AutoTokenizer.from_pretrained('Qwen/Qwen3-1.7B'); \
|
| 15 |
-
AutoModelForCausalLM.from_pretrained('Qwen/Qwen3-1.7B'); \
|
| 16 |
-
AutoTokenizer.from_pretrained('Qwen/Qwen3-4B'); \
|
| 17 |
-
AutoModelForCausalLM.from_pretrained('Qwen/Qwen3-4B')"
|
| 18 |
|
| 19 |
COPY --chown=user . /app
|
| 20 |
EXPOSE 7860
|
|
|
|
| 9 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 10 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 11 |
|
| 12 |
+
# BỎ phần pre-download models để tránh timeout
|
| 13 |
+
# RUN python -c "from transformers import..."
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
COPY --chown=user . /app
|
| 16 |
EXPOSE 7860
|