Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 35 additions & 28 deletions index.rst

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sources/Diffusers/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Diffusers
diffusers
===========

.. toctree::
Expand Down
2 changes: 1 addition & 1 deletion sources/accelerate/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Accelerate
accelerate
==============

.. toctree::
Expand Down
2 changes: 1 addition & 1 deletion sources/llama_cpp/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Llama.cpp
llama.cpp
===========

.. toctree::
Expand Down
2 changes: 1 addition & 1 deletion sources/lm_deploy/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
LMDeploy
lmdeploy
===========

.. toctree::
Expand Down
2 changes: 1 addition & 1 deletion sources/lm_evaluation/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
LM-Evalution-Harness
lm-evaluation-harness
===============================

.. toctree::
Expand Down
2 changes: 1 addition & 1 deletion sources/onnxruntime/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ONNX Runtime
onnxruntime
============

.. toctree::
Expand Down
2 changes: 1 addition & 1 deletion sources/opencompass/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
OpenCompass
opencompass
============

.. toctree::
Expand Down
2 changes: 1 addition & 1 deletion sources/opencv/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
OpenCV
opencv
===========

.. toctree::
Expand Down
2 changes: 1 addition & 1 deletion sources/pytorch/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PyTorch
pytorch
===========

.. toctree::
Expand Down
6 changes: 3 additions & 3 deletions sources/pytorch/quick_start.rst
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@

2. 使用DeepSpeed多卡并行训练
-------------------------------
以下代码使用了cifar10数据集,使用DeepSpeed训练模型在多张NPU卡上进行模型训练(来自 `DeepSpeed Examples <https://github.com/microsoft/DeepSpeedExamples/blob/master/training/cifar/cifar10_deepspeed.py>`_),使用最新 Release 的 DeepSpeed 则代码无需修改,即可自动检测NPU并进行
以下代码使用了cifar10数据集,使用DeepSpeed训练模型在多张NPU卡上进行模型训练(来自 `DeepSpeed Examples <https://github.com/microsoft/DeepSpeedExamples/blob/master/training/cifar/cifar10_deepspeed.py>`_),使用最新 Release 的 DeepSpeed 则代码无需修改,即可自动检测NPU并进行训练

.. rli:: https://raw.githubusercontent.com/microsoft/DeepSpeedExamples/master/training/cifar/cifar10_deepspeed.py
:language: python
Expand All @@ -222,7 +222,7 @@

3. 使用Transformers进行模型微调
---------------------------------
以下代码使用了Transformers对LLM进行微调(来自 `transformers examples <https://github.com/huggingface/transformers/blob/main/examples/pytorch/language-modeling/run_clm.py>`_),使用最新 Release 的 Transformers 和 Accelerator 则代码无需修改,即可自动检测NPU并进行
以下代码使用了Transformers对LLM进行微调(来自 `transformers examples <https://github.com/huggingface/transformers/blob/main/examples/pytorch/language-modeling/run_clm.py>`_),使用最新 Release 的 Transformers 和 Accelerator 则代码无需修改,即可自动检测NPU并进行微调

.. rli:: https://raw.githubusercontent.com/huggingface/transformers/main/examples/pytorch/language-modeling/run_clm.py
:language: python
Expand All @@ -244,7 +244,7 @@

4. 使用Diffusers进行模型微调
---------------------------------
以下代码使用了Diffusers对文生图模型进行微调(来自 `diffusers examples <https://github.com/huggingface/diffusers/blob/main/examples/text_to_image/train_text_to_image.py>`_),使用最新 Release 的 Diffusers 则代码无需修改,即可自动检测NPU并进行
以下代码使用了Diffusers对文生图模型进行微调(来自 `diffusers examples <https://github.com/huggingface/diffusers/blob/main/examples/text_to_image/train_text_to_image.py>`_),使用最新 Release 的 Diffusers 则代码无需修改,即可自动检测NPU并进行微调


.. rli:: https://raw.githubusercontent.com/huggingface/diffusers/main/examples/text_to_image/train_text_to_image.py
Expand Down
2 changes: 1 addition & 1 deletion sources/sd_webui/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Stable-Diffusion-WebUI
stable-diffusion-webui
============================

.. toctree::
Expand Down
5 changes: 3 additions & 2 deletions sources/sd_webui/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
.. code-block:: shell
:linenos:

git clone --branch dev https://github.com/AUTOMATIC1111/stable-diffusion-webui.gitcd stable-diffusion-webui
git clone --branch dev https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
cd stable-diffusion-webui

#此命令将在首次安装时自动在 Ascend 设备上安装 torch 和 torch_npu。
./webui.sh --listen --skip-torch-cuda-test --no-half
Expand All @@ -59,7 +60,7 @@
pip install https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip --prefer-binary
pip install https://github.com/mlfoundations/open_clip/archive/bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b.zip
pip install -U -I --no-deps xformers==0.0.23.post1
pip install install ngrok
pip install ngrok
mkdir repositories
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui-assets.git stable-diffusion-webui-assets
git -C stable-diffusion-webui-assets checkout 6f7db241d2f8ba7457bac5ca9753331f0c266917
Expand Down
2 changes: 1 addition & 1 deletion sources/sentence_transformers/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Sentence Transformers
sentence-transformers
=============================

.. toctree::
Expand Down
2 changes: 1 addition & 1 deletion sources/sglang/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SGLang
sglang
============

.. toctree::
Expand Down
2 changes: 1 addition & 1 deletion sources/timm/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
timm
pytorch-image-models
===========

.. toctree::
Expand Down
2 changes: 1 addition & 1 deletion sources/torchchat/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Torchchat
torchchat
===========

.. toctree::
Expand Down
2 changes: 1 addition & 1 deletion sources/torchtitan/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
TorchTitan
torchtitan
============

.. toctree::
Expand Down
2 changes: 1 addition & 1 deletion sources/transformers/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Transformers
transformers
==================

.. toctree::
Expand Down
2 changes: 1 addition & 1 deletion sources/transformers/install.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
安装指南
===========

本文将介绍如何在昇腾环境下使用transfomers,帮助开发者完成transformers的安装
本文将介绍如何在昇腾环境下使用 transformers,帮助开发者完成 transformers 的安装

.. note::

Expand Down
2 changes: 1 addition & 1 deletion sources/trl/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Transformer Reinforcement Learning
trl
===================================================

.. toctree::
Expand Down
2 changes: 1 addition & 1 deletion sources/wenet/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
WeNet
wenet
===========

.. toctree::
Expand Down
2 changes: 1 addition & 1 deletion sources/whisper_cpp/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Whisper.cpp
whisper.cpp
===========

.. toctree::
Expand Down