-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathrun_inference_server.sh
More file actions
executable file
·60 lines (53 loc) · 2 KB
/
run_inference_server.sh
File metadata and controls
executable file
·60 lines (53 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
# Script to run GR00T inference server for Libero evaluation
# Usage: ./run_inference_server.sh [task_suite_name]
# task_suite_name: libero_spatial (default), libero_goal, libero_object, libero_90, libero_10
TASK=${1:-libero_10}
# Activate groot_test environment
source ~/miniconda3/etc/profile.d/conda.sh
conda activate groot_test
# Set model path and data config based on task
case $TASK in
libero_spatial)
MODEL_PATH="youliangtan/gr00t-n1.5-libero-spatial-posttrain"
DATA_CONFIG="examples.Libero.custom_data_config:LiberoDataConfig"
;;
libero_goal)
MODEL_PATH="youliangtan/gr00t-n1.5-libero-goal-posttrain"
DATA_CONFIG="examples.Libero.custom_data_config:LiberoDataConfigMeanStd"
;;
libero_object)
MODEL_PATH="youliangtan/gr00t-n1.5-libero-object-posttrain"
DATA_CONFIG="examples.Libero.custom_data_config:LiberoDataConfig"
;;
libero_90)
MODEL_PATH="youliangtan/gr00t-n1.5-libero-90-posttrain"
DATA_CONFIG="examples.Libero.custom_data_config:LiberoDataConfig"
;;
libero_10)
MODEL_PATH="youliangtan/gr00t-n1.5-libero-long-posttrain"
DATA_CONFIG="examples.Libero.custom_data_config:LiberoDataConfig"
;;
*)
echo "Unknown task: $TASK"
echo "Available tasks: libero_spatial, libero_goal, libero_object, libero_90, libero_10"
exit 1
;;
esac
# Allow override of denoising steps via environment variable
DENOISING_STEPS=${GR00T_DENOISING_STEPS:-8}
echo "=========================================="
echo "Starting GR00T inference server for $TASK"
echo "Model: $MODEL_PATH"
echo "Data Config: $DATA_CONFIG"
echo "Port: 5556"
echo "Denoising Steps: $DENOISING_STEPS"
echo "=========================================="
cd /home/jz97/VLM_REPO/groot_test/QuantVLA_GR00T
python scripts/inference_service.py \
--model_path $MODEL_PATH \
--server \
--data_config $DATA_CONFIG \
--denoising-steps 8 \
--port 5556 \
--embodiment-tag new_embodiment