Files
doc-exports/docs/modelarts/api-ref/ShowTrainingJobFlavors.html
2025-05-09 10:22:58 +00:00

449 lines
33 KiB
HTML

<a name="EN-US_TOPIC_0000002268726257"></a><a name="EN-US_TOPIC_0000002268726257"></a>
<h1 class="topictitle1">Obtaining the General Specifications Supported by a Training Job</h1>
<div id="body32001227"><div class="section" id="EN-US_TOPIC_0000002268726257__section02351538123815"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000002268726257__p19235193812383">This API is used to obtain the public flavors supported by a training job.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000002268726257__section15268153863819"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0000002268726257__p9268193863817">GET /v2/{project_id}/training-job-flavors</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268726257__table82691238143814" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000002268726257__row1269113803815"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="EN-US_TOPIC_0000002268726257__p15270133893813">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_0000002268726257__p827013883815">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_0000002268726257__p17270163883812">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_0000002268726257__p92704386383">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002268726257__row72691338143812"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726257__p4270538163816">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_0000002268726257__p1227013883813">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726257__p1927063843813">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726257__p5270103823816">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_0000002268726257__table32711538103812" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Query Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000002268726257__row227163813814"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.1"><p id="EN-US_TOPIC_0000002268726257__p192714385384">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_0000002268726257__p172717386385">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_0000002268726257__p10272173813383">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_0000002268726257__p1527293883813">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002268726257__row10271538163813"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726257__p527213819384">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_0000002268726257__p16272138143810">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726257__p1327243816387">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726257__p17272113873810">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_0000002268726257__ul627383817387"><li id="EN-US_TOPIC_0000002268726257__li1273113812384"><p id="EN-US_TOPIC_0000002268726257__p1727383853812"><a name="EN-US_TOPIC_0000002268726257__li1273113812384"></a><a name="li1273113812384"></a><strong id="EN-US_TOPIC_0000002268726257__b17273738133816">CPU</strong></p>
</li><li id="EN-US_TOPIC_0000002268726257__li327343883816"><p id="EN-US_TOPIC_0000002268726257__p122738383389"><a name="EN-US_TOPIC_0000002268726257__li327343883816"></a><a name="li327343883816"></a><strong id="EN-US_TOPIC_0000002268726257__b427310380387">GPU</strong></p>
</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000002268726257__section627373873819"><h4 class="sectiontitle">Request Parameters</h4><p id="EN-US_TOPIC_0000002268726257__p827373814386">None</p>
</div>
<div class="section" id="EN-US_TOPIC_0000002268726257__section6273173815385"><h4 class="sectiontitle">Response Parameters</h4><p id="EN-US_TOPIC_0000002268726257__p927320385380"><strong id="EN-US_TOPIC_0000002268726257__b627313383385">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268726257__en-us_topic_0000002091282833_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_0000002268726257__row162741538113812"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.1"><p id="EN-US_TOPIC_0000002268726257__p1727473873817">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.2"><p id="EN-US_TOPIC_0000002268726257__p1027423816383">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.3.2.4.1.3"><p id="EN-US_TOPIC_0000002268726257__p627473813814">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002268726257__row17274438193818"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726257__p027563811385">total_count</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726257__p1027513810380">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726257__p16275538153816">Total number of resource flavors of a training job.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268726257__row92741838143820"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726257__p1275738153812">flavors</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726257__p327513823815">Array of <a href="#EN-US_TOPIC_0000002268726257__en-us_topic_0000002091282833_response_FlavorResponse">FlavorResponse</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726257__p14275193813811">List of resource flavors of a training job.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002268726257__en-us_topic_0000002091282833_response_FlavorResponse"></a><a name="en-us_topic_0000002091282833_response_FlavorResponse"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268726257__en-us_topic_0000002091282833_response_FlavorResponse" frame="border" border="1" rules="all"><caption><b>Table 4 </b>FlavorResponse</caption><thead align="left"><tr id="EN-US_TOPIC_0000002268726257__row927553823812"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.4.2.4.1.1"><p id="EN-US_TOPIC_0000002268726257__p1327616380385">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.4.2.4.1.2"><p id="EN-US_TOPIC_0000002268726257__p2276538133814">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.4.2.4.1.3"><p id="EN-US_TOPIC_0000002268726257__p72761638153813">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002268726257__row18276133820387"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726257__p727614381382">flavor_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726257__p112771138183814">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726257__p1727714381389">ID of the resource flavor.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268726257__row1727618383389"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726257__p727743863819">flavor_name</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726257__p32771538133815">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726257__p1027783818389">Name of the resource flavor.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268726257__row13276153813813"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726257__p19277173843819">max_num</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726257__p227793843811">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726257__p1427723816382">Maximum number of nodes in a resource flavor.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268726257__row827693883817"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726257__p527763813387">flavor_type</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726257__p1527783820388">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726257__p927793833816">Resource flavor type. Options:</p>
<ul id="EN-US_TOPIC_0000002268726257__ul13277153843815"><li id="EN-US_TOPIC_0000002268726257__li12781638183816"><p id="EN-US_TOPIC_0000002268726257__p027823883811"><a name="EN-US_TOPIC_0000002268726257__li12781638183816"></a><a name="li12781638183816"></a><strong id="EN-US_TOPIC_0000002268726257__b727883853814">CPU</strong></p>
</li><li id="EN-US_TOPIC_0000002268726257__li82781538153814"><p id="EN-US_TOPIC_0000002268726257__p11278638133812"><a name="EN-US_TOPIC_0000002268726257__li82781538153814"></a><a name="li82781538153814"></a><strong id="EN-US_TOPIC_0000002268726257__b5278163817385">GPU</strong></p>
</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268726257__row152761538143818"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726257__p7278123853819">billing</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726257__p327833813386"><a href="#EN-US_TOPIC_0000002268726257__en-us_topic_0000002091282833_response_BillingInfo">BillingInfo</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726257__p15278133813818">Billing information of a resource flavor.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268726257__row1427618385386"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726257__p152781538113820">flavor_info</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726257__p172783384381"><a href="#EN-US_TOPIC_0000002268726257__en-us_topic_0000002091282833_response_FlavorInfoResponse">FlavorInfoResponse</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726257__p122781938133819">Resource flavor details.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268726257__row427653812381"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726257__p1527843843817">attributes</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726257__p227883803814">Map&lt;String,String&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726257__p1927812381383">Other specification attributes.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002268726257__en-us_topic_0000002091282833_response_BillingInfo"></a><a name="en-us_topic_0000002091282833_response_BillingInfo"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268726257__en-us_topic_0000002091282833_response_BillingInfo" frame="border" border="1" rules="all"><caption><b>Table 5 </b>BillingInfo</caption><thead align="left"><tr id="EN-US_TOPIC_0000002268726257__row112791438103810"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.1"><p id="EN-US_TOPIC_0000002268726257__p927914384383">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.2"><p id="EN-US_TOPIC_0000002268726257__p62791638133814">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.5.2.4.1.3"><p id="EN-US_TOPIC_0000002268726257__p6279123813380">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002268726257__row72791838133813"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726257__p9280193873814">code</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726257__p1328020384386">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726257__p528083814386">Billing code.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268726257__row14279338163818"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726257__p728023819384">unit_num</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726257__p028093803815">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726257__p18280163811381">Billing unit.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002268726257__en-us_topic_0000002091282833_response_FlavorInfoResponse"></a><a name="en-us_topic_0000002091282833_response_FlavorInfoResponse"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268726257__en-us_topic_0000002091282833_response_FlavorInfoResponse" frame="border" border="1" rules="all"><caption><b>Table 6 </b>FlavorInfoResponse</caption><thead align="left"><tr id="EN-US_TOPIC_0000002268726257__row15280123843819"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.6.2.4.1.1"><p id="EN-US_TOPIC_0000002268726257__p19281438173817">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.6.2.4.1.2"><p id="EN-US_TOPIC_0000002268726257__p17281133813820">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.6.2.4.1.3"><p id="EN-US_TOPIC_0000002268726257__p928123853820">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002268726257__row172809384388"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726257__p828163813388">max_num</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726257__p172812383386">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.6.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726257__p1728110383385">Maximum number of nodes that can be selected. The value <strong id="EN-US_TOPIC_0000002268726257__b142825383386">1</strong> indicates that the distributed mode is not supported.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268726257__row1528093893813"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726257__p9282238123820">cpu</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726257__p16282183811389"><a href="#EN-US_TOPIC_0000002268726257__en-us_topic_0000002091282833_response_Cpu">Cpu</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.6.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726257__p3282638153813">CPU specifications.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268726257__row19280538183817"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726257__p18282153814389">gpu</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726257__p228263873813"><a href="#EN-US_TOPIC_0000002268726257__en-us_topic_0000002091282833_response_Gpu">Gpu</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.6.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726257__p6282133816380">GPU specifications.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268726257__row19281113813818"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726257__p0283638123810">memory</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726257__p12283173814384"><a href="#EN-US_TOPIC_0000002268726257__en-us_topic_0000002091282833_response_Memory">Memory</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.6.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726257__p1283153819388">Memory information.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268726257__row1628193810389"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726257__p182831038123818">disk</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726257__p1228343883815"><a href="#EN-US_TOPIC_0000002268726257__en-us_topic_0000002091282833_response_DiskResponse">DiskResponse</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.6.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726257__p3283173815382">Disk information.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002268726257__en-us_topic_0000002091282833_response_Cpu"></a><a name="en-us_topic_0000002091282833_response_Cpu"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268726257__en-us_topic_0000002091282833_response_Cpu" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Cpu</caption><thead align="left"><tr id="EN-US_TOPIC_0000002268726257__row1028333853813"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.7.2.4.1.1"><p id="EN-US_TOPIC_0000002268726257__p132841387380">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.7.2.4.1.2"><p id="EN-US_TOPIC_0000002268726257__p172841538103814">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.7.2.4.1.3"><p id="EN-US_TOPIC_0000002268726257__p92842038113812">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002268726257__row12831238183812"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726257__p13284133812385">arch</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726257__p202841538123814">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726257__p728473817387">CPU architecture.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268726257__row15284153817388"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726257__p1728483823819">core_num</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726257__p1428513833817">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726257__p6285638103819">Number of cores.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002268726257__en-us_topic_0000002091282833_response_Gpu"></a><a name="en-us_topic_0000002091282833_response_Gpu"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268726257__en-us_topic_0000002091282833_response_Gpu" frame="border" border="1" rules="all"><caption><b>Table 8 </b>Gpu</caption><thead align="left"><tr id="EN-US_TOPIC_0000002268726257__row102851038143820"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.8.2.4.1.1"><p id="EN-US_TOPIC_0000002268726257__p10285438153813">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.8.2.4.1.2"><p id="EN-US_TOPIC_0000002268726257__p1628643819386">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.8.2.4.1.3"><p id="EN-US_TOPIC_0000002268726257__p1928653813818">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002268726257__row528563813813"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726257__p128618389388">unit_num</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726257__p628673893813">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.8.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726257__p12861838143810">Number of GPUs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268726257__row1728583833810"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726257__p5286838123820">product_name</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726257__p428663820383">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.8.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726257__p192861638163812">Product name.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268726257__row8285123813388"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726257__p10286203853814">memory</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726257__p162861938133813">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.8.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726257__p62871938193816">Memory.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268726257__en-us_topic_0000002091282833_response_Npu" frame="border" border="1" rules="all"><caption><b>Table 9 </b>Npu</caption><thead align="left"><tr id="EN-US_TOPIC_0000002268726257__row102875385381"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.9.2.4.1.1"><p id="EN-US_TOPIC_0000002268726257__p92881438163813">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.9.2.4.1.2"><p id="EN-US_TOPIC_0000002268726257__p72881238173811">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.9.2.4.1.3"><p id="EN-US_TOPIC_0000002268726257__p6288438143814">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002268726257__row02871738123819"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726257__p928853823810">unit_num</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726257__p828863843814">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.9.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726257__p6288113843815">Number of NPUs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268726257__row1928723863815"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726257__p1928843833815">product_name</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726257__p62881138103818">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.9.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726257__p19289238143810">Product name.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268726257__row1728723818380"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726257__p1628916381386">memory</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726257__p1728983818389">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.9.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726257__p5289638143812">Memory.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002268726257__en-us_topic_0000002091282833_response_Memory"></a><a name="en-us_topic_0000002091282833_response_Memory"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268726257__en-us_topic_0000002091282833_response_Memory" frame="border" border="1" rules="all"><caption><b>Table 10 </b>Memory</caption><thead align="left"><tr id="EN-US_TOPIC_0000002268726257__row1628943823816"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.10.2.4.1.1"><p id="EN-US_TOPIC_0000002268726257__p5289183853813">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.10.2.4.1.2"><p id="EN-US_TOPIC_0000002268726257__p8290238133814">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.10.2.4.1.3"><p id="EN-US_TOPIC_0000002268726257__p18290173814389">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002268726257__row92891938103810"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.10.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726257__p6290173815381">size</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.10.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726257__p52906380386">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.10.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726257__p32901338193818">Memory size.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268726257__row20289123814387"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.10.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726257__p1929083803810">unit</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.10.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726257__p182901638173820">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.10.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726257__p729083883816">Number of memory units.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002268726257__en-us_topic_0000002091282833_response_DiskResponse"></a><a name="en-us_topic_0000002091282833_response_DiskResponse"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268726257__en-us_topic_0000002091282833_response_DiskResponse" frame="border" border="1" rules="all"><caption><b>Table 11 </b>DiskResponse</caption><thead align="left"><tr id="EN-US_TOPIC_0000002268726257__row9290103816383"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.11.2.4.1.1"><p id="EN-US_TOPIC_0000002268726257__p82913382384">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.11.2.4.1.2"><p id="EN-US_TOPIC_0000002268726257__p1029112386386">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.11.2.4.1.3"><p id="EN-US_TOPIC_0000002268726257__p22911938173820">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002268726257__row32901738123815"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.11.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726257__p3291538173816">size</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.11.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726257__p192917385380">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.11.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726257__p2029113883814">Disk size.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002268726257__row829083843815"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.11.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726257__p15291538123813">unit</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.11.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726257__p5291133817383">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.11.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726257__p11292183810387">Unit of the disk size.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000002268726257__section5292238113811"><h4 class="sectiontitle">Example Requests</h4><p id="EN-US_TOPIC_0000002268726257__p132927383384">The following shows how to query the public CPU resource flavors of training jobs.</p>
<pre class="screen" id="EN-US_TOPIC_0000002268726257__screen12921638103818">GET https://endpoint/v2/{project_id}/training-job-flavors?flavor_type=CPU</pre>
</div>
<div class="section" id="EN-US_TOPIC_0000002268726257__section229220386385"><h4 class="sectiontitle">Example Responses</h4><p id="EN-US_TOPIC_0000002268726257__p429283819380"><strong id="EN-US_TOPIC_0000002268726257__b229210387387">Status code: 200</strong></p>
<p id="EN-US_TOPIC_0000002268726257__p62921838113812">ok</p>
<pre class="screen" id="EN-US_TOPIC_0000002268726257__screen152931538163813">{
"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_0000002268726257__section3420938143813"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268726257__en-us_topic_0000002091282833_status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000002268726257__row429783810383"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="EN-US_TOPIC_0000002268726257__p1442143815386">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_0000002268726257__p1142143819389">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002268726257__row1729833813388"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="EN-US_TOPIC_0000002268726257__p5421038183811">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="EN-US_TOPIC_0000002268726257__p10421103816388">ok</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000002268726257__section2042114385389"><h4 class="sectiontitle">Error Codes</h4><p id="EN-US_TOPIC_0000002268726257__p2421193813813">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>