forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Lai, Weijian <laiweijian4@huawei.com> Co-committed-by: Lai, Weijian <laiweijian4@huawei.com>
90 lines
14 KiB
HTML
90 lines
14 KiB
HTML
<a name="EN-US_TOPIC_0000001943974093"></a><a name="EN-US_TOPIC_0000001943974093"></a>
|
|
|
|
<h1 class="topictitle1">Importing a Meta Model from a Training Job</h1>
|
|
<div id="body0000001209920193"><p id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_p8060118">You can create a training job in ModelArts to obtain a satisfactory model. Then, you can import the model to <strong id="EN-US_TOPIC_0000001943974093__b148301827175610">AI Application Management</strong> for centralized management. In addition, you can quickly deploy the model as a service.</p>
|
|
<div class="section" id="EN-US_TOPIC_0000001943974093__section9841194017392"><h4 class="sectiontitle">Constraints</h4><ul id="EN-US_TOPIC_0000001943974093__ul38417405397"><li id="EN-US_TOPIC_0000001943974093__li18842154018398">A model generated from a training job that uses subscribed algorithms can be directly imported to ModelArts without the need to use the inference code or configuration file.</li><li id="EN-US_TOPIC_0000001943974093__li188422040103915">ModelArts of the Arm architecture does not support model import from training.</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001943974093__section13679154119472"><h4 class="sectiontitle">Prerequisites</h4><ul id="EN-US_TOPIC_0000001943974093__ul0587113010480"><li id="EN-US_TOPIC_0000001943974093__li105873308484">The training job has been successfully executed, and the model has been stored in the OBS directory where the training output is stored (the input parameter is <strong id="EN-US_TOPIC_0000001943974093__b18145101310558">train_url</strong>).</li><li id="EN-US_TOPIC_0000001943974093__li175871130154811">If a model is generated from a training job that uses a frequently-used framework or custom image, upload the inference code and configuration file to the storage directory of the model by referring to <a href="inference-modelarts-0055.html">Introduction</a>.</li><li id="EN-US_TOPIC_0000001943974093__li135881230194817">The OBS directory you use and ModelArts are in the same region.</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_section118927471271"><h4 class="sectiontitle">Creating an AI Application</h4><ol id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_ol361819292368"><li id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_li1580718447312">Log in to the ModelArts management console and choose <strong id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_b199622665819">AI Application Management</strong> > <strong id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_b7964464589">AI Applications</strong> in the left navigation pane. The <strong id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_b396556175815">AI Applications</strong> page is displayed.</li><li id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_li861952913360">Click <strong id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_b29253239135">Create </strong>in the upper left corner. </li><li id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_li2619629133610">On the displayed page, configure parameters.<ol type="a" id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_ol78982017184013"><li id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_li1883720166406">Set basic information about the AI application. For details about the parameters, see <a href="#EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_table19428112584211">Table 1</a>.
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_table19428112584211"></a><a name="en-us_topic_0207629475_table19428112584211"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_table19428112584211" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters of basic AI application information</caption><thead align="left"><tr id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_row2042972515427"><th align="left" class="cellrowborder" valign="top" width="18.91%" id="mcps1.3.4.2.3.1.1.2.2.3.1.1"><p id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_p18429225134213">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="81.08999999999999%" id="mcps1.3.4.2.3.1.1.2.2.3.1.2"><p id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_p1742912544217">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_row164292250428"><td class="cellrowborder" valign="top" width="18.91%" headers="mcps1.3.4.2.3.1.1.2.2.3.1.1 "><p id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_p1842982518421">Name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="81.08999999999999%" headers="mcps1.3.4.2.3.1.1.2.2.3.1.2 "><p id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_p10429132534219">Application name. The value can contain 1 to 64 visible characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_row5429112564217"><td class="cellrowborder" valign="top" width="18.91%" headers="mcps1.3.4.2.3.1.1.2.2.3.1.1 "><p id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_p14298255423">Version</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="81.08999999999999%" headers="mcps1.3.4.2.3.1.1.2.2.3.1.2 "><p id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_p11429125104218">Version of the AI application to be created. For the first creation, the default value is <strong id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_b1924011032">0.0.1</strong>.</p>
|
|
<div class="note" id="EN-US_TOPIC_0000001943974093__note146394817204"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="EN-US_TOPIC_0000001943974093__en-us_topic_0000001402159240_p98891822113312">After an AI application is created, you can <a href="inference-modelarts-0013.html#EN-US_TOPIC_0000001910054874__en-us_topic_0171858290_section102881451161111">create new versions</a> using different meta models for optimization.</p>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_row18429132512429"><td class="cellrowborder" valign="top" width="18.91%" headers="mcps1.3.4.2.3.1.1.2.2.3.1.1 "><p id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_p24294259424">Description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="81.08999999999999%" headers="mcps1.3.4.2.3.1.1.2.2.3.1.2 "><p id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_p1042942514210">Brief description of an AI application</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_li940110124413">Select the meta model source and set related parameters. Set <strong id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_b629341121816">Meta Model Source</strong> to <strong id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_b1230111117184">Training job</strong>. For details about the parameters, see <a href="#EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_table104931647171713">Table 2</a>.
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_table104931647171713"></a><a name="en-us_topic_0207629475_table104931647171713"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_table104931647171713" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameters of the meta model source </caption><thead align="left"><tr id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_row14487647101714"><th align="left" class="cellrowborder" valign="top" width="18.57%" id="mcps1.3.4.2.3.1.2.4.2.3.1.1"><p id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_p448744701719">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="81.43%" id="mcps1.3.4.2.3.1.2.4.2.3.1.2"><p id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_p124875475173">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_row6402118103411"><td class="cellrowborder" valign="top" width="18.57%" headers="mcps1.3.4.2.3.1.2.4.2.3.1.1 "><p id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_p10402188133412">Meta Model Source</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="81.43%" headers="mcps1.3.4.2.3.1.2.4.2.3.1.2 "><p id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_p171271018132611">Select <span class="parmname" id="EN-US_TOPIC_0000001943974093__parmname6656159221"><b>Training job</b></span>.</p>
|
|
<p id="EN-US_TOPIC_0000001943974093__p188210372006">Choose a completed training job under the current account from the <strong id="EN-US_TOPIC_0000001943974093__b5803539532">Training Job</strong> drop-down list.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_row1470542293815"><td class="cellrowborder" valign="top" width="18.57%" headers="mcps1.3.4.2.3.1.2.4.2.3.1.1 "><p id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_p15705172213812">AI Engine</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="81.43%" headers="mcps1.3.4.2.3.1.2.4.2.3.1.2 "><p id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_p5705202210388">Inference engine used by the meta model. The engine is automatically matched based on the training job you select.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_row144110213519"><td class="cellrowborder" valign="top" width="18.57%" headers="mcps1.3.4.2.3.1.2.4.2.3.1.1 "><p id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_p941118210358">Inference Code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="81.43%" headers="mcps1.3.4.2.3.1.2.4.2.3.1.2 "><p id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_p34117216356">Set inference code for an AI application. The code is used to customize the inference processing logic. Display the inference code URL. You can copy this URL directly.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_row4583151118358"><td class="cellrowborder" valign="top" width="18.57%" headers="mcps1.3.4.2.3.1.2.4.2.3.1.1 "><p id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_p11583121153512">Runtime Dependency</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="81.43%" headers="mcps1.3.4.2.3.1.2.4.2.3.1.2 "><p id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_p458391173519">List the dependencies of the selected model in the environment. </p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_row15880141516352"><td class="cellrowborder" valign="top" width="18.57%" headers="mcps1.3.4.2.3.1.2.4.2.3.1.1 "><p id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_p16880615183519">AI Application Description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="81.43%" headers="mcps1.3.4.2.3.1.2.4.2.3.1.2 "><p id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_p7880181583518">Provide AI application descriptions to help other AI application developers better understand and use your applications. Click <span class="parmname" id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_parmname9581182945619"><b>Add AI Application Description</b></span> and set the document name and URL. A maximum of three AI application descriptions are supported.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_row429012317351"><td class="cellrowborder" valign="top" width="18.57%" headers="mcps1.3.4.2.3.1.2.4.2.3.1.1 "><p id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_p148701574353">Deployment Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="81.43%" headers="mcps1.3.4.2.3.1.2.4.2.3.1.2 "><p id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_p887011719358">Select the service types that the application can be deployed. When deploying a service, only the service types selected here are available. For example, if you only select <strong id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_b1032071013184">Real-Time Services</strong> here, you can only deploy the AI application as a real-time service after it is created. </p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_li73991610194118">Confirm the configurations and click <span class="uicontrol" id="EN-US_TOPIC_0000001943974093__uicontrol10769187846"><b>Create now</b></span>. The AI application is created.<p id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_p82831624818">In the AI application list, you can view the created AI application and its version. When the status changes to <strong id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_b6435848102814">Normal</strong>, the AI application is successfully created. On this page, you can perform such operations as creating new versions, quickly deploying AI applications, and publishing AI applications.</p>
|
|
</li></ol>
|
|
</li></ol>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_section67499327247"><h4 class="sectiontitle">Follow-Up Procedure</h4><p id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_p5223161310544"><strong id="EN-US_TOPIC_0000001943974093__b488216341215"><a href="inference-modelarts-0001.html#EN-US_TOPIC_0000001910014914__section5706068262">Deploying an AI Application as a Service</a></strong>: In the AI application list, click the down arrow on the left of an AI application name to check all versions of the AI application. Locate the row that contains the target version, click <span class="parmname" id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_parmname8106158134114"><b>Deploy</b></span> in the <span class="parmname" id="EN-US_TOPIC_0000001943974093__en-us_topic_0207629475_parmname21068824111"><b>Operation</b></span> column, and select a deployment type from the drop-down list box. The AI application can be deployed in a deployment type selected during AI application creation.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="inference-modelarts-0004.html">Creating an AI Application</a></div>
|
|
</div>
|
|
</div>
|
|
|