Spaces:
Running
Running
seanpedrickcase
commited on
Commit
•
08eb30d
1
Parent(s):
34f1e83
Updated Dockerfile with latest packages
Browse files- Dockerfile +4 -4
- run_cmd_line_example_command.txt +1 -1
Dockerfile
CHANGED
@@ -16,10 +16,10 @@ WORKDIR /src
|
|
16 |
COPY requirements_aws.txt .
|
17 |
|
18 |
RUN pip install torch==2.4.0+cpu --target=/install --index-url https://download.pytorch.org/whl/cpu \
|
19 |
-
&& pip install --no-cache-dir --target=/install sentence-transformers==3.0
|
20 |
-
&& pip install --no-cache-dir --target=/install bertopic==0.16.
|
21 |
&& pip install --no-cache-dir --target=/install -r requirements_aws.txt \
|
22 |
-
&& pip install --no-cache-dir --target=/install gradio==
|
23 |
|
24 |
# Add /install to the PYTHONPATH
|
25 |
ENV PYTHONPATH="/install:${PYTHONPATH}"
|
@@ -44,7 +44,7 @@ RUN mkdir -p /home/user/app/output /home/user/.cache/huggingface/hub /home/user/
|
|
44 |
&& chown -R user:user /home/user
|
45 |
|
46 |
# Download the quantised phi model directly with curl. Changed at it is so big - not loaded
|
47 |
-
#RUN curl -L -o /home/user/app/model/rep/
|
48 |
|
49 |
# Copy models from the builder stage
|
50 |
COPY --from=builder /model/rep /home/user/app/model/rep
|
|
|
16 |
COPY requirements_aws.txt .
|
17 |
|
18 |
RUN pip install torch==2.4.0+cpu --target=/install --index-url https://download.pytorch.org/whl/cpu \
|
19 |
+
&& pip install --no-cache-dir --target=/install sentence-transformers==3.2.0 --no-deps \
|
20 |
+
&& pip install --no-cache-dir --target=/install bertopic==0.16.4 --no-deps \
|
21 |
&& pip install --no-cache-dir --target=/install -r requirements_aws.txt \
|
22 |
+
&& pip install --no-cache-dir --target=/install gradio==5.6.0
|
23 |
|
24 |
# Add /install to the PYTHONPATH
|
25 |
ENV PYTHONPATH="/install:${PYTHONPATH}"
|
|
|
44 |
&& chown -R user:user /home/user
|
45 |
|
46 |
# Download the quantised phi model directly with curl. Changed at it is so big - not loaded
|
47 |
+
#RUN curl -L -o /home/user/app/model/rep/Llama-3.2-3B-Instruct-Q5_K_M.gguf https://huggingface.co/bartowski/Llama-3.2-3B-Instruct-GGUF/tree/main/Llama-3.2-3B-Instruct-Q5_K_M.gguf
|
48 |
|
49 |
# Copy models from the builder stage
|
50 |
COPY --from=builder /model/rep /home/user/app/model/rep
|
run_cmd_line_example_command.txt
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
# To just get embeddings out
|
2 |
|
3 |
-
python run_from_cmd_line.py --data_file "C:\
|
|
|
1 |
# To just get embeddings out
|
2 |
|
3 |
+
python run_from_cmd_line.py --data_file "C:\folder\combined_case_notes.csv" --in_colnames "Case Note" --clean_text Yes --drop_duplicate_text No --anonymise_drop Yes --split_sentence_drop No --custom_regex_file "C:\folder\regex_to_remove.csv" --embeddings_high_quality_mode Yes --return_only_embeddings_drop Yes --output_folder "C:\folder\apps\topic_modelling\output"
|