mirror of
https://github.com/hanzo-ml/katib.git
synced 2026-09-24 00:31:27 +00:00
* move to ghcr Signed-off-by: mahdikhashan <[email protected]> * move images to ghcr Signed-off-by: mahdikhashan <[email protected]> * manifests Signed-off-by: mahdikhashan <[email protected]> * change registry in all path Signed-off-by: mahdikhashan <[email protected]> * update script Signed-off-by: mahdikhashan <[email protected]> * fix Signed-off-by: mahdikhashan <[email protected]> * fix Signed-off-by: mahdikhashan <[email protected]> * slight fix Signed-off-by: mahdikhashan <[email protected]> --------- Signed-off-by: mahdikhashan <[email protected]> Signed-off-by: Mahdi Khashan <[email protected]>
52 lines
1.4 KiB
YAML
52 lines
1.4 KiB
YAML
apiVersion: kubeflow.org/v1beta1
|
|
kind: Experiment
|
|
metadata:
|
|
namespace: kubeflow
|
|
name: invalid-experiment
|
|
spec:
|
|
maxTrialCount: 13
|
|
maxFailedTrialCount: 3
|
|
objective:
|
|
type: minimize
|
|
goal: 0.001
|
|
objectiveMetricName: loss
|
|
algorithm:
|
|
algorithmName: invalid-algorithm # Invalid Algorithm to check that validation webhook is working
|
|
parameters:
|
|
- name: lr
|
|
parameterType: double
|
|
feasibleSpace:
|
|
min: "0.01"
|
|
max: "0.05"
|
|
- name: momentum
|
|
parameterType: double
|
|
feasibleSpace:
|
|
min: "0.5"
|
|
max: "0.9"
|
|
trialTemplate:
|
|
primaryContainerName: training-container
|
|
trialParameters:
|
|
- name: learningRate
|
|
description: Learning rate for the training model
|
|
reference: lr
|
|
- name: momentum
|
|
description: Momentum for the training model
|
|
reference: momentum
|
|
trialSpec:
|
|
apiVersion: batch/v1
|
|
kind: Job
|
|
spec:
|
|
template:
|
|
spec:
|
|
containers:
|
|
- name: training-container
|
|
image: ghcr.io/kubeflow/katib/pytorch-mnist-cpu:latest
|
|
command:
|
|
- "python3"
|
|
- "/opt/pytorch-mnist/mnist.py"
|
|
- "--epochs=1"
|
|
- "--batch-size=16"
|
|
- "--lr=${trialParameters.learningRate}"
|
|
- "--momentum=${trialParameters.momentum}"
|
|
restartPolicy: Never
|