From 9970031f52d6ea7fa0f7a5db541dbec9e0690870 Mon Sep 17 00:00:00 2001 From: SYusupov Date: Mon, 16 Sep 2024 20:25:48 +0200 Subject: [PATCH] Using gdown to download the model --- Dockerfile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 47e7511..0f21100 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,19 +12,22 @@ ENV PYTHONUNBUFFERED=1 WORKDIR /app +# Install gdown for downloading files from Google Drive +RUN pip install gdown +# Create the /model_files directory +RUN mkdir -p /model_files +# Download the model using gdown +RUN gdown 1MMdhxFgvcwgFXi068atfqIbGn1m8ur_l -O /model_files/unsloth.Q4_K_M.gguf +# # Download the model from Google Drive +# RUN curl -L -o /model_files/unsloth.Q4_K_M.gguf "https://drive.google.com/uc?export=download&id=1MMdhxFgvcwgFXi068atfqIbGn1m8ur_l" + # Add dependencies before the pip install step RUN apt-get update && apt-get install -y \ build-essential \ cmake \ g++ \ - curl \ && rm -rf /var/lib/apt/lists/* -# Create the /model_files directory -RUN mkdir -p /model_files -# Download the model from Google Drive -RUN curl -L -o /model_files/unsloth.Q4_K_M.gguf "https://drive.google.com/uc?export=download&id=1MMdhxFgvcwgFXi068atfqIbGn1m8ur_l" - # Update pip and setuptools RUN python -m pip install --upgrade pip setuptools wheel