From a34c2c83bc07ad5f99f44313bf12fa36017ebe17 Mon Sep 17 00:00:00 2001 From: Wei Kang Date: Fri, 10 Nov 2023 10:54:57 +0800 Subject: [PATCH] Add some models link on ModelScope (#505) --- .../conv-emformer-transducer-models.rst | 24 +++++++-- .../zipformer-transucer-models.rst | 49 +++++++++++++++---- .../zipformer-transducer-models.rst | 48 ++++++++++++++---- 3 files changed, 96 insertions(+), 25 deletions(-) diff --git a/docs/source/ncnn/pretrained_models/conv-emformer-transducer-models.rst b/docs/source/ncnn/pretrained_models/conv-emformer-transducer-models.rst index 75ba42076..403cc1fd5 100644 --- a/docs/source/ncnn/pretrained_models/conv-emformer-transducer-models.rst +++ b/docs/source/ncnn/pretrained_models/conv-emformer-transducer-models.rst @@ -169,13 +169,27 @@ In the following, we describe how to download and use it with `sherpa-ncnn`_. Please use the following commands to download it. -.. code-block:: bash +.. tabs:: - cd /path/to/sherpa-ncnn + .. tab:: Huggingface - GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/sherpa-ncnn-conv-emformer-transducer-2022-12-06 - cd sherpa-ncnn-conv-emformer-transducer-2022-12-06 - git lfs pull --include "*.bin" + .. code-block:: bash + + cd /path/to/sherpa-ncnn + + GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/sherpa-ncnn-conv-emformer-transducer-2022-12-06 + cd sherpa-ncnn-conv-emformer-transducer-2022-12-06 + git lfs pull --include "*.bin" + + .. tab:: ModelScope + + .. code-block:: bash + + cd /path/to/sherpa-ncnn + + GIT_LFS_SKIP_SMUDGE=1 git clone https://www.modelscope.cn/pkufool/sherpa-ncnn-conv-emformer-transducer-2022-12-06.git + cd sherpa-ncnn-conv-emformer-transducer-2022-12-06 + git lfs pull --include "*.bin" Please check that the file size of the pre-trained models is correct (see the output below): diff --git a/docs/source/ncnn/pretrained_models/zipformer-transucer-models.rst b/docs/source/ncnn/pretrained_models/zipformer-transucer-models.rst index 2779461d4..aaaeeff42 100644 --- a/docs/source/ncnn/pretrained_models/zipformer-transucer-models.rst +++ b/docs/source/ncnn/pretrained_models/zipformer-transucer-models.rst @@ -23,13 +23,28 @@ Download the model Please use the following commands to download it. -.. code-block:: bash +.. tabs:: - cd /path/to/sherpa-ncnn + .. tab:: Huggingface + + .. code-block:: bash + + cd /path/to/sherpa-ncnn + + GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/marcoyang/sherpa-ncnn-streaming-zipformer-zh-14M-2023-02-23 + cd sherpa-ncnn-streaming-zipformer-zh-14M-2023-02-23 + git lfs pull --include "*.bin" + + .. tab:: ModelScope + + .. code-block:: bash + + cd /path/to/sherpa-ncnn + + GIT_LFS_SKIP_SMUDGE=1 git clone https://www.modelscope.cn/pkufool/sherpa-ncnn-streaming-zipformer-zh-14M-2023-02-23.git + cd sherpa-ncnn-streaming-zipformer-zh-14M-2023-02-23 + git lfs pull --include "*.bin" - GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/marcoyang/sherpa-ncnn-streaming-zipformer-zh-14M-2023-02-23 - cd sherpa-ncnn-streaming-zipformer-zh-14M-2023-02-23 - git lfs pull --include "*.bin" After downloading, please check the file sizes of the models. You should see the following output after . @@ -132,13 +147,27 @@ Download the model Please use the following commands to download it. -.. code-block:: bash +.. tabs:: - cd /path/to/sherpa-ncnn + .. tab:: Huggingface - GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/marcoyang/sherpa-ncnn-streaming-zipformer-20M-2023-02-17 - cd sherpa-ncnn-streaming-zipformer-20M-2023-02-17 - git lfs pull --include "*.bin" + .. code-block:: bash + + cd /path/to/sherpa-ncnn + + GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/marcoyang/sherpa-ncnn-streaming-zipformer-20M-2023-02-17 + cd sherpa-ncnn-streaming-zipformer-20M-2023-02-17 + git lfs pull --include "*.bin" + + .. tab:: ModelScope + + .. code-block:: bash + + cd /path/to/sherpa-ncnn + + GIT_LFS_SKIP_SMUDGE=1 git clone https://www.modelscope.cn/pkufool/sherpa-ncnn-streaming-zipformer-20M-2023-02-17.git + cd sherpa-ncnn-streaming-zipformer-20M-2023-02-17 + git lfs pull --include "*.bin" After downloading, please check the file sizes of the models. You should see the following output after . diff --git a/docs/source/onnx/pretrained_models/online-transducer/zipformer-transducer-models.rst b/docs/source/onnx/pretrained_models/online-transducer/zipformer-transducer-models.rst index f86cdb09a..9e4fff54e 100644 --- a/docs/source/onnx/pretrained_models/online-transducer/zipformer-transducer-models.rst +++ b/docs/source/onnx/pretrained_models/online-transducer/zipformer-transducer-models.rst @@ -401,13 +401,27 @@ Download the model Please use the following commands to download it. -.. code-block:: bash +.. tabs:: - cd /path/to/sherpa-onnx + .. tab:: Huggingface - GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/sherpa-onnx-streaming-zipformer-en-2023-02-21 - cd sherpa-onnx-streaming-zipformer-en-2023-02-21 - git lfs pull --include "*.onnx" + .. code-block:: bash + + cd /path/to/sherpa-onnx + + GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/sherpa-onnx-streaming-zipformer-en-2023-02-21 + cd sherpa-onnx-streaming-zipformer-en-2023-02-21 + git lfs pull --include "*.onnx" + + .. tab:: ModelScope + + .. code-block:: bash + + cd /path/to/sherpa-onnx + + GIT_LFS_SKIP_SMUDGE=1 git clone https://www.modelscope.cn/pkufool/sherpa-onnx-streaming-zipformer-en-2023-02-21.git + cd sherpa-onnx-streaming-zipformer-en-2023-02-21 + git lfs pull --include "*.onnx" Please check that the file sizes of the pre-trained models are correct. See the file sizes of ``*.onnx`` files below. @@ -517,13 +531,27 @@ Download the model Please use the following commands to download it. -.. code-block:: bash +.. tabs:: - cd /path/to/sherpa-onnx + .. tab:: Huggingface - GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20 - cd sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20 - git lfs pull --include "*.onnx" + .. code-block:: bash + + cd /path/to/sherpa-onnx + + GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20 + cd sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20 + git lfs pull --include "*.onnx" + + .. tab:: ModelScope + + .. code-block:: bash + + cd /path/to/sherpa-onnx + + GIT_LFS_SKIP_SMUDGE=1 git clone https://www.modelscope.cn/pkufool/sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20.git + cd sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20 + git lfs pull --include "*.onnx" Please check that the file sizes of the pre-trained models are correct. See the file sizes of ``*.onnx`` files below.