mirror of
https://github.com/DS4SD/docling.git
synced 2025-12-08 20:58:11 +00:00
docs: add instructions for cpu-only installation (#56)
Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
@@ -6,7 +6,10 @@ RUN apt-get update \
|
||||
&& apt-get install -y libgl1 libglib2.0-0 curl wget git \
|
||||
&& apt-get clean
|
||||
|
||||
RUN pip install --no-cache-dir docling
|
||||
# This will install torch with *only* cpu support
|
||||
# Remove the --extra-index-url part if you want to install all the gpu requirements
|
||||
# For more details in the different torch distribution visit https://pytorch.org/.
|
||||
RUN pip install --no-cache-dir docling --extra-index-url https://download.pytorch.org/whl/cpu
|
||||
|
||||
ENV HF_HOME=/tmp/
|
||||
ENV TORCH_HOME=/tmp/
|
||||
|
||||
Reference in New Issue
Block a user