kimou605 commited on
Commit
08e9897
1 Parent(s): ad491af

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -11,6 +11,10 @@ COPY ./requirements.txt /code/requirements.txt
11
  # Install the Python packages specified in requirements.txt
12
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
13
 
 
 
 
 
14
  # Download the llama-2-7b-chat.ggmlv3.q8_0.bin model file into the container
15
  # Replace the URL below with the actual URL from where the model file should be downloaded
16
  RUN wget -O /code/llama-2-7b-chat.ggmlv3.q8_0.bin https://huggingface.co/TheBloke/Llama-2-7B-Chat-GGML/blob/main/llama-2-7b-chat.ggmlv3.q8_0.bin
 
11
  # Install the Python packages specified in requirements.txt
12
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
13
 
14
+ # Set the environment variable for the transformers cache
15
+ ENV TRANSFORMERS_CACHE=/code/cache/huggingface/transformers
16
+ ENV HF_HOME=/code/cache/huggingface
17
+
18
  # Download the llama-2-7b-chat.ggmlv3.q8_0.bin model file into the container
19
  # Replace the URL below with the actual URL from where the model file should be downloaded
20
  RUN wget -O /code/llama-2-7b-chat.ggmlv3.q8_0.bin https://huggingface.co/TheBloke/Llama-2-7B-Chat-GGML/blob/main/llama-2-7b-chat.ggmlv3.q8_0.bin