charbel-malo commited on
Commit
69d7e42
·
verified ·
1 Parent(s): 0fe0d89

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -2
Dockerfile CHANGED
@@ -38,9 +38,17 @@ RUN ./venv/bin/python -m pip install --no-cache-dir -r requirements.txt
38
 
39
  # 6. Download Models
40
  # The Rope application expects models in an 'models' subdirectory within its root.
41
- # Initialize LFS for cloning model files
 
 
 
 
 
 
42
  RUN git lfs install --system
43
- # Clone the models from Hugging Face into the ${APP_DIR}/models directory
 
 
44
  RUN git clone https://huggingface.co/Hillobar/Rope ${APP_DIR}/models
45
 
46
  # 7. Verify CUDA Installation (nvcc should be in PATH)
 
38
 
39
  # 6. Download Models
40
  # The Rope application expects models in an 'models' subdirectory within its root.
41
+ # The main application repo clone (Hillobar/Rope) creates an 'models' directory,
42
+ # which usually only contains a .gitkeep file.
43
+ # We remove this directory to make way for the actual models cloned from Hugging Face.
44
+ RUN rm -rf ${APP_DIR}/models
45
+
46
+ # Initialize LFS for cloning model files from Hugging Face.
47
+ # This command configures Git on the system to use LFS.
48
  RUN git lfs install --system
49
+
50
+ # Clone the models from Hugging Face into the ${APP_DIR}/models directory.
51
+ # This will create the ${APP_DIR}/models directory again and populate it with model files.
52
  RUN git clone https://huggingface.co/Hillobar/Rope ${APP_DIR}/models
53
 
54
  # 7. Verify CUDA Installation (nvcc should be in PATH)