From a515b35b968843475aabbcaf32276772ad19f538 Mon Sep 17 00:00:00 2001 From: Michael Gschwind <61328285+mikekgfb@users.noreply.github.com> Date: Wed, 11 Dec 2024 12:00:20 -0800 Subject: [PATCH] Avoid curl fails due to server startup time Add sleep after server startup to make sure server ready prior to client request via `curl` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f1c70acfb..91f5a7e51 100644 --- a/README.md +++ b/README.md @@ -231,7 +231,7 @@ python3 torchchat.py server llama3.1 ``` [skip default]: end -[shell default]: python3 torchchat.py server llama3.1 & server_pid=$! +[shell default]: python3 torchchat.py server llama3.1 & server_pid=$! ; sleep 90 # wait for server to be ready to accept requests In another terminal, query the server using `curl`. Depending on the model configuration, this query might take a few minutes to respond.