From f6df570a8f853d47083dc0ddb0ec2a17af4e80cb Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Thu, 21 Mar 2024 12:02:59 +0800 Subject: [PATCH] Doc: Add huggingface mirror for users from China. --- docs/source/for-dummies/environment-setup.rst | 4 ++++ docs/source/installation/index.rst | 3 +++ 2 files changed, 7 insertions(+) diff --git a/docs/source/for-dummies/environment-setup.rst b/docs/source/for-dummies/environment-setup.rst index a68e9d3edc..e257b915c5 100644 --- a/docs/source/for-dummies/environment-setup.rst +++ b/docs/source/for-dummies/environment-setup.rst @@ -74,6 +74,10 @@ to install dependencies of `icefall`_: pip install k2==1.24.4.dev20231220+cpu.torch2.0.0 -f https://k2-fsa.github.io/k2/cpu.html + # For users from China + # 中国国内用户,如果访问不了 huggingface, 请使用 + # pip install k2==1.24.4.dev20231220+cpu.torch2.0.0 -f https://k2-fsa.github.io/k2/cpu-cn.html + # Install the latest version of lhotse pip install git+https://github.com/lhotse-speech/lhotse diff --git a/docs/source/installation/index.rst b/docs/source/installation/index.rst index 5a034ef5bf..87318f30ec 100644 --- a/docs/source/installation/index.rst +++ b/docs/source/installation/index.rst @@ -206,6 +206,9 @@ We will install `k2`_ from pre-compiled wheels by following .. code-block:: bash (test-icefall) kuangfangjun:~$ pip install k2==1.24.3.dev20230725+cuda11.6.torch1.13.0 -f https://k2-fsa.github.io/k2/cuda.html + # For users from China + # 中国国内用户,如果访问不了 huggingface, 请使用 + # pip install k2==1.24.3.dev20230725+cuda11.6.torch1.13.0 -f https://k2-fsa.github.io/k2/cuda-cn.html Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Looking in links: https://k2-fsa.github.io/k2/cuda.html