mattb512 commited on
Commit
d256a2e
1 Parent(s): d3d1749

add shell function

Browse files
Files changed (1) hide show
  1. startup.sh +2 -2
startup.sh CHANGED
@@ -16,7 +16,7 @@ python3 -c "import torch; \
16
 
17
  COMPONENT="serve.controller"
18
  echo "Starting $COMPONENT"
19
- nohup python3 -m $COMPONENT --host 0.0.0.0 --port 10000 2>&1 | tee "$COMPONENT.log" &
20
  while [ `grep -c "Uvicorn running on" "$COMPONENT.log"` -eq '0' ];do
21
  sleep 1s;
22
  echo "wait $COMPONENT to be running"
@@ -36,7 +36,7 @@ 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 $COMPONENT --port 40000 --model_id prism-dinosiglip+7 | tee "$COMPONENT.log" &
40
  while [ `grep -c "loaded prismatic prism-dinosiglip+7b" "$COMPONENT.log"` -eq '0' ];do
41
  sleep 1s;
42
  echo "wait $COMPONENT to be running"
 
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 "$COMPONENT.log" &
20
  while [ `grep -c "Uvicorn running on" "$COMPONENT.log"` -eq '0' ];do
21
  sleep 1s;
22
  echo "wait $COMPONENT to be 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 "$COMPONENT.log" &
40
  while [ `grep -c "loaded prismatic prism-dinosiglip+7b" "$COMPONENT.log"` -eq '0' ];do
41
  sleep 1s;
42
  echo "wait $COMPONENT to be running"