forked from Lilypad-Tech/lilypad-module-synthetic-data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lilypad_module.json.tmpl
49 lines (49 loc) · 1.41 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
{
"machine": {
"gpu": 0,
"cpu": 1000,
"ram": 8000
},
"job": {
"APIVersion": "V1beta1",
"Metadata": {
"CreatedAt": "2024-06-18T12:32:12Z",
"Requester": {}
},
"Spec": {
"Deal": {
"Concurrency": 1
},
"Docker": {
"Entrypoint": [
"/bin/sh",
"-c",
"SEED=${SEED} NUM_CONTRACTS=${NUM_CONTRACTS} node generate.js"
],
"EnvironmentVariables": [
{{ if .Contracts }}"{{ subst "NUM_CONTRACTS=%s" .Contracts }}",{{else}}"NUM_CONTRACTS=5",{{ end }}
{{ if .Seed }}"{{ subst "SEED=%s" .Seed }}"{{else}}"SEED=42"{{ end }}
],
"Image": "public.ecr.aws/lilypad-network/synthetic_data:0.0.8@sha256:9bacb60f5b11c4356217ea048fa50739c98ae879f8164aa69706ce41d6dc7894"
},
"Engine": "Docker",
"Network": {
"Type": "Default"
},
"Outputs": [
{
"Name": "outputs",
"Path": "/outputs"
}
],
"PublisherSpec": {
"Type": "IPFS"
},
"Resources": {
"GPU": ""
},
"Timeout": 1800,
"Verifier": "Noop"
}
}
}