This is an automated email from the ASF dual-hosted git repository. pingsutw pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/submarine.git
The following commit(s) were added to refs/heads/master by this push: new 67fe91fd SUBMARINE-1340. Add quick-start to predefined experiment library 67fe91fd is described below commit 67fe91fde8e15fe757345b744cbff731decac3aa Author: cdmikechen <cdmikec...@apache.org> AuthorDate: Thu Oct 6 22:39:44 2022 +0800 SUBMARINE-1340. Add quick-start to predefined experiment library ### What is this PR for? The current quick-start already follows submarine release for image packaging, but in fact the user cannot select it directly via the experiment page. We should add it as a predefined-template in the page when the experiment is creating. ### What type of PR is it? Improvement ### Todos * [x] - Replace created status to lime color * [x] - Add quickstart template and refine datas ### What is the Jira issue? https://issues.apache.org/jira/browse/SUBMARINE-1340 ### How should this be tested? No. ### 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: cdmikechen <cdmikec...@apache.org> Signed-off-by: Kevin <pings...@apache.org> Closes #1005 from cdmikechen/SUBMARINE-1340 and squashes the following commits: f483e2f9 [cdmikechen] Add document 0da911cc [cdmikechen] Add quickstart template and refine datas bb48b3ca [cdmikechen] replace created status to lime color --- dev-support/database/submarine-data.sql | 11 ++++++++--- .../experiment-list/experiment-list.component.ts | 2 +- website/docs/gettingStarted/quickstart.md | 2 ++ 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/dev-support/database/submarine-data.sql b/dev-support/database/submarine-data.sql index 423aee8c..a79a0b7d 100644 --- a/dev-support/database/submarine-data.sql +++ b/dev-support/database/submarine-data.sql @@ -70,7 +70,12 @@ INSERT INTO `environment` VALUES -- ---------------------------- -- Records of experiment_templates -- ---------------------------- +-- tf-mnist INSERT INTO `experiment_template` (`id`, `experimentTemplate_name`, `experimentTemplate_spec`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES -('experimentTemplate_1599498007985_0013', 'tf-mnist', '{\"name\": \"tf-mnist\", \"author\": \"author\", \"parameters\": [{\"name\": \"learning_rate\", \"value\": \"0.2\", \"required\": \"false\", \"description\": \"The parameter of train mnist.\"}, {\"name\": \"batch_size\", \"value\": \"150\", \"required\": \"false\", \"description\": \"The parameter of train mnist.\"}, {\"name\": \"experiment_name\", \"required\": \"true\", \"description\": \"experiment name, you should change it to av [...] - -INSERT INTO `experiment_template` (`id`, `experimentTemplate_name`, `experimentTemplate_spec`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES('experimentTemplate_1606489231336_0014', 'pytorch-mnist', '{\"name\": \"pytorch-mnist\", \"author\": \"author\", \"parameters\": [{\"name\": \"experiment_name\", \"required\": \"true\", \"description\": \"experiment name\"}, {\"name\": \"spec.Master.replicas\", \"value\": \"1\", \"required\": \"false\", \"description\": \"\"}, {\"na [...] +(concat('experimentTemplate_', UNIX_TIMESTAMP(), '000_0001'), 'tf-mnist', '{\"name\": \"tf-mnist\", \"author\": \"admin\", \"parameters\": [{\"name\": \"learning_rate\", \"value\": \"0.2\", \"required\": \"false\", \"description\": \"The parameter of train mnist.\"}, {\"name\": \"batch_size\", \"value\": \"150\", \"required\": \"false\", \"description\": \"The parameter of train mnist.\"}, {\"name\": \"experiment_name\", \"required\": \"true\", \"description\": \"experiment name, you sho [...] +-- pytorch-mnist +INSERT INTO `experiment_template` (`id`, `experimentTemplate_name`, `experimentTemplate_spec`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES +(concat('experimentTemplate_', UNIX_TIMESTAMP(), '000_0002'), 'pytorch-mnist', '{\"name\": \"pytorch-mnist\", \"admin\": \"author\", \"parameters\": [{\"name\": \"experiment_name\", \"required\": \"true\", \"description\": \"experiment name\"}, {\"name\": \"spec.Master.replicas\", \"value\": \"1\", \"required\": \"false\", \"description\": \"\"}, {\"name\": \"spec.Master.resourceMap.cpu\", \"value\": \"1\", \"required\": \"false\", \"description\": \"\"}, {\"name\": \"spec.Master.resourc [...] +-- quickstart +INSERT INTO `experiment_template` (`id`, `experimentTemplate_name`, `experimentTemplate_spec`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES +(concat('experimentTemplate_', UNIX_TIMESTAMP(), '000_0003'), 'quickstart', '{"name":"quickstart","author":"admin","parameters":[{"name":"experiment_name","required":"true","description":"experiment name, you should change it to avoid duplication with other experiment names."},{"name":"spec.Worker.replicas","value":"3","required":"false","description":""},{"name":"spec.Worker.resourceMap.cpu","value":"1","required":"false","description":""},{"name":"spec.Worker.resourceMap.memory","value [...] diff --git a/submarine-workbench/workbench-web/src/app/pages/workbench/experiment/experiment-home/experiment-list/experiment-list.component.ts b/submarine-workbench/workbench-web/src/app/pages/workbench/experiment/experiment-home/experiment-list/experiment-list.component.ts index 324b29df..463eb655 100644 --- a/submarine-workbench/workbench-web/src/app/pages/workbench/experiment/experiment-home/experiment-list/experiment-list.component.ts +++ b/submarine-workbench/workbench-web/src/app/pages/workbench/experiment/experiment-home/experiment-list/experiment-list.component.ts @@ -41,7 +41,7 @@ export class ExperimentListComponent implements OnInit { statusColor: { [key: string]: string } = { Accepted: 'gold', - Created: 'white', + Created: 'lime', Running: 'green', Succeeded: 'blue', }; diff --git a/website/docs/gettingStarted/quickstart.md b/website/docs/gettingStarted/quickstart.md index 0ad835ef..0b00f119 100644 --- a/website/docs/gettingStarted/quickstart.md +++ b/website/docs/gettingStarted/quickstart.md @@ -228,6 +228,8 @@ eval $(minikube docker-env) 4. The experiment is successfully submitted  +4. In the meantime, we have built this image in docker hub and you can run this experiment directly if you choose `quickstart` in `From predefined experiment library`. + ### 4. Monitor the process 1. In our code, we use `submarine` from `submarine-sdk` to record the metrics. To see the result, click corresponding experiment with name `mnist-example` in the workbench. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@submarine.apache.org For additional commands, e-mail: dev-h...@submarine.apache.org