Skip to content

Commit 5cfe18b

Browse files
authored
fix layoutlm & use hf-mirror for all urls (#963)
1 parent 2a7c5a1 commit 5cfe18b

File tree

213 files changed

+1416
-935
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

213 files changed

+1416
-935
lines changed

.github/install_mindspore.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import os
44

55
def gen_url(os_name, py_version):
6-
hf_url = 'https://huggingface.co/lvyufeng/mindspore-daily/resolve/main/'
6+
hf_url = 'https://hf-mirror.com/lvyufeng/mindspore-daily/resolve/main/'
77
whl_name = 'mindspore-newest-cp{}-cp{}-{}.whl'
88
py_version = py_version.replace('.', '')
99

.github/kaggle_gpu_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
os.chdir("mindnlp")
55
os.system("conda create -n mindspore python=3.9 cudatoolkit=11.1 cudnn -y")
66
os.system("/opt/conda/envs/mindspore/bin/pip install -r requirements/requirements.txt")
7-
os.system("/opt/conda/envs/mindspore/bin/pip install https://huggingface.co/lvyufeng/mindspore-daily/resolve/main/mindspore-newest-cp39-cp39-linux_x86_64.whl")
7+
os.system("/opt/conda/envs/mindspore/bin/pip install https://hf-mirror.com/lvyufeng/mindspore-daily/resolve/main/mindspore-newest-cp39-cp39-linux_x86_64.whl")
88
return_code = os.system("/opt/conda/envs/mindspore/bin/pytest tests -c pytest.ini -m 'not download'")
99
if return_code:
1010
raise Exception("tests failed.")

llm/inference/llama/example.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def main(
8080
"I believe the meaning of life is",
8181
"Simply put, the theory of relativity states that ",
8282
"Building a website can be done in 10 simple steps:\n",
83-
# Few shot prompts: https://huggingface.co/blog/few-shot-learning-gpt-neo-and-inference-api
83+
# Few shot prompts: https://hf-mirror.com/blog/few-shot-learning-gpt-neo-and-inference-api
8484
"""Tweet: "I hate it when my phone battery dies."
8585
Sentiment: Negative
8686
###

0 commit comments

Comments
 (0)