GenAIExamples icon indicating copy to clipboard operation
GenAIExamples copied to clipboard

Connection reset by peer

Open apahleva opened this issue 1 year ago • 1 comments

@lvliang-intel, I am following the steps in the README, and after I successfully build the Docker container and set up my Hugging Face token, I encounter an issue that I don't know how to resolve. Can you guide me?

curl -v --noproxy '*' 127.0.0.1:8080/generate -X POST -d '{"inputs":"What is Deep Learning?","parameters":{"max_new_tokens":32}}' -H 'Content-Type: application/json' Note: Unnecessary use of -X or --request, POST is already inferred.

Trying 127.0.0.1:8080... TCP_NODELAY set Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0) POST /generate HTTP/1.1 Host: 127.0.0.1:8080 User-Agent: curl/7.68.0 Accept: / Content-Type: application/json Content-Length: 70

upload completely sent off: 70 out of 70 bytes Recv failure: Connection reset by peer Closing connection 0 curl: (56) Recv failure: Connection reset by peer

apahleva avatar May 09 '24 17:05 apahleva

@apahleva,

Thanks for raising this issue. Did you use 'docker logs ' to check if the model startup successfully? It needs some time to warmup the LLM.

lvliang-intel avatar May 10 '24 03:05 lvliang-intel

@apahleva

Any progress to this issue?

Please try with latest code.

We did not use the port 8080 in latest code. Have you changed the port or a typo? Please double confirm the port is the right one. FYR: here is the default service and port image

xiguiw avatar Jun 14 '24 08:06 xiguiw

close as no more action required.

xiguiw avatar Jul 02 '24 01:07 xiguiw