File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,65 +23,13 @@ mv EB-ALFRED /path/to/EmbodiedBench/embodiedbench/envs/eb_alfred/data/json_2.1.0
2323
2424## Per-Boot Setup
2525
26- ### 1. Start Xorg (GPU-accelerated, Xvfb will not work)
26+ ### 1. Start Xorg + Server
2727
2828``` bash
29- # Get GPU BusID (hex → decimal, e.g. 0x41 → 65)
30- nvidia-smi --query-gpu=pci.bus_id --format=csv,noheader
31-
32- cat > /tmp/xorg0.conf << 'EOF '
33- Section "Device"
34- Identifier "GPU0"
35- Driver "nvidia"
36- BusID "PCI:65:0:0"
37- Option "AllowEmptyInitialConfiguration" "True"
38- EndSection
39- Section "Monitor"
40- Identifier "Monitor0"
41- HorizSync 28.0-80.0
42- VertRefresh 48.0-75.0
43- Modeline "1920x1080" 172.80 1920 2040 2248 2576 1080 1081 1084 1118
44- EndSection
45- Section "Screen"
46- Identifier "Screen0"
47- Device "GPU0"
48- Monitor "Monitor0"
49- DefaultDepth 24
50- SubSection "Display"
51- Depth 24
52- Modes "1920x1080"
53- Virtual 1920 1080
54- EndSubSection
55- EndSection
56- Section "ServerLayout"
57- Identifier "Layout0"
58- Screen 0 "Screen0"
59- EndSection
60- EOF
61-
62- # Single GPU
63- Xorg -noreset +extension GLX -config /tmp/xorg0.conf :0 &
64-
65- # Dual GPU (repeat with second config for :1)
66- Xorg -noreset +extension GLX -config /tmp/xorg1.conf :1 &
67-
68- # Verify
69- grep " Virtual screen size" /var/log/Xorg.0.log
70- ```
71-
72- ### 2. Start Server
73-
74- ``` bash
75- python -m vagen.envs.eb_alfred.serve \
76- --port 8000 \
77- --capacity 90 \
78- --startup-concurrency 6 \
79- --x-displays 0,1
80-
81- curl http://localhost:8000/health
29+ bash vagen/envs/eb_alfred/start_server.sh
8230```
8331
84- ### 3 . SSH Tunnel (if training machine is remote)
32+ ### 2 . SSH Tunnel (if training machine is remote)
8533
8634``` bash
8735# On env server
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
3+
4+ cp " $SCRIPT_DIR /xorg0.conf" /tmp/xorg0.conf
5+ cp " $SCRIPT_DIR /xorg1.conf" /tmp/xorg1.conf
6+
7+ Xorg -noreset +extension GLX -config /tmp/xorg0.conf :0 &
8+ Xorg -noreset +extension GLX -config /tmp/xorg1.conf :1 &
9+
10+ sleep 2
11+
12+ python -m vagen.envs.eb_alfred.serve \
13+ --port 8000 \
14+ --capacity 90 \
15+ --startup-concurrency 6 \
16+ --x-displays 0,1
Original file line number Diff line number Diff line change 1+ Section "Device"
2+ Identifier "GPU0"
3+ Driver "nvidia"
4+ BusID "PCI:65:0:0"
5+ Option "AllowEmptyInitialConfiguration" "True"
6+ EndSection
7+ Section "Monitor"
8+ Identifier "Monitor0"
9+ HorizSync 28.0-80.0
10+ VertRefresh 48.0-75.0
11+ Modeline "1920x1080" 172.80 1920 2040 2248 2576 1080 1081 1084 1118
12+ EndSection
13+ Section "Screen"
14+ Identifier "Screen0"
15+ Device "GPU0"
16+ Monitor "Monitor0"
17+ DefaultDepth 24
18+ SubSection "Display"
19+ Depth 24
20+ Modes "1920x1080"
21+ Virtual 1920 1080
22+ EndSubSection
23+ EndSection
24+ Section "ServerLayout"
25+ Identifier "Layout0"
26+ Screen 0 "Screen0"
27+ EndSection
Original file line number Diff line number Diff line change 1+ Section "Device"
2+ Identifier "GPU1"
3+ Driver "nvidia"
4+ BusID "PCI:97:0:0"
5+ Option "AllowEmptyInitialConfiguration" "True"
6+ EndSection
7+ Section "Monitor"
8+ Identifier "Monitor1"
9+ HorizSync 28.0-80.0
10+ VertRefresh 48.0-75.0
11+ Modeline "1920x1080" 172.80 1920 2040 2248 2576 1080 1081 1084 1118
12+ EndSection
13+ Section "Screen"
14+ Identifier "Screen1"
15+ Device "GPU1"
16+ Monitor "Monitor1"
17+ DefaultDepth 24
18+ SubSection "Display"
19+ Depth 24
20+ Modes "1920x1080"
21+ Virtual 1920 1080
22+ EndSubSection
23+ EndSection
24+ Section "ServerLayout"
25+ Identifier "Layout1"
26+ Screen 0 "Screen1"
27+ EndSection
You can’t perform that action at this time.
0 commit comments