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

Cant not request #216

Open
2 of 4 tasks
wanzhixiao opened this issue Mar 24, 2024 · 1 comment
Open
2 of 4 tasks

Cant not request #216

wanzhixiao opened this issue Mar 24, 2024 · 1 comment

Comments

@wanzhixiao
Copy link

wanzhixiao commented Mar 24, 2024

System Info

CUDA Version: 12.0 , with A10 GPU
CentOS: 7.9

Information

  • Docker
  • The CLI directly

Tasks

  • An officially supported command
  • My own modifications

Reproduction

I run the text-embedding-inference program by the following script

volume=/data/pretrain_model
model=/data/pretrain_model/bge-small-zh-v1.5
revision=refs/pr/5

docker run -d --restart=always --gpus all\
            -p 8070:80 \
            -v $volume:/data --pull always ghcr.io/huggingface/text-embeddings-inference:86-1.2 \
            --model-id $model \
            --tokenization-workers 2

and the docker has successfully run, however, when i try the following command for caculate embedding:

curl 127.0.0.1:8070/embed_sparse \
    -X POST \
    -d '{"inputs":"I like you."}' \
    -H 'Content-Type: application/json'

the error ocurred:
curl: (56) Recv failure: Connection reset by peer, how can i solve it?
image

docker logs
image

Expected behavior

return the embedding

@CharleyXu
Copy link

You can refer to #207

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