commit | 206efd9f6c2995f52059423ceb1e96e18786e76e | [log] [tgz] |
---|---|---|
author | cdmikechen <cdmikechen@hotmail.com> | Sat Jul 30 22:15:27 2022 +0800 |
committer | Kevin <pingsutw@apache.org> | Tue Aug 09 04:27:15 2022 +0000 |
tree | 24a99ddeba2ca73515ab98f67887828d9adfef13 | |
parent | c3299a83c71ac9f7d57c3963e61b2ef4ce2f53b9 [diff] |
SUBMARINE-1287. Experiment codes refactoring ### What is this PR for? Based on the modified refactored notebook codes, the experiment codes are also need to be refactored. ### What type of PR is it? Refactoring ### Todos * [x] - Experiment codes refactoring in K8sSubmitter * [x] - Add experiment test cases * [x] - Fix some test cases error (Add h2 database dependency for test) * [x] - Add `submarine-submitter-k8s` package test cases to workflow ### What is the Jira issue? https://issues.apache.org/jira/browse/SUBMARINE-1287 ### How should this be tested? Add experiment test cases (tensorflow, pytorch, xgboots) ### Screenshots (if appropriate) No ### Questions: * Do the license files need updating? No * Are there breaking changes for older versions? Yes * Does this need new documentation? No Author: cdmikechen <cdmikechen@hotmail.com> Signed-off-by: Kevin <pingsutw@apache.org> Closes #974 from cdmikechen/SUBMARINE-1287 and squashes the following commits: 01e2828f [cdmikechen] add jacoco cache 4b50fe23 [cdmikechen] Fix codecov error 09f19423 [cdmikechen] add submarine-submitter-k8s codecov 4f761d75 [cdmikechen] Add submarine-submitter-k8s to build 4d8fee16 [cdmikechen] Add test workflow 580e2cce [cdmikechen] Fix SubmitterTransactionTest error 25b3a088 [cdmikechen] Add PyTorch/XGBoost test d0d9b55a [cdmikechen] Change agent name a62e6117 [cdmikechen] Add SubmitterPyTorchApiTest f857521f [cdmikechen] Fix NotebookSpecParserTest error 5401e2a5 [cdmikechen] Refactor Experiment
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.5.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
Login Submarine slack channel: https://join.slack.com/t/asf-submarine/shared_invite
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
From here, you can know the changelog and the issue tracker of different version of Apache Submarine.
Apache submarine: a unified machine learning platform made simple at EuroMLSys '22
The Apache Submarine project is licensed under the Apache 2.0 License. See the LICENSE file for details.