Skip to content

Commit

Permalink
Add some models link on ModelScope (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkufool authored Nov 10, 2023
1 parent b3a432e commit a34c2c8
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
49 changes: 39 additions & 10 deletions docs/source/ncnn/pretrained_models/zipformer-transucer-models.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down Expand Up @@ -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 .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit a34c2c8

Please sign in to comment.