-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
lilypad_module.json.tmpl
62 lines (62 loc) · 1.59 KB
/
lilypad_module.json.tmpl
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"machine": {
"gpu": 1,
"cpu": 2,
"ram": 1000
},
"job": {
"APIVersion": "V1beta2",
"Spec": {
"EngineSpec": {
"Type": "docker",
"Params": {
"Entrypoint": null,
"EnvironmentVariables": [
"OUTPUT_ARCHIVE=decenter-model",
"OUTPUT_DIR=/outputs"
],
"Image": "ghcr.io/decenter-ai/compute:v1.6.2",
"Parameters": [
{{if .trainScript}}{{.trainScript}}{{else}}"Kindly provide trainScript like lilypad run github.com/DeCenter-AI/compute.decenter-ai -i trainScript=headbrain.ipynb"{{end}},
{{if .inputCid}}"{{printf "/inputs/%s" .inputCid}}"{{else}}"Kindly provide inputCid like lilypad run github.com/DeCenter-AI/compute.decenter-ai -i inputCid=QmRwvooN7Yfa6Gx8aVcf5cV7MAAMHmo5Q5JTt5234jf3qo"{{end}}
],
"WorkingDirectory": ""
}
},
"PublisherSpec": {
"Type": "ipfs"
},
"Docker": {},
"Wasm": {
"EntryModule": {}
},
"Resources": {
"CPU": "2",
"GPU": "1",
"MEMORY": "1Gb"
},
"Network": {
"Type": "None"
},
"Timeout": 5000,
"Inputs": [
{
"StorageSource": "urlDownload",
"Name": "inputs",
"URL": "{{printf "https://gateway.lighthouse.storage/ipfs/\%s .inputCid}}",
"Path": "/inputs"
}
],
"Outputs": [
{
"Name": "outputs",
"StorageSource": "IPFS",
"Path": "/outputs"
}
],
"Deal": {
"Concurrency": 1
}
}
}
}