shuarya2011 commited on
Commit
8da3f0d
·
verified ·
1 Parent(s): d3dccb3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -7
Dockerfile CHANGED
@@ -7,13 +7,20 @@ ENV HOME=/home/user \
7
 
8
  WORKDIR $HOME/app
9
 
10
- # Added accelerate to the requirements
11
- RUN pip install --no-cache-dir \
12
- transformers \
13
- accelerate \
14
- torch \
15
- gradio \
16
- huggingface_hub
 
 
 
 
 
 
 
17
 
18
  COPY --chown=user . $HOME/app
19
 
 
7
 
8
  WORKDIR $HOME/app
9
 
10
+ USER root
11
+ RUN apt-get update && apt-get install -y \
12
+ gcc g++ make cmake git wget \
13
+ && rm -rf /var/lib/apt/lists/*
14
+ USER user
15
+
16
+ # Install llama-cpp-python and other essentials
17
+ RUN pip install --no-cache-dir llama-cpp-python huggingface_hub gradio
18
+
19
+ # Download the specific GGUF file from the repo in your screenshot
20
+ # Using the Q4_K_M version for the best balance of speed and logic
21
+ RUN huggingface-cli download tensorblock/llama3.2-1b-Uncensored-GGUF \
22
+ llama3.2-1b-Uncensored-Q4_K_M.gguf \
23
+ --local-dir . --local-dir-use-symlinks False
24
 
25
  COPY --chown=user . $HOME/app
26