From 4a56b73f54f0fe8d5190ccb7f2247d287b71682c Mon Sep 17 00:00:00 2001 From: Xinrui Chen Date: Tue, 10 Jun 2025 11:25:14 +0800 Subject: [PATCH] [MindFormers] Add description to change mirror --- docs/mindformers/docs/source_en/faq/feature_related.md | 6 ++++++ docs/mindformers/docs/source_zh_cn/faq/feature_related.md | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/docs/mindformers/docs/source_en/faq/feature_related.md b/docs/mindformers/docs/source_en/faq/feature_related.md index cdf536564e..07a16d842d 100644 --- a/docs/mindformers/docs/source_en/faq/feature_related.md +++ b/docs/mindformers/docs/source_en/faq/feature_related.md @@ -18,4 +18,10 @@ A: The model sharding strategy file documents the sharding strategy for model we A: Starting from `MindSpore Transformers r1.2.0` version, cluster startup is unified using `msrun` method, and `ranktable` startup method is deprecated. +
+ +## Q: When installing MindSpore Transformers from source code, the download speed of dependency packages is slow. How can this be resolved? + +A: The `build.sh` script uses the [Tsinghua Mirror](https://mirrors.tuna.tsinghua.edu.cn/help/pypi/) to download the Python packages required by MindSpore Transformers. To change the mirror source, you can modify the download command in `build.sh`: `pip install mindformers*whl -i https://pypi.tuna.tsinghua.edu.cn/simple` , replace the URL after `-i` with the address of your desired mirror source. +
\ No newline at end of file diff --git a/docs/mindformers/docs/source_zh_cn/faq/feature_related.md b/docs/mindformers/docs/source_zh_cn/faq/feature_related.md index 01ce3ec591..8b3c3e37be 100644 --- a/docs/mindformers/docs/source_zh_cn/faq/feature_related.md +++ b/docs/mindformers/docs/source_zh_cn/faq/feature_related.md @@ -18,4 +18,10 @@ A: 模型切分策略文件记录了模型权重在分布式场景下的切分 A: 从`MindSpore Transformers r1.2.0`版本开始,集群启动统一使用`msrun`方式,`ranktable`启动方式已废弃。 +
+ +## Q: 通过源码安装MindSpore Transformers时依赖包下载速度慢,怎么解决? + +A: `build.sh`使用[清华源](https://mirrors.tuna.tsinghua.edu.cn/help/pypi/)下载MindSpore Transformers所依赖的Python包。如需修改镜像源,可以修改`build.sh`中下载命令`pip install mindformers*whl -i https://pypi.tuna.tsinghua.edu.cn/simple` ,将`-i`后地址替换为目标镜像源地址。 +
\ No newline at end of file -- Gitee