Initial upload: MAPF-FrozenLake eval benchmark

#1
by FYYDCC - opened
README.md CHANGED
@@ -1,3 +1,111 @@
1
  ---
2
  license: mit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: mit
3
+ task_categories:
4
+ - text-generation
5
+ language:
6
+ - en
7
+ tags:
8
+ - multi-agent-path-finding
9
+ - mapf
10
+ - planning
11
+ - llm-benchmark
12
+ pretty_name: MAPF-FrozenLake Benchmark
13
+ size_categories:
14
+ - 1K<n<10K
15
+ configs:
16
+ - config_name: wr025
17
+ data_files:
18
+ - split: 3_agents
19
+ path: wr025/3_agents.jsonl
20
+ - split: 4_agents
21
+ path: wr025/4_agents.jsonl
22
+ - split: 5_agents
23
+ path: wr025/5_agents.jsonl
24
+ - config_name: wr050
25
+ data_files:
26
+ - split: 3_agents
27
+ path: wr050/3_agents.jsonl
28
+ - split: 4_agents
29
+ path: wr050/4_agents.jsonl
30
+ - split: 5_agents
31
+ path: wr050/5_agents.jsonl
32
+ - config_name: wr075
33
+ data_files:
34
+ - split: 3_agents
35
+ path: wr075/3_agents.jsonl
36
+ - split: 4_agents
37
+ path: wr075/4_agents.jsonl
38
+ - split: 5_agents
39
+ path: wr075/5_agents.jsonl
40
  ---
41
+
42
+ # MAPF-FrozenLake Benchmark
43
+
44
+ Evaluation benchmark for the paper
45
+ **[From Trainee to Trainer: LLM-Designed Training Environment for RL with Multi-Agent Reasoning](https://github.com/LARK-AI-Lab/Trainee-to-Trainer)**.
46
+
47
+ Three configs (`wr025` / `wr050` / `wr075`) correspond to the
48
+ wait-ratio threshold of the underlying CBS-optimal solution
49
+ (higher = more inter-agent coordination required).
50
+ Each config has three splits by agent count.
51
+
52
+ ## Load
53
+
54
+ ```python
55
+ from datasets import load_dataset
56
+
57
+ ds = load_dataset("LARK-Lab/MAPF-FrozenLake-Benchmark",
58
+ name="wr075", split="5_agents")
59
+ print(ds[0]["text"][:400])
60
+ ```
61
+
62
+ ## Run evaluation
63
+
64
+ Place the benchmark under the
65
+ [Trainee-to-Trainer](https://github.com/LARK-AI-Lab/Trainee-to-Trainer)
66
+ repo root at one of `benchmark_wr025/` / `benchmark_wr050/` /
67
+ `benchmark_wr075/`, with this exact layout:
68
+
69
+ ```
70
+ benchmark_wr075/
71
+ ├── 3_agents/dataset_nl.jsonl
72
+ ├── 4_agents/dataset_nl.jsonl
73
+ └── 5_agents/dataset_nl.jsonl
74
+ ```
75
+
76
+ You can download + lay out everything in one go:
77
+
78
+ ```bash
79
+ hf download LARK-Lab/MAPF-FrozenLake-Benchmark \
80
+ --repo-type dataset --local-dir /tmp/mapf_bench
81
+
82
+ for wr in wr025 wr050 wr075; do
83
+ for n in 3 4 5; do
84
+ mkdir -p benchmark_${wr}/${n}_agents
85
+ cp /tmp/mapf_bench/${wr}/${n}_agents.jsonl \
86
+ benchmark_${wr}/${n}_agents/dataset_nl.jsonl
87
+ done
88
+ done
89
+ ```
90
+
91
+ Then run the evaluators shipped with the code repo:
92
+
93
+ ```bash
94
+ # HuggingFace-format model
95
+ DATA_ROOT=benchmark_wr075 sbatch test_model_hf.sh \
96
+ /path/to/model "3,4,5" "3,4,5,6,7,8,9,10" my_tag
97
+
98
+ # FSDP RL checkpoint
99
+ DATA_ROOT=benchmark_wr075 sbatch test_model_rl.sh \
100
+ /path/to/outputs/.../global_step_XXX
101
+
102
+ # OpenAI-compatible API model
103
+ bash test_model_api.sh <endpoint> <model-id> <api-key>
104
+ ```
105
+
106
+ Each run prints per-(agent-count, map-size) **optimal-rate** and
107
+ **accuracy** at the end of its log.
108
+
109
+ ## License
110
+
111
+ MIT.
wr025/3_agents.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
wr025/4_agents.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
wr025/5_agents.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
wr050/3_agents.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
wr050/4_agents.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
wr050/5_agents.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
wr075/3_agents.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
wr075/4_agents.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
wr075/5_agents.jsonl ADDED
The diff for this file is too large to render. See raw diff