Skip to content

Loading model NOT from Huggingface? #527

Answered by wirthual
molntamas asked this question in Q&A
Discussion options

You must be logged in to vote

Yes this is possible.

You can mount your local model from the host machine into the container and then specify the path inside the container when launching the infinity container.

Check out the example from this issue:

cd /tmp
git install lfs 
mkdir models && cd models && git clone https://huggingface.co/BAAI/bge-m3 && cd ..
docker run -it   -v /tmp/models:/models  -p 8081:8081  michaelf34/infinity:0.0.70 v2  --model-id "/models/bge-m3"  --served-model-name bge-m3  --port 8081

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by molntamas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants