From 9a5aeb0999ba9c2ea52852d72c6e3accbfa0b6a4 Mon Sep 17 00:00:00 2001 From: Xuye Qin Date: Wed, 30 Oct 2024 12:26:41 +0800 Subject: [PATCH] DOC: modify NPU doc (#2485) --- .../getting_started/installation_npu.rst | 7 +++ .../getting_started/installation_npu.po | 47 ++++++++++++------- 2 files changed, 37 insertions(+), 17 deletions(-) diff --git a/doc/source/getting_started/installation_npu.rst b/doc/source/getting_started/installation_npu.rst index 8202661487..786ffdba34 100644 --- a/doc/source/getting_started/installation_npu.rst +++ b/doc/source/getting_started/installation_npu.rst @@ -6,6 +6,13 @@ Installation Guide for Ascend NPU ================================= Xinference can run on Ascend NPU, follow below instructions to install. +.. warning:: + + The open-source version relies on Transformers for inference, + which can be slow on chips like 310p3. We provide an enterprise version that supports the MindIE engine, + offering better performance and compatibility for Ascend NPU. + Refer to `Xinference Enterprise `_ + Installing PyTorch and Ascend extension for PyTorch ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/doc/source/locale/zh_CN/LC_MESSAGES/getting_started/installation_npu.po b/doc/source/locale/zh_CN/LC_MESSAGES/getting_started/installation_npu.po index 85657a774b..4a27241727 100644 --- a/doc/source/locale/zh_CN/LC_MESSAGES/getting_started/installation_npu.po +++ b/doc/source/locale/zh_CN/LC_MESSAGES/getting_started/installation_npu.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Xinference \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-07-30 17:00+0800\n" +"POT-Creation-Date: 2024-10-25 15:13+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: zh_CN\n" @@ -28,52 +28,65 @@ msgid "Xinference can run on Ascend NPU, follow below instructions to install." msgstr "Xinference 能在昇腾 NPU 上运行,使用如下命令安装。" #: ../../source/getting_started/installation_npu.rst:11 +msgid "" +"The open-source version relies on Transformers for inference, which can " +"be slow on chips like 310p3. We provide an enterprise version that " +"supports the MindIE engine, offering better performance and compatibility" +" for Ascend NPU. Refer to `Xinference Enterprise " +"`_" +msgstr "" +"开源版本依赖 Transformers 进行推理,在 310p3 等芯片上会存在运行慢的问题。" +"我们提供了支持 MindIE 引擎,性能更为强大,兼容性更好的企业版本来支持 " +"Ascend NPU。详细参考 `Xinference 企业版 `_" + +#: ../../source/getting_started/installation_npu.rst:18 msgid "Installing PyTorch and Ascend extension for PyTorch" msgstr "安装 PyTorch 和昇腾扩展" -#: ../../source/getting_started/installation_npu.rst:12 +#: ../../source/getting_started/installation_npu.rst:19 msgid "Install PyTorch CPU version and corresponding Ascend extension." msgstr "安装 PyTorch CPU 版本和相应的昇腾扩展。" -#: ../../source/getting_started/installation_npu.rst:14 +#: ../../source/getting_started/installation_npu.rst:21 msgid "Take PyTorch v2.1.0 as example." msgstr "以 PyTorch v2.1.0 为例。" -#: ../../source/getting_started/installation_npu.rst:20 +#: ../../source/getting_started/installation_npu.rst:27 msgid "" "Then install `Ascend extension for PyTorch " "`_." -msgstr "" -"接着安装 `昇腾 PyTorch 扩展 " -"`_." +msgstr "接着安装 `昇腾 PyTorch 扩展 `_." -#: ../../source/getting_started/installation_npu.rst:28 +#: ../../source/getting_started/installation_npu.rst:35 msgid "Running below command to see if it correctly prints the Ascend NPU count." msgstr "运行如下命令查看,如果正常运行,会打印昇腾 NPU 的个数。" -#: ../../source/getting_started/installation_npu.rst:35 +#: ../../source/getting_started/installation_npu.rst:42 msgid "Installing Xinference" msgstr "安装 Xinference" -#: ../../source/getting_started/installation_npu.rst:41 +#: ../../source/getting_started/installation_npu.rst:48 msgid "" "Now you can use xinference according to :ref:`doc `. " "``Transformers`` backend is the only available engine supported for " "Ascend NPU for open source version." msgstr "" -"现在你可以参考 :ref:`文档 ` 来使用 Xinference。" -"``Transformers`` 是开源唯一支持的昇腾 NPU 的引擎。" +"现在你可以参考 :ref:`文档 ` 来使用 Xinference。``" +"Transformers`` 是开源唯一支持的昇腾 NPU 的引擎。" -#: ../../source/getting_started/installation_npu.rst:45 +#: ../../source/getting_started/installation_npu.rst:52 msgid "Enterprise Support" msgstr "企业支持" -#: ../../source/getting_started/installation_npu.rst:46 +#: ../../source/getting_started/installation_npu.rst:53 msgid "" "If you encounter any performance or other issues for Ascend NPU, please " "reach out to us via `link `_." msgstr "" -"如果你在昇腾 NPU 遇到任何性能和其他问题,欢迎垂询 Xinference 企业版," -"在 `这里 `_ 可以找到我们,亦可以 " -"`填写表单 `_ 申请企业版试用。" +"如果你在昇腾 NPU 遇到任何性能和其他问题,欢迎垂询 Xinference 企业版,在 `" +"这里 `_ 可以找到我们,亦可以 `填写表单 <" +"https://w8v6grm432.feishu.cn/share/base/form/shrcn9u1EBXQxmGMqILEjguuGoh>" +"`_ 申请企业版试用。"