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

Fetch models for China AI PC Dev Kit users #6

Open
ibelem opened this issue Jun 6, 2024 · 1 comment
Open

Fetch models for China AI PC Dev Kit users #6

ibelem opened this issue Jun 6, 2024 · 1 comment

Comments

@ibelem
Copy link
Member

ibelem commented Jun 6, 2024

The models are inaccessible from huggingface.co in China, we need to solve this issue.

  1. Please check if we can switch the domain from https://huggingface.co to https://hf-mirror.com/ for Chinese users.
  2. See if we can load https://modelscope.cn/ via fetch API.

How can we detect if the user is coming from China on the Web?

  1. The https://ipinfo.io/ need to pay for the API access
  2. The Google Maps Geocoding API requires user's permissions for accessing Geolocation API at first

@NingW101

@ibelem ibelem changed the title Fetch models for China users Fetch models for China AI PC Dev Kit users Jun 6, 2024
@NingW101
Copy link
Contributor

NingW101 commented Jun 7, 2024

The models are inaccessible from huggingface.co in China, we need to solve this issue.

  1. Please check if we can switch the domain from https://huggingface.co to https://hf-mirror.com/ for Chinese users.
  2. See if we can load https://modelscope.cn/ via fetch API.

Both hf-mirror and modelScope restrict the cross-domain access, fetching resource directly is not available. So the solution is to require users to manually download model files and upload through the load models locally button in UI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants