-
Notifications
You must be signed in to change notification settings - Fork 1
/
valohai.yaml
52 lines (45 loc) · 1.12 KB
/
valohai.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
40
41
42
43
44
45
46
47
48
49
50
51
52
---
- step:
name: Preprocess data
image: python:3.6
command:
- pip install numpy==1.18.1 valohai-utils
- python preprocess_data.py
inputs:
- name: mnist
default: https://storage.googleapis.com/tensorflow/tf-keras-datasets/mnist.npz
- step:
name: Train model
image: tensorflow/tensorflow:2.4.1-gpu
command:
- pip install valohai-utils
- python train.py {parameters}
inputs:
- name: preprocessed_mnist
parameters:
- name: epochs
description: How long to train
type: integer
default: 5
- name: learning_rate
description: How much to change
type: float
default: 0.001
- pipeline:
name: Training pipeline
nodes:
- name: preprocess
type: execution
step: Preprocess data
- name: train
type: execution
step: Train model
edges:
- [preprocess.output.*.npz, train.input.preprocessed_mnist]
- endpoint:
name: inference
image: tensorflow/tensorflow:2.4.1-gpu
wsgi: deploy:predict
files:
- name: model
path: model.h5