doc-exports/docs/modelarts/api-ref/ShowTrainingJobFlavors.html
Wuwan, Qi f81ead2467 ModelArts API 24.3.0 20241128 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com>
Co-committed-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com>
2024-11-29 09:04:54 +00:00

456 lines
33 KiB
HTML

<a name="EN-US_TOPIC_0000002079045733"></a><a name="EN-US_TOPIC_0000002079045733"></a>
<h1 class="topictitle1">Obtaining the General Specifications Supported by a Training Job</h1>
<div id="body519043171918"><div class="section" id="EN-US_TOPIC_0000002079045733__section1419063151918"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000002079045733__p619015312196">This API is used to obtain the public flavors supported by a training job.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000002079045733__section719120311195"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0000002079045733__p21923311913">GET /v2/{project_id}/training-job-flavors</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002079045733__table5193538199" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000002079045733__row81935319193"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="EN-US_TOPIC_0000002079045733__p01941431196">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_0000002079045733__p41948311194">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_0000002079045733__p1919517351911">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_0000002079045733__p1819533101913">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002079045733__row101931538198"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002079045733__p1219563191915">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_0000002079045733__p019618331919">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002079045733__p71967371917">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002079045733__p101960320199">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_0000002079045733__table141986371919" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Query Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000002079045733__row171971319195"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.1"><p id="EN-US_TOPIC_0000002079045733__p1419863171917">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_0000002079045733__p1519833121915">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_0000002079045733__p121998318195">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_0000002079045733__p111998315196">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002079045733__row619715381915"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="EN-US_TOPIC_0000002079045733__p120013319194">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_0000002079045733__p2200936198">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="EN-US_TOPIC_0000002079045733__p7200193161914">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="EN-US_TOPIC_0000002079045733__p72019310194">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_0000002079045733__ul12013381911"><li id="EN-US_TOPIC_0000002079045733__li6201163101913"><p id="EN-US_TOPIC_0000002079045733__p202015321917"><a name="EN-US_TOPIC_0000002079045733__li6201163101913"></a><a name="li6201163101913"></a><strong id="EN-US_TOPIC_0000002079045733__b3201239198">CPU</strong></p>
</li><li id="EN-US_TOPIC_0000002079045733__li920214311915"><p id="EN-US_TOPIC_0000002079045733__p420203161916"><a name="EN-US_TOPIC_0000002079045733__li920214311915"></a><a name="li920214311915"></a><strong id="EN-US_TOPIC_0000002079045733__b020212311191">GPU</strong></p>
</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000002079045733__section32024312196"><h4 class="sectiontitle">Request Parameters</h4><p id="EN-US_TOPIC_0000002079045733__p6202183181914">None</p>
</div>
<div class="section" id="EN-US_TOPIC_0000002079045733__section1020312351910"><h4 class="sectiontitle">Response Parameters</h4><p id="EN-US_TOPIC_0000002079045733__p320314381912"><strong id="EN-US_TOPIC_0000002079045733__b0203143171918">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002079045733__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_0000002079045733__row120415311913"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.1"><p id="EN-US_TOPIC_0000002079045733__p1520543101918">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_0000002079045733__p1120618313192">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_0000002079045733__p320618321915">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002079045733__row1120412315197"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002079045733__p32061633193">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_0000002079045733__p72071136197">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002079045733__p14207236195">Total number of resource flavors of a training job.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002079045733__row2204153111920"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002079045733__p162075351915">flavors</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002079045733__p520814361918">Array of <a href="#EN-US_TOPIC_0000002079045733__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_0000002079045733__p19208137195">List of resource flavors of a training job.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002079045733__response_FlavorResponse"></a><a name="response_FlavorResponse"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002079045733__response_FlavorResponse" frame="border" border="1" rules="all"><caption><b>Table 4 </b>FlavorResponse</caption><thead align="left"><tr id="EN-US_TOPIC_0000002079045733__row62091737198"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.4.1.1"><p id="EN-US_TOPIC_0000002079045733__p112115316194">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_0000002079045733__p721212311195">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_0000002079045733__p02121331911">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002079045733__row2020912319194"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002079045733__p1821210341914">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_0000002079045733__p192134320195">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002079045733__p12137318190">ID of the resource flavor.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002079045733__row10209173121917"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002079045733__p152141391914">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_0000002079045733__p8214733197">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002079045733__p1921411321914">Name of the resource flavor.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002079045733__row1621093141916"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002079045733__p132154318192">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_0000002079045733__p112151530199">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002079045733__p1521673131918">Maximum number of nodes in a resource flavor.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002079045733__row1621083121920"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002079045733__p7216334190">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_0000002079045733__p021713361910">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000002079045733__p1021718301914">Resource flavor type. Options:</p>
<ul id="EN-US_TOPIC_0000002079045733__ul1921712311911"><li id="EN-US_TOPIC_0000002079045733__li821713161914"><p id="EN-US_TOPIC_0000002079045733__p1921716391918"><a name="EN-US_TOPIC_0000002079045733__li821713161914"></a><a name="li821713161914"></a><strong id="EN-US_TOPIC_0000002079045733__b1621813151917">CPU</strong></p>
</li><li id="EN-US_TOPIC_0000002079045733__li1421883171911"><p id="EN-US_TOPIC_0000002079045733__p7218839191"><a name="EN-US_TOPIC_0000002079045733__li1421883171911"></a><a name="li1421883171911"></a><strong id="EN-US_TOPIC_0000002079045733__b821813316198">GPU</strong></p>
</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002079045733__row7210183131916"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002079045733__p6218736191">billing</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002079045733__p82191832190"><a href="#EN-US_TOPIC_0000002079045733__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_0000002079045733__p821933171914">Billing information of a resource flavor.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002079045733__row18210838197"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002079045733__p1722023121911">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_0000002079045733__p1122019317197"><a href="#EN-US_TOPIC_0000002079045733__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_0000002079045733__p122114310191">Resource flavor details.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002079045733__row162101231193"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000002079045733__p12212331914">attributes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000002079045733__p1122119317194">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_0000002079045733__p112224371910">Other specification attributes.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002079045733__response_billing"></a><a name="response_billing"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002079045733__response_billing" frame="border" border="1" rules="all"><caption><b>Table 5 </b>billing</caption><thead align="left"><tr id="EN-US_TOPIC_0000002079045733__row132221433194"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.1"><p id="EN-US_TOPIC_0000002079045733__p9224238191">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_0000002079045733__p2224163181912">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_0000002079045733__p1322418361914">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002079045733__row172231338194"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="EN-US_TOPIC_0000002079045733__p10225113141919">code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="EN-US_TOPIC_0000002079045733__p1622503141915">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="EN-US_TOPIC_0000002079045733__p112251939197">Billing code.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002079045733__row13223930196"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="EN-US_TOPIC_0000002079045733__p122616331912">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_0000002079045733__p22261331912">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="EN-US_TOPIC_0000002079045733__p1226632197">Number of billing units.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002079045733__response_flavor_info"></a><a name="response_flavor_info"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002079045733__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_0000002079045733__row722719331913"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.6.2.4.1.1"><p id="EN-US_TOPIC_0000002079045733__p112297341915">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_0000002079045733__p102291937198">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_0000002079045733__p122292371916">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002079045733__row1922711320197"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.1 "><p id="EN-US_TOPIC_0000002079045733__p1423012351912">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_0000002079045733__p623023111915">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.6.2.4.1.3 "><p id="EN-US_TOPIC_0000002079045733__p1023114361915">Maximum number of nodes that can be selected. The value <strong id="EN-US_TOPIC_0000002079045733__b1423116319196">1</strong> indicates that the distributed mode is not supported.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002079045733__row222716318197"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.1 "><p id="EN-US_TOPIC_0000002079045733__p13231203171916">cpu</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.2 "><p id="EN-US_TOPIC_0000002079045733__p323210318195"><a href="#EN-US_TOPIC_0000002079045733__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_0000002079045733__p1823203171919">CPU specifications.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002079045733__row10228193161916"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.1 "><p id="EN-US_TOPIC_0000002079045733__p15233103131916">gpu</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.2 "><p id="EN-US_TOPIC_0000002079045733__p523317391911"><a href="#EN-US_TOPIC_0000002079045733__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_0000002079045733__p1123415316194">GPU specifications.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002079045733__row42281435194"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.1 "><p id="EN-US_TOPIC_0000002079045733__p10234631193">npu</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.2 "><p id="EN-US_TOPIC_0000002079045733__p202352351916"><a href="#EN-US_TOPIC_0000002079045733__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_0000002079045733__p62356381919">Ascend specifications</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002079045733__row622812319199"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.1 "><p id="EN-US_TOPIC_0000002079045733__p623615318190">memory</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.2 "><p id="EN-US_TOPIC_0000002079045733__p102361631191"><a href="#EN-US_TOPIC_0000002079045733__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_0000002079045733__p1237113131918">Memory information.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002079045733__row622815391917"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.1 "><p id="EN-US_TOPIC_0000002079045733__p12374371918">disk</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.2 "><p id="EN-US_TOPIC_0000002079045733__p423783121919"><a href="#EN-US_TOPIC_0000002079045733__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_0000002079045733__p20238834197">Disk information.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002079045733__response_cpu"></a><a name="response_cpu"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002079045733__response_cpu" frame="border" border="1" rules="all"><caption><b>Table 7 </b>cpu</caption><thead align="left"><tr id="EN-US_TOPIC_0000002079045733__row823916361910"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.1"><p id="EN-US_TOPIC_0000002079045733__p0240153121916">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_0000002079045733__p15240203151917">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_0000002079045733__p19241430193">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002079045733__row1123910310198"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000002079045733__p1924118312193">arch</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="EN-US_TOPIC_0000002079045733__p1824273201914">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000002079045733__p1024213311195">CPU architecture.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002079045733__row423943151910"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="EN-US_TOPIC_0000002079045733__p824317351914">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_0000002079045733__p142436341913">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="EN-US_TOPIC_0000002079045733__p1824414319198">Number of cores.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002079045733__response_gpu"></a><a name="response_gpu"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002079045733__response_gpu" frame="border" border="1" rules="all"><caption><b>Table 8 </b>gpu</caption><thead align="left"><tr id="EN-US_TOPIC_0000002079045733__row12245113141915"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.8.2.4.1.1"><p id="EN-US_TOPIC_0000002079045733__p324617361914">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_0000002079045733__p1624615381914">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_0000002079045733__p824613161918">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002079045733__row424523161912"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.4.1.1 "><p id="EN-US_TOPIC_0000002079045733__p132471635192">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_0000002079045733__p1824714317192">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.8.2.4.1.3 "><p id="EN-US_TOPIC_0000002079045733__p7247139198">Number of GPUs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002079045733__row162451137193"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.4.1.1 "><p id="EN-US_TOPIC_0000002079045733__p112484314196">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_0000002079045733__p924853171918">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.8.2.4.1.3 "><p id="EN-US_TOPIC_0000002079045733__p6248123141913">Product name.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002079045733__row15245173101917"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.4.1.1 "><p id="EN-US_TOPIC_0000002079045733__p224914319192">memory</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.4.1.2 "><p id="EN-US_TOPIC_0000002079045733__p142491532198">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.8.2.4.1.3 "><p id="EN-US_TOPIC_0000002079045733__p124911319190">Memory.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002079045733__response_npu"></a><a name="response_npu"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002079045733__response_npu" frame="border" border="1" rules="all"><caption><b>Table 9 </b>npu</caption><thead align="left"><tr id="EN-US_TOPIC_0000002079045733__row12508331913"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.9.2.4.1.1"><p id="EN-US_TOPIC_0000002079045733__p1925173121911">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_0000002079045733__p16251143141914">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_0000002079045733__p1025214316197">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002079045733__row6250538194"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.1 "><p id="EN-US_TOPIC_0000002079045733__p12252113181910">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_0000002079045733__p182528316196">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.9.2.4.1.3 "><p id="EN-US_TOPIC_0000002079045733__p1253203181918">Number of NPUs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002079045733__row1225011311914"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.1 "><p id="EN-US_TOPIC_0000002079045733__p1925363181915">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_0000002079045733__p92538321917">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.9.2.4.1.3 "><p id="EN-US_TOPIC_0000002079045733__p225320371919">Product name.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002079045733__row2025012319198"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.1 "><p id="EN-US_TOPIC_0000002079045733__p132540351914">memory</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.2 "><p id="EN-US_TOPIC_0000002079045733__p725453111919">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.9.2.4.1.3 "><p id="EN-US_TOPIC_0000002079045733__p1425410341910">Memory.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002079045733__response_memory"></a><a name="response_memory"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002079045733__response_memory" frame="border" border="1" rules="all"><caption><b>Table 10 </b>memory</caption><thead align="left"><tr id="EN-US_TOPIC_0000002079045733__row112551335198"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.10.2.4.1.1"><p id="EN-US_TOPIC_0000002079045733__p102561832191">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_0000002079045733__p6257337192">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_0000002079045733__p112571317197">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002079045733__row15255833190"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.10.2.4.1.1 "><p id="EN-US_TOPIC_0000002079045733__p62589341915">size</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.10.2.4.1.2 "><p id="EN-US_TOPIC_0000002079045733__p112589316198">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.10.2.4.1.3 "><p id="EN-US_TOPIC_0000002079045733__p132581319196">Memory size.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002079045733__row42551936198"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.10.2.4.1.1 "><p id="EN-US_TOPIC_0000002079045733__p82594311197">unit</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.10.2.4.1.2 "><p id="EN-US_TOPIC_0000002079045733__p62598341919">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.10.2.4.1.3 "><p id="EN-US_TOPIC_0000002079045733__p32594391912">Memory size</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002079045733__response_disk"></a><a name="response_disk"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002079045733__response_disk" frame="border" border="1" rules="all"><caption><b>Table 11 </b>disk</caption><thead align="left"><tr id="EN-US_TOPIC_0000002079045733__row192601537191"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.11.2.4.1.1"><p id="EN-US_TOPIC_0000002079045733__p22628361918">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_0000002079045733__p1426310341913">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_0000002079045733__p9263137195">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002079045733__row1926053121910"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.1 "><p id="EN-US_TOPIC_0000002079045733__p1626419311198">size</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.2 "><p id="EN-US_TOPIC_0000002079045733__p1626483141917">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.11.2.4.1.3 "><p id="EN-US_TOPIC_0000002079045733__p52651539196">Disk size.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000002079045733__row12261203101911"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.1 "><p id="EN-US_TOPIC_0000002079045733__p17266139190">unit</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.2 "><p id="EN-US_TOPIC_0000002079045733__p82661939192">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.11.2.4.1.3 "><p id="EN-US_TOPIC_0000002079045733__p72671534199">Unit of the disk size.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000002079045733__section102671631195"><h4 class="sectiontitle">Example Requests</h4><p id="EN-US_TOPIC_0000002079045733__p326814315191">The following shows how to query the public CPU resource flavors of training jobs.</p>
<pre class="screen" id="EN-US_TOPIC_0000002079045733__screen826812381916">GET https://endpoint/v2/{project_id}/training-job-flavors?flavor_type=CPU</pre>
</div>
<div class="section" id="EN-US_TOPIC_0000002079045733__section162690361915"><h4 class="sectiontitle">Example Responses</h4><p id="EN-US_TOPIC_0000002079045733__p7269163191911"><strong id="EN-US_TOPIC_0000002079045733__b132702351916">Status code: 200</strong></p>
<p id="EN-US_TOPIC_0000002079045733__p427053131918">ok</p>
<pre class="screen" id="EN-US_TOPIC_0000002079045733__screen7273330195">{
"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_0000002079045733__section648193111911"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002079045733__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000002079045733__row228812317197"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="EN-US_TOPIC_0000002079045733__p4481123111917">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_0000002079045733__p14814341919">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002079045733__row92880301912"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="EN-US_TOPIC_0000002079045733__p10481238196">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="EN-US_TOPIC_0000002079045733__p184821317194">ok</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000002079045733__section448214351918"><h4 class="sectiontitle">Error Codes</h4><p id="EN-US_TOPIC_0000002079045733__p114823311191">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>