Spaces:
Paused
Paused
Update Dockerfile
Browse files- 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 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
RUN git lfs install --system
|
| 43 |
-
|
|
|
|
|
|
|
| 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)
|