Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix layoutlm & use hf-mirror for all urls #963

Merged
merged 1 commit into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading