doc-exports/docs/modelarts/sdk-ref/modelarts_04_0196.html
Lai, Weijian eda19245f1 modelarts sdk-ref version 21.430 update
Reviewed-by: Jiang, Beibei <beibei.jiang@t-systems.com>
Reviewed-by: Rechenburg, Matthias <matthias.rechenburg@t-systems.com>
Co-authored-by: Lai, Weijian <laiweijian4@huawei.com>
Co-committed-by: Lai, Weijian <laiweijian4@huawei.com>
2023-03-20 09:32:27 +00:00

258 lines
29 KiB
HTML

<a name="modelarts_04_0196"></a><a name="modelarts_04_0196"></a>
<h1 class="topictitle1">Obtaining the Model Object List</h1>
<div id="body8662426"><div class="section" id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_section39592964819"><h4 class="sectiontitle">Sample Code</h4><p id="modelarts_04_0196__en-us_topic_0180094082_p1494324514718">In ModelArts notebook, you do not need to enter authentication parameters for session authentication. For details about session authentication of other development environments, see <a href="modelarts_04_0123.html">Session Authentication</a>.</p>
<ul id="modelarts_04_0196__en-us_topic_0180094082_ul4376242179"><li id="modelarts_04_0196__en-us_topic_0180094082_li83761943175"><strong id="modelarts_04_0196__b1723827102110">Scenario 1</strong>: Obtain all model objects of a user.<div class="codecoloring" codetype="Python" id="modelarts_04_0196__en-us_topic_0180094082_screen14658112815222"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
<span class="normal">2</span>
<span class="normal">3</span>
<span class="normal">4</span>
<span class="normal">5</span></pre></div></td><td class="code"><div><pre><span></span><span class="kn">from</span> <span class="nn">modelarts.session</span> <span class="kn">import</span> <span class="n">Session</span>
<span class="kn">from</span> <span class="nn">modelarts.model</span> <span class="kn">import</span> <span class="n">Model</span>
<span class="n">session</span> <span class="o">=</span> <span class="n">Session</span><span class="p">()</span>
<span class="n">model_object_list</span> <span class="o">=</span> <span class="n">Model</span><span class="o">.</span><span class="n">get_model_object_list</span><span class="p">(</span><span class="n">session</span><span class="p">)</span>
</pre></div></td></tr></table></div>
</div>
</li></ul>
<ul id="modelarts_04_0196__en-us_topic_0180094082_ul133731850102117"><li id="modelarts_04_0196__en-us_topic_0180094082_li12374750132120"><strong id="modelarts_04_0196__b16602012132119">Scenario 2</strong>: Obtain a model object based on the search criteria.<div class="codecoloring" codetype="Python" id="modelarts_04_0196__en-us_topic_0180094082_screen18551736192214"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
<span class="normal">2</span>
<span class="normal">3</span>
<span class="normal">4</span>
<span class="normal">5</span></pre></div></td><td class="code"><div><pre><span></span><span class="kn">from</span> <span class="nn">modelarts.session</span> <span class="kn">import</span> <span class="n">Session</span>
<span class="kn">from</span> <span class="nn">modelarts.model</span> <span class="kn">import</span> <span class="n">Model</span>
<span class="n">session</span> <span class="o">=</span> <span class="n">Session</span><span class="p">()</span>
<span class="n">model_object_list</span> <span class="o">=</span> <span class="n">Model</span><span class="o">.</span><span class="n">get_model_object_list</span><span class="p">(</span><span class="n">session</span><span class="p">,</span> <span class="n">model_status</span><span class="o">=</span><span class="s2">&quot;published&quot;</span><span class="p">,</span> <span class="n">model_name</span><span class="o">=</span><span class="s2">&quot;digit&quot;</span><span class="p">,</span> <span class="n">order</span><span class="o">=</span><span class="s2">&quot;desc&quot;</span><span class="p">)</span>
</pre></div></td></tr></table></div>
</div>
</li></ul>
</div>
<div class="section" id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_section483612415818"><h4 class="sectiontitle">Parameters</h4><ul id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_ul156661246875"><li id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_li1366620462078">After you obtain a model list, the size of the list is equal to the number of models that have been deployed by the current user. Each element in the list is a model object. The object attributes are the same as those in <a href="modelarts_04_0197.html">Querying the Details About a Model</a>. For example, in <strong id="modelarts_04_0196__en-us_topic_0180094082_b0420165816489">model_list = [model_instance1, model_instance2, model_instance3 ...]</strong>, each <strong id="modelarts_04_0196__en-us_topic_0180094082_b19421458104812">model_instance</strong> in the list is a model API that can be called.</li><li id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_li668618130">The model list can be obtained based on the query parameters. <a href="#modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_table2918868102420">Table 1</a> describes the query parameters.</li><li id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_li37274441883">When you obtain a model list, details about the models are returned. See <a href="#modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_table1954662185412">Table 2</a> and <a href="#modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_table1198992710540">Table 3</a>.</li><li id="modelarts_04_0196__en-us_topic_0180094082_li1134944392412">A maximum of 150 model objects can be obtained.</li></ul>
<div class="tablenoborder"><a name="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_table2918868102420"></a><a name="en-us_topic_0180094082_en-us_topic_0160574220_table2918868102420"></a><table cellpadding="4" cellspacing="0" summary="" id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_table2918868102420" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Query parameters</caption><thead align="left"><tr id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_row46282814102420"><th align="left" class="cellrowborder" valign="top" width="17%" id="mcps1.3.2.3.2.5.1.1"><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p58767362102449">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="13%" id="mcps1.3.2.3.2.5.1.2"><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p62535864102449">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="12%" id="mcps1.3.2.3.2.5.1.3"><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p32240260102449">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="57.99999999999999%" id="mcps1.3.2.3.2.5.1.4"><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p61324235102449">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_row55399715102420"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.2.3.2.5.1.1 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p032273713366">model_name</p>
</td>
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.2.3.2.5.1.2 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p73258373366">No</p>
</td>
<td class="cellrowborder" valign="top" width="12%" headers="mcps1.3.2.3.2.5.1.3 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p232723763614">String</p>
</td>
<td class="cellrowborder" valign="top" width="57.99999999999999%" headers="mcps1.3.2.3.2.5.1.4 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p173291637153620">Model name. Fuzzy match is supported.</p>
</td>
</tr>
<tr id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_row17457519102420"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.2.3.2.5.1.1 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p633310373369">model_version</p>
</td>
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.2.3.2.5.1.2 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p10334153763618">No</p>
</td>
<td class="cellrowborder" valign="top" width="12%" headers="mcps1.3.2.3.2.5.1.3 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p10337173753615">String</p>
</td>
<td class="cellrowborder" valign="top" width="57.99999999999999%" headers="mcps1.3.2.3.2.5.1.4 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p153391237143610">Model version</p>
</td>
</tr>
<tr id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_row18276139113012"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.2.3.2.5.1.1 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p1427689133019">model_status</p>
</td>
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.2.3.2.5.1.2 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p1346282320309">No</p>
</td>
<td class="cellrowborder" valign="top" width="12%" headers="mcps1.3.2.3.2.5.1.3 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p124651223153017">String</p>
</td>
<td class="cellrowborder" valign="top" width="57.99999999999999%" headers="mcps1.3.2.3.2.5.1.4 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p4138143053012">Model status. The value can be <strong id="modelarts_04_0196__en-us_topic_0180094082_b021391965110">publishing</strong>, <strong id="modelarts_04_0196__en-us_topic_0180094082_b19214171917518">published</strong>, or <strong id="modelarts_04_0196__en-us_topic_0180094082_b1221591917516">failed</strong>. You can obtain models based on their statuses.</p>
</td>
</tr>
<tr id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_row14692786102420"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.2.3.2.5.1.1 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p4343143713369">description</p>
</td>
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.2.3.2.5.1.2 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p183451737133617">No</p>
</td>
<td class="cellrowborder" valign="top" width="12%" headers="mcps1.3.2.3.2.5.1.3 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p1934783743610">String</p>
</td>
<td class="cellrowborder" valign="top" width="57.99999999999999%" headers="mcps1.3.2.3.2.5.1.4 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p1435093723618">Description. Fuzzy match is supported.</p>
</td>
</tr>
<tr id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_row64535694102420"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.2.3.2.5.1.1 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p7353143716365">offset</p>
</td>
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.2.3.2.5.1.2 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p63561237183614">No</p>
</td>
<td class="cellrowborder" valign="top" width="12%" headers="mcps1.3.2.3.2.5.1.3 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p193582037143618">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="57.99999999999999%" headers="mcps1.3.2.3.2.5.1.4 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p15361137193610">Index of the page to be obtained. Default value: <strong id="modelarts_04_0196__en-us_topic_0180094082_b289102655113">0</strong></p>
</td>
</tr>
<tr id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_row32737003102420"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.2.3.2.5.1.1 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p193633378362">limit</p>
</td>
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.2.3.2.5.1.2 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p12366113711366">No</p>
</td>
<td class="cellrowborder" valign="top" width="12%" headers="mcps1.3.2.3.2.5.1.3 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p1368173713364">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="57.99999999999999%" headers="mcps1.3.2.3.2.5.1.4 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p33701437133612">Maximum number of records returned on each page. Default value: <span class="parmname" id="modelarts_04_0196__en-us_topic_0180094082_parmname051186152513"><b>280</b></span></p>
</td>
</tr>
<tr id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_row21262393102420"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.2.3.2.5.1.1 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p19826207163712">sort_by</p>
</td>
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.2.3.2.5.1.2 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p1682827203720">No</p>
</td>
<td class="cellrowborder" valign="top" width="12%" headers="mcps1.3.2.3.2.5.1.3 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p28301979378">String</p>
</td>
<td class="cellrowborder" valign="top" width="57.99999999999999%" headers="mcps1.3.2.3.2.5.1.4 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p1983417703719">Sorting mode. The value can be <strong id="modelarts_04_0196__en-us_topic_0180094082_b412093118514">create_at</strong>, <strong id="modelarts_04_0196__en-us_topic_0180094082_b131211831195117">model_version</strong>, or <strong id="modelarts_04_0196__en-us_topic_0180094082_b21226318517">model_size</strong>. Default value: <strong id="modelarts_04_0196__en-us_topic_0180094082_b91237316519">create_at</strong></p>
</td>
</tr>
<tr id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_row770125319364"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.2.3.2.5.1.1 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p583714716371">order</p>
</td>
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.2.3.2.5.1.2 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p683967153712">No</p>
</td>
<td class="cellrowborder" valign="top" width="12%" headers="mcps1.3.2.3.2.5.1.3 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p684214743715">String</p>
</td>
<td class="cellrowborder" valign="top" width="57.99999999999999%" headers="mcps1.3.2.3.2.5.1.4 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p7845157183717">Sorting order. The value can be <strong id="modelarts_04_0196__en-us_topic_0180094082_b19865143715516">asc</strong> or <strong id="modelarts_04_0196__en-us_topic_0180094082_b8866143715511">desc</strong>, indicating the ascending or descending order. Default value: <strong id="modelarts_04_0196__en-us_topic_0180094082_b12867103785115">desc</strong></p>
</td>
</tr>
<tr id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_row166652375170"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.2.3.2.5.1.1 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p134631412111013">workspace_id</p>
</td>
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.2.3.2.5.1.2 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p11463512151015">No</p>
</td>
<td class="cellrowborder" valign="top" width="12%" headers="mcps1.3.2.3.2.5.1.3 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p44631112201017">String</p>
</td>
<td class="cellrowborder" valign="top" width="57.99999999999999%" headers="mcps1.3.2.3.2.5.1.4 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p1246391218106">Workspace ID. Default value: <strong id="modelarts_04_0196__en-us_topic_0180094082_b74621340125119">0</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_table1954662185412"></a><a name="en-us_topic_0180094082_en-us_topic_0160574220_table1954662185412"></a><table cellpadding="4" cellspacing="0" summary="" id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_table1954662185412" frame="border" border="1" rules="all"><caption><b>Table 2 </b><strong id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_b1871312433208">get_model_list</strong> parameters</caption><thead align="left"><tr id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_row555142175415"><th align="left" class="cellrowborder" valign="top" width="17%" id="mcps1.3.2.4.2.4.1.1"><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p1155315211549">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="13%" id="mcps1.3.2.4.2.4.1.2"><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p1355662195410">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="70%" id="mcps1.3.2.4.2.4.1.3"><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p1055820214544">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_row848065273113"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.2.4.2.4.1.1 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p248155213111">total_count</p>
</td>
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.2.4.2.4.1.2 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p114812052153117">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.2.4.2.4.1.3 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p174811352103111">Total number of models that meet the search criteria when no paging is implemented</p>
</td>
</tr>
<tr id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_row1560152115412"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.2.4.2.4.1.1 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p1656210235418">count</p>
</td>
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.2.4.2.4.1.2 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p2056412225411">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.2.4.2.4.1.3 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p15651629549">Number of models</p>
</td>
</tr>
<tr id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_row17566112185418"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.2.4.2.4.1.1 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p956913235417">models</p>
</td>
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.2.4.2.4.1.2 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p145716225416"><strong id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_b7161256173120">model</strong> array</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.2.4.2.4.1.3 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p1657311215420">Model metadata</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="tablenoborder"><a name="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_table1198992710540"></a><a name="en-us_topic_0180094082_en-us_topic_0160574220_table1198992710540"></a><table cellpadding="4" cellspacing="0" summary="" id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_table1198992710540" frame="border" border="1" rules="all"><caption><b>Table 3 </b><strong id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_b139837123219">model</strong> parameters</caption><thead align="left"><tr id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_row129943277545"><th align="left" class="cellrowborder" valign="top" width="17%" id="mcps1.3.3.2.4.1.1"><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p13997192714544">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="13%" id="mcps1.3.3.2.4.1.2"><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p120128155419">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="70%" id="mcps1.3.3.2.4.1.3"><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p1821528145411">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_row1252028165418"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.3.2.4.1.1 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p87228135417">model_id</p>
</td>
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.3.2.4.1.2 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p8101228145417">String</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.3.2.4.1.3 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p711182814549">Model ID</p>
</td>
</tr>
<tr id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_row012112817546"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.3.2.4.1.1 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p6148282540">model_name</p>
</td>
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.3.2.4.1.2 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p31602825420">String</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.3.2.4.1.3 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p161852845411">Model name</p>
</td>
</tr>
<tr id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_row16191728145416"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.3.2.4.1.1 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p192172820548">model_version</p>
</td>
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.3.2.4.1.2 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p622528175416">String</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.3.2.4.1.3 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p624172818545">Model version</p>
</td>
</tr>
<tr id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_row1525142811547"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.3.2.4.1.1 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p327728165415">model_type</p>
</td>
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.3.2.4.1.2 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p1329428145418">String</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.3.2.4.1.3 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p63142815415">Model type. The value can be <strong id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_b11689142052110">TensorFlow</strong>, <strong id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_b368922019213">MXNet</strong>, <strong id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_b1069013209215">Spark_MLlib</strong>, <strong id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_b116901520132116">Scikit_Learn</strong>, <strong id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_b206910201212">XGBoost</strong>, <strong id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_b969242032120">MindSpore</strong>, <strong id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_b469315200215">Image</strong>, or <strong id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_b769452016210">PyTorch</strong>.</p>
</td>
</tr>
<tr id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_row132128115411"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.3.2.4.1.1 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p533528195413">model_size</p>
</td>
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.3.2.4.1.2 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p337528165418">Long</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.3.2.4.1.3 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p203813280543">Model size, in bytes</p>
</td>
</tr>
<tr id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_row133919286541"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.3.2.4.1.1 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p9416286543">tenant</p>
</td>
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.3.2.4.1.2 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p114362817541">String</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.3.2.4.1.3 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p1445228205417">Tenant to whom a model belongs</p>
</td>
</tr>
<tr id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_row246122815417"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.3.2.4.1.1 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p848112835416">project</p>
</td>
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.3.2.4.1.2 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p1849202845413">String</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.3.2.4.1.3 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p1951528105412">Project to which a model belongs</p>
</td>
</tr>
<tr id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_row1052028205417"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.3.2.4.1.1 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p20542289540">owner</p>
</td>
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.3.2.4.1.2 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p256328145419">String</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.3.2.4.1.3 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p659122855415">User to which a model belongs</p>
</td>
</tr>
<tr id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_row66052812541"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.3.2.4.1.1 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p106262895412">create_at</p>
</td>
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.3.2.4.1.2 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p2645289548">Long</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.3.2.4.1.3 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p26692819547">Time when a model is created, in milliseconds calculated from 1970.1.1 0:0:0 UTC</p>
</td>
</tr>
<tr id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_row16717283548"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.3.2.4.1.1 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p1469152895410">description</p>
</td>
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.3.2.4.1.2 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p271192865410">String</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.3.2.4.1.3 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p272102895411">Model description</p>
</td>
</tr>
<tr id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_row138991631274"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.3.2.4.1.1 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p11899193975">source_type</p>
</td>
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.3.2.4.1.2 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p158991831578">String</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.3.2.4.1.3 "><p id="modelarts_04_0196__en-us_topic_0180094082_en-us_topic_0160574220_p1289913316712">Model source type. This parameter is valid only when the model is deployed by an ExeML project. The value is <strong id="modelarts_04_0196__b15233210201918">auto</strong>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="modelarts_04_0193.html">Model Management</a></div>
</div>
</div>