forked from IBM/CodeEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_gpu
More file actions
executable file
·28 lines (23 loc) · 962 Bytes
/
run_gpu
File metadata and controls
executable file
·28 lines (23 loc) · 962 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
set -e
uuid=$(uuidgen | tr '[:upper:]' '[:lower:]' | awk -F- '{print $1}')
# https://github.com/docling-project/docling-serve?tab=readme-ov-file#container-images
IMAGE="quay.io/docling-project/docling-serve"
echo ibmcloud code-engine fleet create --name "fleet-${uuid}-1"
echo " " --tasks-state-store fleet-task-store
echo " " --subnetpool-name fleet-subnetpool
echo " " --image $IMAGE
echo " " --max-scale 1
echo " " --tasks-from-local-file commands.jsonl
echo " " --gpu l40s
echo " " --mount-data-store /input=fleet-input-store:/docling
echo " " --mount-data-store /output=fleet-output-store:/docling
ibmcloud code-engine fleet create --name "fleet-${uuid}-1" \
--tasks-state-store fleet-task-store \
--subnetpool-name fleet-subnetpool \
--image $IMAGE \
--max-scale 1 \
--tasks-from-local-file commands.jsonl \
--gpu l40s \
--mount-data-store /input=fleet-input-store:/docling \
--mount-data-store /output=fleet-output-store:/docling