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

[Bug]: In the Dockerfile building logic, when copying the huggingface.co file directory, since there are soft links pointing to the local cache addresses, it is impossible to copy the actual files into the image. #3584

Closed
1 task done
YANGBoSunning opened this issue Nov 22, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@YANGBoSunning
Copy link
Contributor

Is there an existing issue for the same bug?

  • I have checked the existing issues.

RAGFlow workspace code commit ID

ee7fd71

RAGFlow image version

ee7fd71(v0.13.0~174)

Other environment information

OS type: MacOS & Linux
Chip Architecture: AMD

Actual behavior

  • First, I used the download_deps.py file to download the model resources required for building.
image - After that, I used the dockerfile in the project to build a server image. - After I started the entrypoint.sh command using this image, I found that the server service still downloads resources from huggingface.co when starting up. image - When I check the address information of the model file in the container, I find that many soft links in the model file point to the cache path on my local hard disk. This path does not exist in the container. image

Expected behavior

After the image is started, the server side can recognize the downloaded model resources and does not need to download from Hugging Face again.

Steps to reproduce

1. git clone https://github.com/infiniflow/ragflow.git
cd ragflow/
pip3 install huggingface-hub nltk
2. python3 download_deps.py
3. bash build_docker_image.sh full
4. docker run -d image_name

Additional information

No response

@YANGBoSunning YANGBoSunning added the bug Something isn't working label Nov 22, 2024
YANGBoSunning added a commit to YANGBoSunning/ragflow that referenced this issue Nov 22, 2024
yuzhichang pushed a commit that referenced this issue Nov 22, 2024
…ointing to a non-existent address. #3584 (#3586)

### What problem does this PR solve?

Fix: Solve the problem of model files in the image being soft links
pointing to a non-existent address. #3584

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

Co-authored-by: Kevin Hu <[email protected]>
@yuzhichang
Copy link
Member

Fixed By #3586

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants