tag | 51c546a621409276a266867d47fb7b102712b370 | |
---|---|---|
tagger | Kevin Su <pingsutw@apache.org> | Tue Mar 22 11:31:28 2022 +0800 |
object | 7b0482a1434a507d45681a35a2ada18ffdf5a1e7 |
Release candidate - 0.7.0
commit | 7b0482a1434a507d45681a35a2ada18ffdf5a1e7 | [log] [tgz] |
---|---|---|
author | chenx <744417972@qq.com> | Sun Mar 20 16:48:21 2022 +0800 |
committer | Kevin <pingsutw@apache.org> | Tue Mar 22 03:27:18 2022 +0000 |
tree | eb162cfa4b3ffe7f8f1e8642fbcc2b401f7d2731 | |
parent | c67896b3dd6b170778c6444e5d31b7ec67752841 [diff] |
SUBMARINE-1223. Update Submarine Operator CRD to v1 ### What is this PR for? Update Submarine Operator CRD: * Unify the CRD (upgrade apiextensions.k8s.io/v1beta1 to apiextensions.k8s.io/v1) * Add some details to support the new CRD (The adjusted CRD can support multiple CRDs to share group resources) ### What type of PR is it? Refactoring ### Todos * [x] - Update Submarine Operator CRD ### What is the Jira issue? https://issues.apache.org/jira/browse/SUBMARINE-1223 ### How should this be tested? Can be tested by exists cicd. ### Screenshots (if appropriate) No ### Questions: * Do the license files need updating? No * Are there breaking changes for older versions? No * Does this need new documentation? No Author: chenx <744417972@qq.com> Author: cdmikechen <cdmikechen@hotmail.com> Signed-off-by: Kevin <pingsutw@apache.org> Closes #905 from cdmikechen/SUBMARINE-1223 and squashes the following commits: d84f29fe [chenx] add submarines/status rbac 1b3bd5b1 [chenx] Fix status problem 1a703f17 [cdmikechen] SUBMARINE-1223. Update Submarine Operator CRD
Apache Submarine (Submarine for short) is an End-to-End Machine Learning Platform to allow data scientists to create end-to-end machine learning workflows. On Submarine, data scientists can finish each stage in the ML model lifecycle, including data exploration, data pipeline creation, model training, serving, and monitoring.
Some open-source and commercial projects are trying to build an end-to-end ML platform. What's the vision of Submarine?
Theodore Levitt once said:
“People don’t want to buy a quarter-inch drill. They want a quarter-inch hole.”
experiment
on prem or cloud via easy-to-use UI/API/SDK.experiment
and dependencies of environment
.As mentioned above, Submarine attempts to provide Data-Scientist-friendly UI to make data scientists have a good user experience. Here're some examples.
# New a submarine client of the submarine server submarine_client = submarine.ExperimentClient(host='http://localhost:8080') # The experiment's environment, could be Docker image or Conda environment based environment = EnvironmentSpec(image='apache/submarine:tf-dist-mnist-test-1.0') # Specify the experiment's name, framework it's using, namespace it will run in, # the entry point. It can also accept environment variables. etc. # For PyTorch job, the framework should be 'Pytorch'. experiment_meta = ExperimentMeta(name='mnist-dist', namespace='default', framework='Tensorflow', cmd='python /var/tf_dist_mnist/dist_mnist.py --train_steps=100') # 1 PS task of 2 cpu, 1GB ps_spec = ExperimentTaskSpec(resources='cpu=2,memory=1024M', replicas=1) # 1 Worker task worker_spec = ExperimentTaskSpec(resources='cpu=2,memory=1024M', replicas=1) # Wrap up the meta, environment and task specs into an experiment. # For PyTorch job, the specs would be "Master" and "Worker". experiment_spec = ExperimentSpec(meta=experiment_meta, environment=environment, spec={'Ps':ps_spec, 'Worker': worker_spec}) # Submit the experiment to submarine server experiment = submarine_client.create_experiment(experiment_spec=experiment_spec) # Get the experiment ID id = experiment['experimentId']
submarine_client.get_experiment(id)
submarine_client.wait_for_finish(id)
submarine_client.get_log(id)
submarine_client.list_experiments(status='running')
For a quick-start, see Submarine On K8s
(Available on 0.7.0, see Roadmap)
If you want to know more about Submarine's architecture, components, requirements and design doc, they can be found on Architecture-and-requirement
Detailed design documentation, implementation notes can be found at: Implementation notes
Read the Apache Submarine Community Guide
How to contribute Contributing Guide
Issue Tracking: https://issues.apache.org/jira/projects/SUBMARINE
What to know more about what's coming for Submarine? Please check the roadmap out: https://cwiki.apache.org/confluence/display/SUBMARINE/Roadmap
The Apache Submarine project is licensed under the Apache 2.0 License. See the LICENSE file for details.