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

[Question]: how ENV HF_ENDPOINT works #350

Closed
ooooo-create opened this issue Apr 14, 2024 · 3 comments
Closed

[Question]: how ENV HF_ENDPOINT works #350

ooooo-create opened this issue Apr 14, 2024 · 3 comments
Labels
question Further information is requested

Comments

@ooooo-create
Copy link
Contributor

ooooo-create commented Apr 14, 2024

Describe your problem

link: #323 (comment)
because I have the same problem to connetct hf-mirror.com.
So I build the docker image from source https://github.com/infiniflow/ragflow?tab=readme-ov-file#%EF%B8%8F-build-from-source
And i delete the line 15 ENV HF_ENDPOINT=https://hf-mirror.com.Then docker compose up , the error is disappear.
I found it will not to download the model, so that when i upload docs and parse it, there is no model in path.
As you say,i clone the deepdoc and add a volumes, like - ~/deepdoc:/ragflow/rag/res/deepdoc
That works!
But I still have the question how ENV HF_ENDPOINT works, why it influence whether to download models? This show it will have a default values in https://huggingface.co/docs/huggingface_hub/v0.13.3/package_reference/environment_variables#hfendpoint

@ooooo-create ooooo-create added the question Further information is requested label Apr 14, 2024
@danielstankw
Copy link

@ooooo-create
Can you please tell me where you delete the ENV from ?

@ooooo-create
Copy link
Contributor Author

@ooooo-create
Can you please tell me where you delete the ENV from ?

yes, I delete it in dockerfile which in the root dir

KevinHuSh added a commit that referenced this issue Apr 15, 2024
### What problem does this PR solve?


Issue link:#350

### Type of change

- [x] Refactoring
@KevinHuSh
Copy link
Collaborator

This is a mirror site for huggingface scince some of district can't access huggingface.

@ooooo-create Can you please tell me where you delete the ENV from ?

If you can access huggingface, you'd better use docker-compose.yml.

@KevinHuSh KevinHuSh mentioned this issue Apr 15, 2024
1 task
KevinHuSh added a commit that referenced this issue Apr 15, 2024
### What problem does this PR solve?

Issue link:#350

### Type of change

- [x] Refactoring
KevinHuSh pushed a commit that referenced this issue Apr 15, 2024
### What problem does this PR solve?

update HF_ENDPOINT in docker-compose.yml

Issue link:#350

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
Halfknow pushed a commit to Halfknow/ragflow that referenced this issue Nov 13, 2024
### What problem does this PR solve?


Issue link:infiniflow#350

### Type of change

- [x] Refactoring
Halfknow pushed a commit to Halfknow/ragflow that referenced this issue Nov 13, 2024
### What problem does this PR solve?

Issue link:infiniflow#350

### Type of change

- [x] Refactoring
Halfknow pushed a commit to Halfknow/ragflow that referenced this issue Nov 13, 2024
### What problem does this PR solve?

update HF_ENDPOINT in docker-compose.yml

Issue link:infiniflow#350

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants