add shell function
Browse files- startup.sh +4 -4
startup.sh
CHANGED
@@ -16,8 +16,8 @@ python3 -c "import torch; \
|
|
16 |
|
17 |
COMPONENT="serve.controller"
|
18 |
echo "Starting $COMPONENT"
|
19 |
-
nohup python3 -m serve.controller --host 0.0.0.0 --port 10000 2>&1 | tee
|
20 |
-
while [ `grep -c "Uvicorn running on"
|
21 |
sleep 1s;
|
22 |
echo "wait $COMPONENT to be running"
|
23 |
done
|
@@ -36,8 +36,8 @@ echo "$COMPONENT is running"
|
|
36 |
# python3 -m interactive_demo --port 40000 --model_id prism-dinosiglip+7b &
|
37 |
COMPONENT="interactive_demo"
|
38 |
echo "Starting $COMPONENT"
|
39 |
-
nohup python3 -m interactive_demo --port 40000 --model_id prism-dinosiglip+7 | tee
|
40 |
-
while [ `grep -c "loaded prismatic prism-dinosiglip+7b"
|
41 |
sleep 1s;
|
42 |
echo "wait $COMPONENT to be running"
|
43 |
done
|
|
|
16 |
|
17 |
COMPONENT="serve.controller"
|
18 |
echo "Starting $COMPONENT"
|
19 |
+
nohup python3 -m serve.controller --host 0.0.0.0 --port 10000 2>&1 | tee serve.controller.log &
|
20 |
+
while [ `grep -c "Uvicorn running on" serve.controller.log` -eq '0' ];do
|
21 |
sleep 1s;
|
22 |
echo "wait $COMPONENT to be running"
|
23 |
done
|
|
|
36 |
# python3 -m interactive_demo --port 40000 --model_id prism-dinosiglip+7b &
|
37 |
COMPONENT="interactive_demo"
|
38 |
echo "Starting $COMPONENT"
|
39 |
+
nohup python3 -m interactive_demo --port 40000 --model_id prism-dinosiglip+7 | tee interactive_demo.log &
|
40 |
+
while [ `grep -c "loaded prismatic prism-dinosiglip+7b" interactive_demo.log` -eq '0' ];do
|
41 |
sleep 1s;
|
42 |
echo "wait $COMPONENT to be running"
|
43 |
done
|