-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathdb-workflow-event-binding.yaml
39 lines (39 loc) · 1.18 KB
/
db-workflow-event-binding.yaml
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
apiVersion: argoproj.io/v1alpha1
kind: WorkflowEventBinding
metadata:
name: db-finetune-event-binding
spec:
event:
selector: discriminator == "db-finetune"
submit:
workflowTemplateRef:
name: db-finetune-template
arguments:
parameters:
- name: run_name
valueFrom:
event: payload.run_name
- name: instance_dataset
valueFrom:
event: payload.instance_dataset
- name: instance_prompt
valueFrom:
event: payload.instance_prompt
- name: class_dataset
valueFrom:
event: payload.class_dataset
- name: class_prompt
valueFrom:
event: payload.class_prompt
- name: output
valueFrom:
event: payload.output
- name: num_class_images
valueFrom:
event: "payload.num_class_images == null ? 100: payload.num_class_images"
- name: run_inference
valueFrom:
event: "payload.run_inference == null ? true : payload.run_inference"
- name: inference_only
valueFrom:
event: "payload.inference_only == null ? false : payload.inference_only"