tag | 329d2cd4bec03b8576bddd4c632508c3194a3de3 | |
---|---|---|
tagger | Kevin Su <pingsutw@apache.org> | Sat Oct 02 00:45:40 2021 +0800 |
object | 4e4cfd9162218a8806bac11728c22cd161f18f7b |
Submarine 0.6.0 release
commit | 4e4cfd9162218a8806bac11728c22cd161f18f7b | [log] [tgz] |
---|---|---|
author | KUAN-HSUN-LI <b06209027@ntu.edu.tw> | Sun Sep 26 00:47:53 2021 +0800 |
committer | Kevin <pingsutw@apache.org> | Fri Oct 01 16:38:39 2021 +0000 |
tree | ec089d4eb4e49bc68c5728577118fc8c329e20b4 | |
parent | 61933c6b5a70a5fe3649ae6bac34e96b4da86855 [diff] |
SUBMARINE-1023. Submarine SDK sqlalchemy store (model registry) ### What is this PR for? * Implement the model registry SQL method in Python SDK * Apply sqlalchemy mypy checks * Replace submarine tracking_uri with db_uri ### What type of PR is it? [Feature] ### Todos ### What is the Jira issue? https://issues.apache.org/jira/browse/SUBMARINE-1023 ### How should this be tested? All of the tests are provided in `submarine-sdk/pysubmarine/tests/store/model_registry/test_sqlalchemy_store.py` ### Screenshots (if appropriate) ### Questions: * Do the license files need updating? No * Are there breaking changes for older versions? No * Does this need new documentation? No Author: KUAN-HSUN-LI <b06209027@ntu.edu.tw> Signed-off-by: Kevin <pingsutw@apache.org> Closes #752 from KUAN-HSUN-LI/SUBMARINE-1023 and squashes the following commits: 77237889 [KUAN-HSUN-LI] SUBMARINE-1023. Submarine model registry Python SDK 5e086b57 [KUAN-HSUN-LI] fix 8c6574da [KUAN-HSUN-LI] fix dd41039c [KUAN-HSUN-LI] replace tacking_uri with db_uri ad9c5d7d [KUAN-HSUN-LI] add init file 374aa2dd [KUAN-HSUN-LI] SUBMARINE-1023. Submarine model registry Python SDK b502fc17 [KUAN-HSUN-LI] SUBMARINE-1023. sqlalchemy store tests 343780f5 [KUAN-HSUN-LI] apply sqlalchmy mypy
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.