Create run
- Print
- PDF
Create run
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Available in VPC
Create a run.
Request
The following describes the request format for the endpoint. The request format is as follows:
Method | URI |
---|---|
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.
Field | Type | Required | Description |
---|---|---|---|
projectId | String | Required | Project ID
|
Request body
The following describes the request body.
Field | Type | Required | Description |
---|---|---|---|
blockStorageNoList | Array | Optional | List of block storage numbers
|
command | String | Conditional | Command to run on the node
|
envs | Map | Optional | Node internal environment variable |
gpuSvrCode | Integer | Required | GPU server code
|
imagePath | String | Required | Image path
|
imageType | String | Required | Image type
|
nodeCount | Integer | Required | Number of nodes |
note | String | Optional | Description 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?