33This lightweight integration gives you more built-in features with less custom
44orchestration. Labtasker handles task scheduling, retries and progress tracking,
55keeping the evaluation adapter small and the workflow simple: submit Tasks,
6- start Workers and inspect results. On a single machine, its local server starts
7- automatically .
6+ start Workers and inspect results. On a single machine with a local-filesystem
7+ checkout, you can explicitly authorize its managed local server on first use .
88
99Compared with the traditional launcher, you get:
1010
@@ -43,11 +43,70 @@ export ROBOTWIN_PATH=/path/to/RoboTwin
4343python -m pip install -r benchmarks/robotwin/requirements-labtasker.txt
4444```
4545
46- On one machine, no Labtasker server setup is needed.
46+ ** On one machine with the repository on a local disk, you can continue to
47+ the first-run commands below.** Their ` --auto-start-local-server ` flag starts
48+ Labtasker for you; later commands reconnect automatically. No separate server
49+ command, port or database configuration is needed. The project GPU Docker image
50+ already includes the full Labtasker package needed for this workflow.
51+
52+ For multiple machines, or a checkout on NFS, WekaFS or Lustre, use the setup
53+ below first. Use it also if automatic startup reports an unknown filesystem.
54+
55+ <details >
56+ <summary >Setup for multiple machines or a shared-filesystem checkout</summary >
57+
58+ If your team already runs a Labtasker server, ask for its URL and token and
59+ skip to the client settings below. Otherwise, run this once on one machine:
60+
61+ ``` bash
62+ # Supply your own secret token.
63+ export LABTASKER_SERVER_TOKEN=... # do not commit the token
64+ labtasker-server serve --connection http --host 0.0.0.0
65+ ```
66+
67+ By default, the server saves its records in ` .labtasker/ ` under the directory
68+ where you start it. Its automatically created ` server.db ` stores submitted
69+ task inputs, task status and reported results. Keep this directory to retain
70+ your evaluation history.
71+
72+ To choose another location, add just ` --labtasker-root /path/to/openwam-eval ` ;
73+ ` server.db ` follows that directory automatically. ` --database ` only overrides
74+ the database file's location separately and is unnecessary for this setup.
75+ Local disks and NFS/shared storage are supported: the server detects the
76+ filesystem automatically. On shared storage, run only one server for that
77+ directory/database, even when several machines can access it. The local-disk
78+ restriction applies to ` --auto-start-local-server ` , not this manual command.
79+
80+ Workers keep their execution logs and run records under their own
81+ ` .labtasker/runs/ ` ; setting the server's ` --labtasker-root ` does not move remote
82+ Worker logs. Benchmark logs, videos and detailed evaluation results still go
83+ to the output directories described below.
84+
85+ The server listens on port ** 8000** by default. Keep this command running in
86+ its terminal or under your process supervisor.
87+
88+ In each shell that submits tasks, runs Workers or reads results, set:
89+
90+ ``` bash
91+ export LABTASKER_URL=http://SERVER_HOST:8000
92+ export LABTASKER_TOKEN=... # same token as the server
93+ ```
94+
95+ Replace ` SERVER_HOST ` with the server machine's reachable hostname or IP.
96+ Then follow the evaluation steps below, omitting ` --auto-start-local-server ` .
97+ All Workers must be able to access the submitted checkpoint and manifest paths.
98+
99+ </details >
100+
101+ For background, see the optional
102+ [ Labtasker guide and demo video] ( https://luocfprime.github.io/labtasker/latest/ ) .
47103
48104> [ !TIP]
49- > Labtasker uses a server–client architecture and a shared task queue to manage
50- > concurrent Workers. See the [ conceptual guide and demo video] ( https://luocfprime.github.io/labtasker/latest/ ) .
105+ > To let your coding agent help with Labtasker setup, task submission, progress
106+ > monitoring, troubleshooting and result summaries, install the ** Labtasker skill** .
107+ > See the [ Agent Skill guide] ( https://github.com/luocfprime/labtasker/blob/main/docs/guides/agent-skill.md )
108+ > for installation instructions. Describe the evaluation you want to run; the
109+ > agent can help translate it into the required Labtasker commands and settings.
51110
52111<a id =" first-run " ></a >
53112
@@ -60,7 +119,8 @@ On one machine, no Labtasker server setup is needed.
60119### 1. Submit manifest-building Tasks
61120
62121``` bash
63- python benchmarks/robotwin/labtasker_submit.py --operation build_manifest --mode demo_clean
122+ python benchmarks/robotwin/labtasker_submit.py --auto-start-local-server \
123+ --operation build_manifest --mode demo_clean
64124```
65125
66126Save the submission ID printed by this command.
@@ -98,7 +158,7 @@ Replace `SUBMISSION_ID` with the printed ID. Continue when the count reaches zer
98158Once the cache is ready:
99159
100160``` bash
101- python benchmarks/robotwin/labtasker_submit.py --mode demo_clean \
161+ python benchmarks/robotwin/labtasker_submit.py --auto-start-local-server -- mode demo_clean \
102162 -- --ckpt-dir /path/to/checkpoint
103163```
104164
0 commit comments