commit | 860c04301a806466d261ecee7d3e8cb4a58bec0a | [log] [tgz] |
---|---|---|
author | kevin85421 <b03901153@ntu.edu.tw> | Thu Apr 22 13:48:21 2021 +0800 |
committer | GitHub <noreply@github.com> | Thu Apr 22 13:48:21 2021 +0800 |
tree | b18a3198c72141f8bdce133d785956ae8895b767 | |
parent | 4fc62996842a6ed727007b3e878e9d8d554e9991 [diff] |
SUBMARINE-799. Create a submarine-server for a single user ### What is this PR for? Create a submarine server for a single user via the submarine operator. Reference: https://github.com/apache/submarine/blob/master/helm-charts/submarine/templates/submarine-server.yaml ### What type of PR is it? [Feature] ### Todos ### What is the Jira issue? https://issues.apache.org/jira/browse/SUBMARINE-799 ### How should this be tested? https://user-images.githubusercontent.com/20109646/115583344-62eba200-a2fc-11eb-90d2-72acc9d13938.mov ### Screenshots (if appropriate) * service/submarine-server (submarine-operator) <img width="414" alt="截圖 2021-04-21 下午11 41 37" src="https://user-images.githubusercontent.com/20109646/115583500-86aee800-a2fc-11eb-8ee2-04391cdf5ce0.png"> * service/submarine-server (helm) <img width="794" alt="截圖 2021-04-21 下午11 47 56" src="https://user-images.githubusercontent.com/20109646/115583717-bb22a400-a2fc-11eb-99e9-c00ba505dbe6.png"> * serviceaccount/submarine-server (submarine-operator) <img width="447" alt="截圖 2021-04-21 下午11 41 42" src="https://user-images.githubusercontent.com/20109646/115583564-96c6c780-a2fc-11eb-9343-60fbb5cee049.png"> * serviceaccount/submarine-server (helm) <img width="804" alt="截圖 2021-04-21 下午11 48 19" src="https://user-images.githubusercontent.com/20109646/115583796-cd9cdd80-a2fc-11eb-8a1b-d7ec76c6c41c.png"> * deployment/submarine-server (submarine-operator) <img width="824" alt="截圖 2021-04-21 下午11 41 51" src="https://user-images.githubusercontent.com/20109646/115583632-a6461080-a2fc-11eb-9875-d187499de27c.png"> * deployment/submarine-server (helm) <img width="886" alt="截圖 2021-04-21 下午11 48 49" src="https://user-images.githubusercontent.com/20109646/115583870-dd1c2680-a2fc-11eb-8404-f849afad9f2a.png"> ### Questions: * Do the license files need updating? No * Are there breaking changes for older versions? No * Does this need new documentation? No
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.6.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.