mirror of
https://github.com/exo-explore/exo.git
synced 2025-10-23 02:57:14 +03:00
circle tail logs
This commit is contained in:
@@ -29,14 +29,21 @@ commands:
|
||||
# Start first instance
|
||||
HF_HOME="$(pwd)/.hf_cache_node1" DEBUG_DISCOVERY=7 DEBUG=7 exo --inference-engine <<parameters.inference_engine>> \
|
||||
--node-id "node1" --listen-port 5678 --broadcast-port 5679 --chatgpt-api-port 8000 \
|
||||
--chatgpt-api-response-timeout 900 --disable-tui 2>&1 | stdbuf -oL tee output1.log &
|
||||
--chatgpt-api-response-timeout 900 --disable-tui > output1.log &
|
||||
PID1=$!
|
||||
tail -f output1.log &
|
||||
TAIL1=$!
|
||||
|
||||
# Start second instance
|
||||
HF_HOME="$(pwd)/.hf_cache_node2" DEBUG_DISCOVERY=7 DEBUG=7 exo --inference-engine <<parameters.inference_engine>> \
|
||||
--node-id "node2" --listen-port 5679 --broadcast-port 5678 --chatgpt-api-port 8001 \
|
||||
--chatgpt-api-response-timeout 900 --disable-tui 2>&1 | stdbuf -oL tee output2.log &
|
||||
--chatgpt-api-response-timeout 900 --disable-tui > output2.log &
|
||||
PID2=$!
|
||||
tail -f output2.log &
|
||||
TAIL2=$!
|
||||
|
||||
# Remember to kill the tail processes at the end
|
||||
trap 'kill $TAIL1 $TAIL2' EXIT
|
||||
|
||||
# Wait for discovery
|
||||
sleep 10
|
||||
|
||||
Reference in New Issue
Block a user