1.3 KiB
1.3 KiB
Contributing
Adding New Example
Steps for adding new examples:
-
Create new example
- Copy the new example to
pipelines/samples/contrib/pytorch-samples/(Ex:pipelines/samples/contrib/pytorch-samples/iris) - Add yaml files for all components in the pipeline
- Create a pipeline file (Ex:
pipelines/samples/contrib/pytorch-samples/iris/pipeline.py)
- Copy the new example to
-
Build image and compile pipeline
./build.sh <example-directory> <dockerhub-user-name>For example:
./build.sh cifar10 johnsmithThe following actions are done in the build script
- Bundling the code changes into a docker image
- Pushing the docker image to dockerhub
- Changing image tag in component.yaml
- Run
pipeline.pyfile to generate yaml file which can be used to invoke the pipeline.
-
Upload pipeline and create a run
-
Create an Experiment from
kubeflow dashboard -> Experiments -> Create Experiment. -
Upload the generated pipeline to
kubeflow dashboard -> Pipelines -> Upload Pipeline -
Create run from
kubeflow dashboard -> Pipelines -> {Pipeline Name} -> Create RunPipeline params can be added while creating a run.
-