Create run
    • PDF

    Create run

    • PDF

    Article summary

    Available in VPC

    Create a run.

    Request

    The following describes the request format for the endpoint. The request format is as follows:

    MethodURI
    POST/projects/{projectId}/runs

    Request headers

    For headers common to all CLOVA NSML APIs, see Common CLOVA NSML headers.

    Request path parameters

    The following describes the request path parameters.

    FieldTypeRequiredDescription
    projectIdStringRequiredProject ID

    Request body

    The following describes the request body.

    FieldTypeRequiredDescription
    blockStorageNoListArrayOptionalList of block storage numbers
    commandStringConditionalCommand to run on the node
    • If gpuSvrCode is the server code for Notebook, do not enter it; if it is the server code for Train, enter it
    envsMapOptionalNode internal environment variable
    gpuSvrCodeIntegerRequiredGPU server code
    imagePathStringRequiredImage path
    imageTypeStringRequiredImage type
    • BASE | CUSTOM
      • BASE: Base Image
      • CUSTOM: Custom Image
    nodeCountIntegerRequiredNumber of nodes
    noteStringOptionalDescription of run

    Request example

    The following is a sample request.

    curl --location --request POST 'https://nsml.apigw.ntruss.com/nsml/v1/projects/******ygz0iujn******/runs' \
    --header 'x-ncp-apigw-timestamp: {Timestamp}' \
    --header 'x-ncp-iam-access-key: {Access Key}' \
    --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
    --header 'x-ncp-apigw-api-key: {API Key}' \
    --header 'Content-Type: application/json' \
    --data '{
        "command": "python a.py",
        "env": {
            "ir":0.01,
            "weight-decay":0.001
        },
        "gpuSvrCode": 1,
        "imagePath": "nvcr.io/nvidia/tensorflow:21.02-tf1-py3",
        "imageType": "BASE",
        "nodeCount": 1
    }'
    

    Response

    The following describes the response format.

    Response status codes

    For response status codes common to all CLOVA NSML APIs, see Common CLOVA NSML response status codes.


    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.