Skip to content

Commit

Permalink
fix layoutlm & use hf-mirror for all urls (#963)
Browse files Browse the repository at this point in the history
  • Loading branch information
lvyufeng authored Mar 28, 2024
1 parent 2a7c5a1 commit 5cfe18b
Show file tree
Hide file tree
Showing 213 changed files with 1,416 additions and 935 deletions.
2 changes: 1 addition & 1 deletion .github/install_mindspore.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os

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

Expand Down
2 changes: 1 addition & 1 deletion .github/kaggle_gpu_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
os.chdir("mindnlp")
os.system("conda create -n mindspore python=3.9 cudatoolkit=11.1 cudnn -y")
os.system("/opt/conda/envs/mindspore/bin/pip install -r requirements/requirements.txt")
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")
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")
return_code = os.system("/opt/conda/envs/mindspore/bin/pytest tests -c pytest.ini -m 'not download'")
if return_code:
raise Exception("tests failed.")
2 changes: 1 addition & 1 deletion llm/inference/llama/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def main(
"I believe the meaning of life is",
"Simply put, the theory of relativity states that ",
"Building a website can be done in 10 simple steps:\n",
# Few shot prompts: https://huggingface.co/blog/few-shot-learning-gpt-neo-and-inference-api
# Few shot prompts: https://hf-mirror.com/blog/few-shot-learning-gpt-neo-and-inference-api
"""Tweet: "I hate it when my phone battery dies."
Sentiment: Negative
###
Expand Down
Loading

0 comments on commit 5cfe18b

Please sign in to comment.