Spaces:
Build error
Build error
File size: 647 Bytes
7eac4a0 3d61fab 7eac4a0 b498d8b 09d5f8b 0252e20 82a16a5 7eac4a0 0252e20 3d61fab |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
FROM python:3.9
ENV TQDM_DISABLE=0
ENV TQDM_FORCE=1
WORKDIR /code
RUN mkdir -p /code && chmod -R 777 /code
RUN mkdir -p /.cache && chmod -R 777 /.cache
RUN mkdir -p /.cache/huggingface && chmod -R 777 /.cache/huggingface
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . .
RUN python3 -c "from transformers import AutoModelForCausalLM; AutoModelForCausalLM.from_pretrained('ibm-granite/granite-34b-code-instruct-8k', cache_dir='/.cache/huggingface')"
RUN uvicorn main:app --host 0.0.0.0 --port 7860
# CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|