-
Notifications
You must be signed in to change notification settings - Fork 145
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
OSError: [Errno 101] Network is unreachable when doing inference with internlm-xcomposer2.5-7b #360
Comments
I can access truetype_url . |
I can reach huggingface.co but encounter same issue...... |
Download the
|
Thank you for solution, but I discover that ixc_utils.py would automatically be reset when running the demo, and I'm wonder how to solve it |
Check the step:
|
Thank you for solution! It works! |
Thanks @ygzhu for providing the solution. |
when loading the model, it seems that the function
get_fond()
in ixc_utils.py will be run. However, some errors occurred:def get_font():
truetype_url = 'https://huggingface.co/internlm/internlm-xcomposer2d5-7b/resolve/main/SimHei.ttf?download=true'
ff = urlopen(truetype_url)
font = ImageFont.truetype(ff, size=40)
return font
<urlopen error [Errno 101] Network is unreachable>
OSError: [Errno 101] Network is unreachable
During handling of the above exception, another exception occurred:
File "/data/zhuang/huggingface/misc/modules/transformers_modules/internlm-xcomposer2d5-7b/ixc_utils.py", line 13, in get_font
ff = urlopen(truetype_url)
File "/data/zhuang/huggingface/misc/modules/transformers_modules/internlm-xcomposer2d5-7b/modeling_internlm_xcomposer2.py", line 105, in init
self.font = get_font()
......
urllib.error.URLError: <urlopen error [Errno 101] Network is unreachable>
The text was updated successfully, but these errors were encountered: