tencent cloud

Feedback

Model Building Through Task-based Modeling

Last updated: 2022-02-25 17:46:30

    Overview of Task-based Modeling

    Task-based modeling provides model building capabilities in a wizard-like training task submission method and supports task submission based on multiple algorithm sources. It allows you to directly bind mainstream high-performance, distributed training frameworks through code package to quickly submit and start training tasks. The following uses a simple PyTorch MPI job as an example to demonstrate how to quickly create a task in task-based modeling.

    Data Preparations

    Dataset

    This document uses the MNIST database available here.

    Code package

    The training script in this document is written by using the PyTorch framework. Its code package can be downloaded here.

    Directions

    Step 1 of task creation

    1. Go to Training > Task-based Modeling and click New Task to enter the task creation wizard.

    1. Enter the following information on the basic information page:

      • Task Name: mnist_train
      • Training Framework: select Built-in framework / PyTorch / 1.9-py3.6-cuda11.1-gpu.
      • Training Mode: select MPI.
      • Billing Mode: select Pay-as-You-Go.
      • Spec: select 8C40G V100*1.
      • Node Count: select 1.
      • Tag and Description: optional

      After entering the required information, click Next to go to the task configuration page.

    Step 2 of task creation

    Enter the following information on the task configuration page:

    1. Algorithm Source:

      • Code Package: click Select. In the COS pop-up window, select the target bucket, click Upload Folder in the bottom-left corner, upload the mnist.pytorch folder generated after decompressing the code package to the bucket, and select the path of the code package.
      • Startup Commands: enter sh start.sh.

    1. Data Source: select COS.

      • Mapping Path: enter train.
      • Dataset Path: click Select. In the COS pop-up window, select the target bucket, click Upload Folder in the bottom-left corner, upload the ti-images folder generated after decompressing the dataset, and select the folder path as shown below:

    1. Tuning Parameter: none.

    2. Training Output: click Select. In the COS pop-up window, select the target bucket path for saving the training output data as shown below:

    1. CLS Log: toggle it off.
    2. VPC: select Do not use VPC.

    After completing the configuration, view the hourly rate of the training task at the bottom of the page and click OK.

    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support