Skip to content

Commit

Permalink
Add example page
Browse files Browse the repository at this point in the history
  • Loading branch information
hipudding authored and FFFrog committed Jun 5, 2024
1 parent d7d2940 commit 76c7b43
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

# -- Project information -----------------------------------------------------

project = 'Ascend NPU for PyTorch'
project = '昇腾开源'
copyright = '2024, Ascend'
author = 'Ascend'

Expand Down
7 changes: 4 additions & 3 deletions index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
昇腾AI处理器快速入门指南
昇腾开源
==================================================

.. -----------------------------------------
Expand All @@ -8,7 +8,7 @@
:maxdepth: 2
:hidden:
:includehidden:
:caption: Get Started
:caption: 开始使用

sources/ascend/quick_install.rst

Expand All @@ -20,6 +20,7 @@

sources/pytorch/install.rst
sources/pytorch/quick_start.rst
sources/pytorch/examples.rst
sources/pytorch/api_doc.rst

.. warning::
Expand All @@ -28,4 +29,4 @@

选择您的偏好,并按照 :doc:`快速安装昇腾环境<sources/ascend/quick_install>` 的安装指导进行操作。

安装成功后,请参考快速开始和样例来开始使用昇腾AI处理器
安装成功后,请参考各软件的快速开始和样例来开始使用昇腾AI处理器
2 changes: 2 additions & 0 deletions sources/pytorch/examples.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
样例
===========================
2 changes: 1 addition & 1 deletion sources/pytorch/quick_start.rst
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
print(f'Accuracy for class: {classname:5s} is {accuracy:.1f} %')
2. 使用DeepSpeed多卡并行训练
---------------------------
-------------------------------
以下代码使用了cifar10数据集,使用DeepSpeed训练模型在多张NPU卡上进行模型训练(来自 `DeepSpeed Examples <https://github.com/microsoft/DeepSpeedExamples/blob/master/training/cifar/cifar10_deepspeed.py>`_),自DeepSpeed v0.12.6之后,代码无需任何修改,即可自动检测NPU并进行训练。

.. rli:: https://raw.githubusercontent.com/microsoft/DeepSpeedExamples/master/training/cifar/cifar10_deepspeed.py
Expand Down

0 comments on commit 76c7b43

Please sign in to comment.