doc-exports/docs/modelarts/api-ref/ShowTrainingJobFlavors.html
Lai, Weijian 68e5cd0687 ModelArts API 23.3.0 Version.
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lai, Weijian <laiweijian4@huawei.com>
Co-committed-by: Lai, Weijian <laiweijian4@huawei.com>
2024-06-18 11:02:37 +00:00

456 lines
33 KiB
HTML

<a name="EN-US_TOPIC_0000001909848160"></a><a name="EN-US_TOPIC_0000001909848160"></a>
<h1 class="topictitle1">Obtaining the General Specifications Supported by a Training Job</h1>
<div id="body0000001537993420"><div class="section" id="EN-US_TOPIC_0000001909848160__section1574044523715"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000001909848160__p1174014513716">This API is used to obtain the public flavors supported by a training job.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001909848160__atuogenerate_2"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0000001909848160__p127411545143712">GET /v2/{project_id}/training-job-flavors</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001909848160__table17742245203710" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000001909848160__row1742144513375"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="EN-US_TOPIC_0000001909848160__p074217454374">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="EN-US_TOPIC_0000001909848160__p12743194543713">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="EN-US_TOPIC_0000001909848160__p974364593716">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="EN-US_TOPIC_0000001909848160__p1674384513720">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001909848160__row574217453377"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001909848160__p1174312452374">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001909848160__p187433454376">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001909848160__p19743445103712">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001909848160__p6743845103719">Project ID. For details, see <a href="modelarts_03_0147.html">Obtaining a Project ID and Name</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001909848160__table147441453378" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Query Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000001909848160__row187441457375"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.1"><p id="EN-US_TOPIC_0000001909848160__p20744545163717">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.2"><p id="EN-US_TOPIC_0000001909848160__p187451945143718">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.3"><p id="EN-US_TOPIC_0000001909848160__p474518450378">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.4.2.5.1.4"><p id="EN-US_TOPIC_0000001909848160__p0745745193716">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001909848160__row167446453373"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="EN-US_TOPIC_0000001909848160__p27454455377">flavor_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="EN-US_TOPIC_0000001909848160__p0745184533715">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="EN-US_TOPIC_0000001909848160__p1574554519375">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="EN-US_TOPIC_0000001909848160__p37451545143711">This API is used to obtain training job flavors. If this parameter is not specified, all flavors will be obtained. Options:</p>
<ul id="EN-US_TOPIC_0000001909848160__ul1974684573710"><li id="EN-US_TOPIC_0000001909848160__li13746104583717"><p id="EN-US_TOPIC_0000001909848160__p11746114513716"><a name="EN-US_TOPIC_0000001909848160__li13746104583717"></a><a name="li13746104583717"></a><strong id="EN-US_TOPIC_0000001909848160__b8746104573717">CPU</strong></p>
</li><li id="EN-US_TOPIC_0000001909848160__li19746204503715"><p id="EN-US_TOPIC_0000001909848160__p774694583712"><a name="EN-US_TOPIC_0000001909848160__li19746204503715"></a><a name="li19746204503715"></a><strong id="EN-US_TOPIC_0000001909848160__b87461045133719">GPU</strong></p>
</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000001909848160__section4746845163718"><h4 class="sectiontitle">Request Parameters</h4><p id="EN-US_TOPIC_0000001909848160__p1274654515379">None</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001909848160__section16746114583716"><h4 class="sectiontitle">Response Parameters</h4><p id="EN-US_TOPIC_0000001909848160__p174644514374"><strong id="EN-US_TOPIC_0000001909848160__b474684573720">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001909848160__response_ListFlavors" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Response body parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000001909848160__row1574719457379"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.1"><p id="EN-US_TOPIC_0000001909848160__p14747154523717">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.2"><p id="EN-US_TOPIC_0000001909848160__p18747114503712">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.3.2.4.1.3"><p id="EN-US_TOPIC_0000001909848160__p2747045193714">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001909848160__row774784517372"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848160__p1974864553712">total_count</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848160__p1774804513375">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848160__p674844511374">Total number of resource flavors of a training job.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909848160__row4747114583717"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848160__p1574811453379">flavors</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848160__p474874517372">Array of <a href="#EN-US_TOPIC_0000001909848160__response_FlavorResponse">FlavorResponse</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848160__p6748145153718">List of resource flavors of a training job.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001909848160__response_FlavorResponse"></a><a name="response_FlavorResponse"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001909848160__response_FlavorResponse" frame="border" border="1" rules="all"><caption><b>Table 4 </b>FlavorResponse</caption><thead align="left"><tr id="EN-US_TOPIC_0000001909848160__row9749645103719"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.4.1.1"><p id="EN-US_TOPIC_0000001909848160__p87501945123715">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.4.1.2"><p id="EN-US_TOPIC_0000001909848160__p137501345103710">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.4.2.4.1.3"><p id="EN-US_TOPIC_0000001909848160__p3750164553712">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001909848160__row6749194515374"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848160__p12750845163716">flavor_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848160__p1875013452372">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848160__p7751345203716">ID of the resource flavor.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909848160__row177491545193710"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848160__p4751145133710">flavor_name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848160__p1275114456373">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848160__p1375118453370">Name of the resource flavor.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909848160__row8749154515379"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848160__p27512458375">max_num</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848160__p775118458372">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848160__p375124583712">Maximum number of nodes in a resource flavor.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909848160__row9749245103719"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848160__p157511445153717">flavor_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848160__p18751154573713">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848160__p187526455374">Resource flavor type. Options:</p>
<ul id="EN-US_TOPIC_0000001909848160__ul3752144517375"><li id="EN-US_TOPIC_0000001909848160__li1475274593717"><p id="EN-US_TOPIC_0000001909848160__p147525453379"><a name="EN-US_TOPIC_0000001909848160__li1475274593717"></a><a name="li1475274593717"></a><strong id="EN-US_TOPIC_0000001909848160__b2075294593720">CPU</strong></p>
</li><li id="EN-US_TOPIC_0000001909848160__li167522045203716"><p id="EN-US_TOPIC_0000001909848160__p6752184520378"><a name="EN-US_TOPIC_0000001909848160__li167522045203716"></a><a name="li167522045203716"></a><strong id="EN-US_TOPIC_0000001909848160__b575219457377">GPU</strong></p>
</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909848160__row117491545143716"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848160__p275264573719">billing</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848160__p175215450372"><a href="#EN-US_TOPIC_0000001909848160__response_billing">billing</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848160__p137521245113713">Billing information of a resource flavor.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909848160__row1775094533711"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848160__p9752154510371">flavor_info</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848160__p3752445183719"><a href="#EN-US_TOPIC_0000001909848160__response_flavor_info">flavor_info</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848160__p9753144516374">Resource flavor details.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909848160__row975094513716"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848160__p5753945133715">attributes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848160__p12753194583714">Map&lt;String,String&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848160__p11753745173714">Other specification attributes.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001909848160__response_billing"></a><a name="response_billing"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001909848160__response_billing" frame="border" border="1" rules="all"><caption><b>Table 5 </b>billing</caption><thead align="left"><tr id="EN-US_TOPIC_0000001909848160__row1175374593710"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.1"><p id="EN-US_TOPIC_0000001909848160__p167541945173714">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.2"><p id="EN-US_TOPIC_0000001909848160__p4754154553710">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.5.2.4.1.3"><p id="EN-US_TOPIC_0000001909848160__p14754114563714">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001909848160__row17753164513378"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848160__p1475419450377">code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848160__p167541845163712">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848160__p1975420452371">Billing code.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909848160__row475314518371"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848160__p6754104563720">unit_num</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848160__p575517457377">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848160__p157551945133715">Number of billing units.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001909848160__response_flavor_info"></a><a name="response_flavor_info"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001909848160__response_flavor_info" frame="border" border="1" rules="all"><caption><b>Table 6 </b>flavor_info</caption><thead align="left"><tr id="EN-US_TOPIC_0000001909848160__row127551245173718"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.6.2.4.1.1"><p id="EN-US_TOPIC_0000001909848160__p1375634518376">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.6.2.4.1.2"><p id="EN-US_TOPIC_0000001909848160__p375614563710">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.6.2.4.1.3"><p id="EN-US_TOPIC_0000001909848160__p1275634563718">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001909848160__row475534583720"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848160__p9756154516373">max_num</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848160__p1075613452375">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.6.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848160__p37561445203712">Maximum number of nodes that can be selected. The value <strong id="EN-US_TOPIC_0000001909848160__b17756154533710">1</strong> indicates that the distributed mode is not supported.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909848160__row16755945123719"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848160__p1575710455374">cpu</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848160__p17571945133717"><a href="#EN-US_TOPIC_0000001909848160__response_cpu">cpu</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.6.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848160__p18757164543719">CPU specifications.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909848160__row77553457372"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848160__p675714583711">gpu</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848160__p18757104523714"><a href="#EN-US_TOPIC_0000001909848160__response_gpu">gpu</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.6.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848160__p17757745113719">GPU specifications.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909848160__row1755124553716"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848160__p1175714456376">npu</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848160__p475784512372"><a href="#EN-US_TOPIC_0000001909848160__response_npu">npu</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.6.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848160__p17758145183710">Ascend specifications</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909848160__row10755745103712"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848160__p8758134511376">memory</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848160__p20758134518379"><a href="#EN-US_TOPIC_0000001909848160__response_memory">memory</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.6.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848160__p375884513715">Memory information.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909848160__row6755184553712"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848160__p1075814517372">disk</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848160__p97581459375"><a href="#EN-US_TOPIC_0000001909848160__response_disk">disk</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.6.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848160__p475818453373">Disk information.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001909848160__response_cpu"></a><a name="response_cpu"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001909848160__response_cpu" frame="border" border="1" rules="all"><caption><b>Table 7 </b>cpu</caption><thead align="left"><tr id="EN-US_TOPIC_0000001909848160__row975874533718"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.1"><p id="EN-US_TOPIC_0000001909848160__p675974513378">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.2"><p id="EN-US_TOPIC_0000001909848160__p27591045113714">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.7.2.4.1.3"><p id="EN-US_TOPIC_0000001909848160__p1175964523710">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001909848160__row147598457374"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848160__p177598455375">arch</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848160__p7760194517379">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848160__p10760134519374">CPU architecture.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909848160__row167591345133718"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848160__p2076074517370">core_num</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848160__p076134516377">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848160__p1576118458378">Number of cores.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001909848160__response_gpu"></a><a name="response_gpu"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001909848160__response_gpu" frame="border" border="1" rules="all"><caption><b>Table 8 </b>gpu</caption><thead align="left"><tr id="EN-US_TOPIC_0000001909848160__row117611945123718"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.8.2.4.1.1"><p id="EN-US_TOPIC_0000001909848160__p4762124563715">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.8.2.4.1.2"><p id="EN-US_TOPIC_0000001909848160__p16762134573720">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.8.2.4.1.3"><p id="EN-US_TOPIC_0000001909848160__p20762184516379">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001909848160__row15761045163710"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848160__p2076212452376">unit_num</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848160__p14762164553710">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.8.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848160__p376212455375">Number of GPUs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909848160__row176217452377"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848160__p15763194513715">product_name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848160__p1576374583711">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.8.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848160__p1576311451375">Product name.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909848160__row4762154512378"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848160__p127631245143713">memory</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848160__p15763144519377">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.8.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848160__p576354503714">Memory.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001909848160__response_npu"></a><a name="response_npu"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001909848160__response_npu" frame="border" border="1" rules="all"><caption><b>Table 9 </b>npu</caption><thead align="left"><tr id="EN-US_TOPIC_0000001909848160__row776384593713"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.9.2.4.1.1"><p id="EN-US_TOPIC_0000001909848160__p5764845193714">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.9.2.4.1.2"><p id="EN-US_TOPIC_0000001909848160__p1476414543719">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.9.2.4.1.3"><p id="EN-US_TOPIC_0000001909848160__p2764194514371">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001909848160__row19763245113717"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848160__p176411454372">unit_num</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848160__p276464543714">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.9.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848160__p4764174515378">Number of NPUs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909848160__row57631545193715"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848160__p37651645183711">product_name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848160__p876516457372">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.9.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848160__p15765104513371">Product name.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909848160__row1976419453379"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848160__p576519456377">memory</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848160__p127653453379">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.9.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848160__p9765134512378">Memory.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001909848160__response_memory"></a><a name="response_memory"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001909848160__response_memory" frame="border" border="1" rules="all"><caption><b>Table 10 </b>memory</caption><thead align="left"><tr id="EN-US_TOPIC_0000001909848160__row1576554583715"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.10.2.4.1.1"><p id="EN-US_TOPIC_0000001909848160__p117664459375">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.10.2.4.1.2"><p id="EN-US_TOPIC_0000001909848160__p117661045183710">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.10.2.4.1.3"><p id="EN-US_TOPIC_0000001909848160__p1476674514375">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001909848160__row14765645173711"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.10.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848160__p4766194573720">size</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.10.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848160__p2076644511378">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.10.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848160__p47679452377">Memory size.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909848160__row1776574523717"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.10.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848160__p7767445103717">unit</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.10.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848160__p1176734523717">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.10.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848160__p14767154520378">Memory size</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001909848160__response_disk"></a><a name="response_disk"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001909848160__response_disk" frame="border" border="1" rules="all"><caption><b>Table 11 </b>disk</caption><thead align="left"><tr id="EN-US_TOPIC_0000001909848160__row2767124583713"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.11.2.4.1.1"><p id="EN-US_TOPIC_0000001909848160__p3768114583719">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.11.2.4.1.2"><p id="EN-US_TOPIC_0000001909848160__p07681945183712">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.11.2.4.1.3"><p id="EN-US_TOPIC_0000001909848160__p1576874515373">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001909848160__row4767945113711"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848160__p876874513711">size</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848160__p20768245123713">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.11.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848160__p19769845143719">Disk size.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001909848160__row7768945123710"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848160__p117697456371">unit</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848160__p107691645163713">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.11.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848160__p676915452370">Unit of the disk size.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000001909848160__section776914518372"><h4 class="sectiontitle">Example Requests</h4><p id="EN-US_TOPIC_0000001909848160__p1376994553715">The following shows how to query the public CPU resource flavors of training jobs.</p>
<pre class="screen" id="EN-US_TOPIC_0000001909848160__screen5769445203713">GET https://endpoint/v2/{project_id}/training-job-flavors?flavor_type=CPU</pre>
</div>
<div class="section" id="EN-US_TOPIC_0000001909848160__section10769194573713"><h4 class="sectiontitle">Example Responses</h4><p id="EN-US_TOPIC_0000001909848160__p167701945133718"><strong id="EN-US_TOPIC_0000001909848160__b7770124573713">Status code: 200</strong></p>
<p id="EN-US_TOPIC_0000001909848160__p7770174593713">ok</p>
<pre class="screen" id="EN-US_TOPIC_0000001909848160__screen1277118459374">{
"total_count" : 2,
"flavors" : [ {
"flavor_id" : "modelarts.vm.cpu.2u",
"flavor_name" : "Computing CPU(2U) instance",
"flavor_type" : "CPU",
"billing" : {
"code" : "modelarts.vm.cpu.2u",
"unit_num" : 1
},
"flavor_info" : {
"max_num" : 1,
"cpu" : {
"arch" : "x86",
"core_num" : 2
},
"memory" : {
"size" : 8,
"unit" : "GB"
},
"disk" : {
"size" : 50,
"unit" : "GB"
}
}
}, {
"flavor_id" : "modelarts.vm.cpu.8u",
"flavor_name" : "Computing CPU(8U) instance",
"flavor_type" : "CPU",
"billing" : {
"code" : "modelarts.vm.cpu.8u",
"unit_num" : 1
},
"flavor_info" : {
"max_num" : 16,
"cpu" : {
"arch" : "x86",
"core_num" : 8
},
"memory" : {
"size" : 32,
"unit" : "GB"
},
"disk" : {
"size" : 50,
"unit" : "GB"
}
}
} ]
}</pre>
</div>
<div class="section" id="EN-US_TOPIC_0000001909848160__section4878545183712"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001909848160__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000001909848160__row127761845133716"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="EN-US_TOPIC_0000001909848160__p15878104543718">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="EN-US_TOPIC_0000001909848160__p387804511378">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001909848160__row377614514371"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="EN-US_TOPIC_0000001909848160__p7878144510378">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="EN-US_TOPIC_0000001909848160__p6879124515372">ok</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000001909848160__section5879745143720"><h4 class="sectiontitle">Error Codes</h4><p id="EN-US_TOPIC_0000001909848160__p208791458379">See <a href="modelarts_03_0095.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="algorithms.html">Training Management</a></div>
</div>
</div>