File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,11 @@ use in distributed production environments.
6
6
7
7
## Running
8
8
9
- The easiest way to run this project is using docker
9
+ The easiest way to run this project is using docker. There are two image families,
10
+ one for cuda machines and one for cpu:
11
+
12
+ - Cuda: ghcr.io/aidotse/docling-inference: rev
13
+ - CPU: ghcr.io/aidotse/docling-inference: cpu-rev
10
14
11
15
``` bash
12
16
# Create volumes to not have to download models every time
@@ -57,7 +61,7 @@ project. Follow their installation instructions if you do not have it.
57
61
58
62
` ` ` bash
59
63
# Install the dependencies
60
- poetry install
64
+ poetry install --with=<cuda or cpu>
61
65
62
66
# Activate the shell
63
67
poetry shell
@@ -68,7 +72,10 @@ python src/main.py
68
72
69
73
## Building
70
74
71
- Build the project docker image with ` docker build -t docling-inference:dev . `
75
+ Build the project docker image with one of the following commands
76
+
77
+ - Cuda: ` docker build -t ghcr.io/aidotse/docling-inference:dev . `
78
+ - CPU: ` docker build -f Dockerfile.cpu -t ghcr.io/aidotse/docling-inference:dev . `
72
79
73
80
## Configuration
74
81
You can’t perform that action at this time.
0 commit comments