earakely-scale commited on
Commit
2a89b5f
·
verified ·
1 Parent(s): 0bb2d0e

Card: captions in small type, a compact leaderboard table, code that fits the page; eval runs ordered by battery-day, every model on a day together

Browse files
Files changed (2) hide show
  1. README.md +69 -67
  2. leaderboard/v1.parquet +2 -2
README.md CHANGED
@@ -232,15 +232,15 @@ the dollars, with every figure interactive.
232
  A 4-billion-parameter open model, **Qwen3-4B**, trained on this environment's exact grader, went from losing money on a Texas grid battery to **bidding as well as GPT-6 Luna at a quarter of its cost**. It still trails GPT-6.1 Sol, and a free heuristic, by thousands of dollars per MW of battery a year.
233
 
234
  <table>
235
- <tr><td width="50%"><b>0.17 → 0.84</b> of the hindsight optimum captured, before → after training<br><sub>Qwen3-4B bidding blind on 331 battery-days it never saw (18–27 Oct 2026); 0.16 → 0.83 on 300 held-out days of 2025. Doing nothing scores 0.2. Evidence: <a href="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/blob/main/results/train/4b-blind/README.md">run 4</a></sub></td><td width="50%"><b>¼ the cost</b> of GPT-6 Luna at high effort, for the same score<br><sub>0.841 against 0.836, paired +0.005 [−0.036, +0.044], for $0.00047 against $0.0020 a battery-day. GPT-6.1 Sol scores 0.072 more for 33× the cost. Evidence: <a href="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/blob/main/results/cost-matched/README.md">the cost-matched contest</a></sub></td></tr>
236
- <tr><td width="50%"><b>+$41.2k</b> per MW of battery power a year, bought by training<br><sub>From −$14.1k, worse than idle, to $27.1k on ERCOT&#x27;s day-ahead prices of 2025: about $4.1M a year for a 100 MW battery. Still $3.4k below persistence-DP, a free heuristic. Evidence: <a href="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/blob/main/results/economics/README.md">the economics</a></sub></td><td width="50%"><b>+0.041</b> held-out reward from exact DP advantages, where GRPO stalled<br><sub>Registered run 3: +0.041 [+0.011, +0.072] over its warm start, to 0.885. GRPO from the same start: −0.015 [−0.061, +0.030]. Evidence: <a href="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/blob/main/results/train/4b-dpa/README.md">run 3</a> · <a href="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/blob/main/results/train/4b-v2/README.md">run 2</a></sub></td></tr>
237
  </table>
238
 
239
  **Training took Qwen3-4B from below idle to level with GPT-6 Luna**
240
 
241
  ![Before and after training. Blind capture on the 331 newest battery-days: untrained Qwen3-4B 0.171, trained 0.841, GPT-6 Luna 0.836, GPT-6.1 Sol 0.913, persistence-DP 0.871. Blind 2025: 0.164 to 0.828. Foresight 2025: 0.06 to 0.885. In dollars per MW-year on 2025: −$14.1k to $27.1k, against persistence-DP's $30.5k and Sol's $32.1k.](assets/figures/before-after.png)
242
 
243
- <sub>Figure 1 · The same one-call prompt for every model. Top: the share of the hindsight optimum each schedule captures (idle 0.2, perfect hindsight 1.0). Bottom: what the schedules earn at ERCOT's day-ahead prices. GPT-6.1 Sol stays ahead on every row. Lines: 95% CIs. Not drawn: foresight on the newest days, where the untrained 4B was not run. There GPT-6 Luna is ahead of the trained 4B, 0.958 against 0.855, paired −0.102 [−0.123, −0.083]. Sources: [results/train/4b-blind](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/train/4b-blind), [results/train/4b-dpa](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/train/4b-dpa), [results/cost-matched](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/cost-matched) and [results/economics](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/economics).</sub>
244
  <!-- /glance -->
245
 
246
  ---
@@ -251,7 +251,8 @@ Python 3.11.4 or newer. The plugin brings the grader, `gridsim_core`; the first
251
  no Docker.
252
 
253
  ```bash
254
- pip install datasets "agentenv-gridsim @ git+https://github.com/earakely-scale/agentenv-gridsim-plugin"
 
255
  ```
256
 
257
  **Load the tables.** The default config is the leaderboard; name the others.
@@ -260,10 +261,10 @@ pip install datasets "agentenv-gridsim @ git+https://github.com/earakely-scale/a
260
  from datasets import load_dataset
261
 
262
  repo = "earakely-scale/GridSimEnv-AgentEnv"
263
- board = load_dataset(repo, "leaderboard", split="v1") # every model and baseline
264
- runs = load_dataset(repo, "eval_runs", split="blind_fresh") # each model's schedule, day by day
265
- days = load_dataset(repo, "v1_tasks", split="eval_2025") # held-out battery-days, with prompts
266
- refs = load_dataset(repo, "v1_references", split="eval_2025") # the DP optimum and the baselines
267
 
268
  top = board.to_pandas().query("pack == 'blind_fresh'")
269
  print(top[["model", "effort", "score", "usd_per_battery_day"]])
@@ -321,8 +322,8 @@ trainer.train()
321
  three tools. The first check needs no model key.
322
 
323
  ```bash
324
- uv tool install agentenv-framework \
325
- --with "agentenv-gridsim @ git+https://github.com/earakely-scale/agentenv-gridsim-plugin"
326
  agent-env gridsim setup --agent # build the env and agent images
327
  agent-env run gridsim --task smoke # a fixture day, its optimum: passed
328
  ```
@@ -349,7 +350,8 @@ agent-env run results/bundles/ercot-dam-v1-eval-blind-full \
349
  Sweep a model over a pack under a spend cap, then write the board, the Episode JSON and the replays:
350
 
351
  ```bash
352
- agent-env gridsim sweep run --name mine --models openai/gpt-6.1-sol --tasks 20 --cap-usd 5
 
353
  agent-env gridsim sweep report mine # results/eval-v1.json and results/board.md
354
  agent-env gridsim episodes mine # Episode JSON under results/runs/mine/
355
  agent-env gridsim view # the viewer on http://127.0.0.1:8239/
@@ -373,22 +375,20 @@ bundle published with a dataset. This dataset publishes none yet, so play the pa
373
  | `v1_references` | `train` (20,000), `eval_2025` (500), `eval_iid` (500), `rtcb` (250), `showcase` (761) | Per battery-day: the DP optimum and its schedule, idle, the LP bound, the clock, threshold, greedy and random schedules, and at the blind tier the persistence and ridge plans and the anchor | grading without the plugin; baselines |
374
  | `v1_episodes` | `eval_2025` (1,338), `rtcb` (250), `showcase` (10), `train` (7) | 1,605 recorded runs, each with every tool call and its output, the grade and the transcript as chat messages | transcripts for SFT and analysis; replays |
375
 
376
- The v1 splits are by date, so 2025 and later never reach `train`: `train` is 2014 to 2024 (20,000 battery-days, 6,000
377
- of them also blind), `eval_2025` January to November 2025 (500, 300 also blind), `eval_iid` reserved dates of 2014 to
378
- 2024, every 10th calendar day (500, foresight only), and `rtcb` the days after ERCOT's real-time co-optimization went
379
- live on 5 December 2025, to 17 October 2026 (250, 202 also blind). The showcase days are a config of their own, so they
380
- never mix into a split.
381
-
382
- <!-- packs -->
383
- The four evaluation packs name `leaderboard`'s `pack` column and `eval_runs`' splits: `blind_fresh`, ERCOT's 331 newest battery-days at the blind tier (18–27 Oct 2026, the newest days at the time of the runs); `blind_eval_2025`, 300 held-out battery-days of 2025 at the blind tier; `foresight_eval_2025`, 200 of 2025's held-out battery-days at the foresight tier, the training runs' held-out set; and `foresight_fresh`, the 362 newest at the foresight tier. The newest days are not in `v1_tasks`: the plugin carries them as the packs `ercot-dam-v1-fresh-2026-10` and `ercot-dam-v1-fresh-2026-10-blind`.
384
- <!-- /packs -->
385
-
386
- Beside the tables, `raw/packs/` holds the five packs exactly as the env loads them, one JSON task per line, with each
387
- pack's manifest and `stats.md`; `runs/` the Episode JSON the [replay
388
- Space](https://huggingface.co/spaces/earakely-scale/GridSimEnv-AgentEnv) reads; `results/` each result folder's README,
389
- summary, figures and per-task records, with `results/overview/results.json` holding every number on this card;
390
- `training/` the earlier training summaries; and `live/` the live board's sealed schedules and settlements. The v2 to
391
- v5 previews have configs of their own, and v4's forecast store and v5's market days are under `raw/`.
392
 
393
  <details>
394
  <summary><b>Every column</b> of every v1 table</summary>
@@ -500,26 +500,26 @@ Every model plays the same one-call harness: the battery and the day's prices in
500
 
501
  **Bidding blind on ERCOT's 331 newest battery-days** (18–27 Oct 2026), best first:
502
 
503
- | Model | Effort | Weights | Score [95% CI] | $ per battery-day | Frontier | Trained 4B − this [95% CI] |
504
- |---|---|---|---|---:|:-:|---|
505
- | *forecaster + exact DP, no LLM* | | | *0.920* [0.893, 0.944] | | | |
506
- | GPT-6.1 Sol | high | API | 0.913 [0.864, 0.949] | $0.0158 | yes | −0.072 [−0.090, −0.050] |
507
- | Beam-1.0 | max | open | 0.890 [0.859, 0.913] | $0.0330 | | −0.049 [−0.101, −0.007] |
508
- | *persistence-DP, no LLM* | | | *0.871* [0.787, 0.936] | | | |
509
- | Beam-1.0 | high | open | 0.861 [0.829, 0.886] | $0.0203 | | −0.020 [−0.047, +0.005] |
510
- | **Qwen3-4B, trained (run 4)** | | open | **0.841** [0.793, 0.873] | $0.00047 | yes | – |
511
- | GPT-6 Luna | high | API | 0.836 [0.800, 0.861] | $0.0020 | | +0.005 [−0.036, +0.044] |
512
- | Beam-1.0 | medium | open | 0.829 [0.808, 0.848] | $0.0115 | | +0.012 [−0.029, +0.045] |
513
- | GPT-6 Luna | medium | API | 0.800 [0.762, 0.832] | $0.0012 | | +0.041 [−0.006, +0.085] |
514
- | Beam-1.0 | low | open | 0.759 [0.726, 0.786] | $0.0056 | | +0.082 [+0.050, +0.112] |
515
- | GPT-6 Luna | low | API | 0.690 [0.657, 0.723] | $0.00052 | | +0.151 [+0.085, +0.197] |
516
- | Qwen3-4B, untrained | | open | 0.171 [0.149, 0.193] | $0.00033 | yes | +0.670 [+0.608, +0.716] |
517
 
518
  **The trained 4B is on the frontier: GPT-6 Luna's score at a quarter of its cost**
519
 
520
  ![Capture against cost per battery-day on a log scale, blind, the 331 newest battery-days. The frontier runs through the untrained 4B (0.171 at $0.00033), the trained 4B (0.841 at $0.00047) and GPT-6.1 Sol (0.913 at $0.0158). GPT-6 Luna at low, medium and high effort and Beam-1.0 at four efforts lie below it. Persistence-DP and a forecaster with the exact DP, which use no LLM, are drawn as lines at 0.871 and 0.920.](assets/figures/frontier.png)
521
 
522
- <sub>Figure 2 · Bidding blind on the 331 newest battery-days, 18–27 October 2026. Each point is one model at one reasoning effort; lines are day-block 95% CIs. Dashed: the frontier, the best capture any model reaches at that cost or less. Sources: [results/cost-matched](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/cost-matched), [results/beam-agent](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/beam-agent) and [results/train/4b-blind](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/train/4b-blind).</sub>
523
 
524
  - **The trained 4B is the cheapest model on the frontier above its untrained base.** It is level with GPT-6 Luna at high effort, +0.005 [−0.036, +0.044], at a quarter of the cost (Luna costs 4.2× as much), and ahead of Luna at low effort, the matched cost (1.1×), by +0.151 [+0.085, +0.197].
525
  - **GPT-6.1 Sol** captures +0.072 [+0.050, +0.090] more, for 33× the cost, and is the best model on every pack.
@@ -534,20 +534,20 @@ Every model plays the same one-call harness: the battery and the day's prices in
534
 
535
  | Model | Blind, newest days (331) | Blind, held-out 2025 (300) | Foresight, held-out 2025 (200) | Foresight, newest days (362) |
536
  |---|---|---|---|---|
537
- | *forecaster + exact DP, no LLM* | 0.920<br><sub>[0.893, 0.944]</sub> | 0.912<br><sub>[0.895, 0.927]</sub> | – | – |
538
- | GPT-6.1 Sol, high | 0.913<br><sub>[0.864, 0.949]</sub> | 0.903<br><sub>[0.883, 0.921]</sub> | 1.000<br><sub>[1.000, 1.000]</sub> | 1.000<br><sub>[1.000, 1.000]</sub> |
539
- | Beam-1.0, max | 0.890<br><sub>[0.859, 0.913]</sub> | – | – | – |
540
- | *persistence-DP, no LLM* | 0.871<br><sub>[0.787, 0.936]</sub> | 0.882<br><sub>[0.860, 0.902]</sub> | – | – |
541
- | Beam-1.0, high | 0.861<br><sub>[0.829, 0.886]</sub> | – | – | – |
542
- | **Qwen3-4B, trained** | 0.841<br><sub>[0.793, 0.873]</sub> | 0.828<br><sub>[0.801, 0.853]</sub> | 0.885<br><sub>[0.856, 0.911]</sub> | 0.855<br><sub>[0.839, 0.872]</sub> |
543
- | GPT-6 Luna, high | 0.836<br><sub>[0.800, 0.861]</sub> | 0.829<br><sub>[0.806, 0.850]</sub> | 0.913<br><sub>[0.881, 0.942]</sub> | 0.958<br><sub>[0.945, 0.970]</sub> |
544
- | Beam-1.0, medium | 0.829<br><sub>[0.808, 0.848]</sub> | – | – | – |
545
- | GPT-6 Luna, medium | 0.800<br><sub>[0.762, 0.832]</sub> | – | – | – |
546
- | Beam-1.0, low | 0.759<br><sub>[0.726, 0.786]</sub> | – | – | – |
547
- | GPT-6 Luna, low | 0.690<br><sub>[0.657, 0.723]</sub> | 0.682<br><sub>[0.651, 0.713]</sub> | 0.768<br><sub>[0.726, 0.807]</sub> | 0.797<br><sub>[0.764, 0.829]</sub> |
548
- | Qwen3-4B, untrained | 0.171<br><sub>[0.149, 0.193]</sub> | 0.164<br><sub>[0.154, 0.174]</sub> | 0.061<br><sub>[0.048, 0.074]</sub> | – |
549
- | *greedy rule, no LLM* | – | – | 0.764<br><sub>[0.719, 0.808]</sub> | 0.716<br><sub>[0.591, 0.821]</sub> |
550
- | *threshold rule, no LLM* | – | – | 0.637<br><sub>[0.599, 0.673]</sub> | 0.740<br><sub>[0.664, 0.805]</sub> |
551
 
552
  Blind packs score hindsight capture `r_opt`, foresight packs the reward R; both put idle at 0.2 and the optimum at 1. Brackets: day-block bootstrap 95% CIs. The trained 4B is run 4 on the blind packs and run 3 at foresight. The `leaderboard` config has every row with its cost, validity and source, and `eval_runs` every schedule behind it.
553
 
@@ -615,7 +615,7 @@ Qwen3-4B (thinking off, LoRA adapters, one GPU at a time) trains on battery-days
615
 
616
  ![Held-out reward against training step on 200 foresight days of 2025: run 3 with exact DP advantages from 0.844 to 0.885; run 2, GRPO from the same warm start, from 0.841 to 0.825; run 1, GRPO from a weaker warm start, from 0.666 to 0.804. Reference lines: GPT-6.1 Sol 1.000, GPT-6 Luna 0.913, the greedy rule 0.764.](assets/figures/training.png)
617
 
618
- <sub>Figure 3 · Foresight tier: held-out reward R on the same 200 battery-days of 2025, sampled at temperature 0.7. Run 3's band is the 95% CI at each checkpoint; runs 1 and 2 were scored on all 200 days at their start and end only. Labels: the registered paired change, end minus start. Sources: [results/train/4b](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/train/4b), [results/train/4b-v2](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/train/4b-v2) and [results/train/4b-dpa](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/train/4b-dpa).</sub>
619
 
620
  ### Blind: forecast, then plan
621
 
@@ -625,7 +625,7 @@ Run 4's written forecasts miss by 9.79 $/MWh over all hours, against its teacher
625
 
626
  ![Run 4 on blind 2025: after SFT 0.822, after RL 0.828, the exact DP on its own written forecast 0.907, the teacher's forecast with the DP 0.912, GPT-6.1 Sol 0.903; on the newest days 0.818, 0.841, 0.911, 0.920 and 0.913.](assets/figures/planning.png)
627
 
628
- <sub>Figure 4 · Run 4 writes a 24-hour price forecast, then its schedule. Planned by the exact DP, its own forecasts would capture as much as GPT-6.1 Sol; its own schedules capture less. Dots: capture; lines: day-block 95% CIs. Sources: [results/train/4b-blind](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/train/4b-blind).</sub>
629
 
630
  ### Before and after, pack by pack
631
 
@@ -772,7 +772,7 @@ Every recorded blind schedule settled again at ERCOT's day-ahead prices, its pro
772
 
773
  ![Dollars per MW of battery power per year on blind 2025: GPT-6.1 Sol $32.1k; persistence-DP $30.5k; GPT-6 Luna (high) $28.7k; trained Qwen3-4B $27.1k; ridge-DP $26.3k; greedy rule on yesterday's prices $21.8k; GPT-6 Luna (low) $20.2k; threshold rule on yesterday's prices $16.2k; idle −$7.8k; untrained Qwen3-4B −$14.1k; the hindsight optimum $37.0k.](assets/figures/ladder.png)
774
 
775
- <sub>Figure 5 · Every recorded blind schedule of 2025 settled again at ERCOT's day-ahead prices (300 battery-days on 191 days), its profit per MW of battery power × 365. Lines: day-block 95% CIs. Day-ahead energy arbitrage only. Sources: [results/economics](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/economics), a descriptive re-analysis.</sub>
776
 
777
  - **Training bought +$41.2k per MW-year [+36.6, +46.1]** on 2025's days (+$31.2k [+22.0, +40.9] on the newest): from −$14.1k, worse than idle, to $27.1k, about $4.1M a year for a 100 MW battery.
778
  - **The trained 4B still earns less than persistence-DP**, the exact DP on yesterday's prices: −$3.4k [−5.6, −1.5] per MW-year on 2025 (−$2.1k [−4.4, +0.2] on the newest days, not separated). **GPT-6.1 Sol beats it by +$1.6k [+0.8, +2.4]** (+$1.4k [+0.3, +2.7]), about $156k a year for a 100 MW battery.
@@ -794,7 +794,7 @@ Split 2025's 191 days into quartiles by how far the day's 24 hourly prices move
794
 
795
  ![Gain over persistence-DP in $ per MW-day by quartile of how much the day's price shape changes, blind 2025. Q1: Sol +0.2, Luna −9.5, trained 4B −13.0, room 3.7; Q2: Sol +0.9, Luna −10.4, trained 4B −22.6, room 10.5; Q3: Sol +3.7, Luna −3.1, trained 4B −1.4, room 16.7; Q4: Sol +12.7, Luna +3.4, trained 4B +0.0, room 41.6.](assets/figures/regimes.png)
796
 
797
- <sub>Figure 6 · Blind, 2025: the 191 days split into quartiles by how far the day's 24 hourly prices move from the day before's shape (1 − Pearson r). Grey: what persistence-DP left below the hindsight optimum. Points: each model minus persistence-DP in $ per MW of battery power per day, with day-block 95% CIs. Sources: [results/economics](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/economics), a descriptive re-analysis.</sub>
798
 
799
  <details>
800
  <summary><b>Every policy in dollars</b>, on both blind packs</summary>
@@ -1663,16 +1663,18 @@ Environmental Mesonet's ASOS archive (Iowa State University), credited there.
1663
  `scripts/hub_dataset.py` in the plugin builds this dataset, after agentenv-hf's scan of every file for keys and token
1664
  shapes. Neither ERCOT, NOAA, the EIA, the NWS nor the IEM is affiliated with it or endorses it.
1665
 
 
 
1666
  ## Citation
1667
 
1668
  ```bibtex
1669
  @misc{gridsimenv2026,
1670
- title = {{GridSimEnv}: run a grid battery on the real {Texas}
1671
- day-ahead market, an {AgentEnv} environment},
1672
- author = {Arakelyan, Edgar and Kolavi, Adithya S},
1673
- year = {2026},
1674
- howpublished = {\url{https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv}},
1675
- note = {GridSimEnv v1, The Battery Desk. Prices: ERCOT NP4-180-ER.
1676
- Code: \url{https://github.com/earakely-scale/agentenv-gridsim-plugin}}
1677
  }
1678
  ```
 
232
  A 4-billion-parameter open model, **Qwen3-4B**, trained on this environment's exact grader, went from losing money on a Texas grid battery to **bidding as well as GPT-6 Luna at a quarter of its cost**. It still trails GPT-6.1 Sol, and a free heuristic, by thousands of dollars per MW of battery a year.
233
 
234
  <table>
235
+ <tr><td width="50%"><b>0.17 → 0.84</b> of the hindsight optimum captured, before → after training<br><small>Qwen3-4B bidding blind on 331 battery-days it never saw (18–27 Oct 2026); 0.16 → 0.83 on 300 held-out days of 2025. Doing nothing scores 0.2. Evidence: <a href="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/blob/main/results/train/4b-blind/README.md">run 4</a></small></td><td width="50%"><b>¼ the cost</b> of GPT-6 Luna at high effort, for the same score<br><small>0.841 against 0.836, paired +0.005 [−0.036, +0.044], for $0.00047 against $0.0020 a battery-day. GPT-6.1 Sol scores 0.072 more for 33× the cost. Evidence: <a href="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/blob/main/results/cost-matched/README.md">the cost-matched contest</a></small></td></tr>
236
+ <tr><td width="50%"><b>+$41.2k</b> per MW of battery power a year, bought by training<br><small>From −$14.1k, worse than idle, to $27.1k on ERCOT&#x27;s day-ahead prices of 2025: about $4.1M a year for a 100 MW battery. Still $3.4k below persistence-DP, a free heuristic. Evidence: <a href="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/blob/main/results/economics/README.md">the economics</a></small></td><td width="50%"><b>+0.041</b> held-out reward from exact DP advantages, where GRPO stalled<br><small>Registered run 3: +0.041 [+0.011, +0.072] over its warm start, to 0.885. GRPO from the same start: −0.015 [−0.061, +0.030]. Evidence: <a href="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/blob/main/results/train/4b-dpa/README.md">run 3</a> · <a href="https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/blob/main/results/train/4b-v2/README.md">run 2</a></small></td></tr>
237
  </table>
238
 
239
  **Training took Qwen3-4B from below idle to level with GPT-6 Luna**
240
 
241
  ![Before and after training. Blind capture on the 331 newest battery-days: untrained Qwen3-4B 0.171, trained 0.841, GPT-6 Luna 0.836, GPT-6.1 Sol 0.913, persistence-DP 0.871. Blind 2025: 0.164 to 0.828. Foresight 2025: 0.06 to 0.885. In dollars per MW-year on 2025: −$14.1k to $27.1k, against persistence-DP's $30.5k and Sol's $32.1k.](assets/figures/before-after.png)
242
 
243
+ <small>Figure 1 · The same one-call prompt for every model. Top: the share of the hindsight optimum each schedule captures (idle 0.2, perfect hindsight 1.0). Bottom: what the schedules earn at ERCOT's day-ahead prices. GPT-6.1 Sol stays ahead on every row. Lines: 95% CIs. Not drawn: foresight on the newest days, where the untrained 4B was not run. There GPT-6 Luna is ahead of the trained 4B, 0.958 against 0.855, paired −0.102 [−0.123, −0.083]. Sources: [results/train/4b-blind](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/train/4b-blind), [results/train/4b-dpa](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/train/4b-dpa), [results/cost-matched](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/cost-matched) and [results/economics](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/economics).</small>
244
  <!-- /glance -->
245
 
246
  ---
 
251
  no Docker.
252
 
253
  ```bash
254
+ pip install datasets \
255
+ "agentenv-gridsim @ git+https://github.com/earakely-scale/agentenv-gridsim-plugin"
256
  ```
257
 
258
  **Load the tables.** The default config is the leaderboard; name the others.
 
261
  from datasets import load_dataset
262
 
263
  repo = "earakely-scale/GridSimEnv-AgentEnv"
264
+ board = load_dataset(repo, "leaderboard", split="v1") # models, baselines
265
+ runs = load_dataset(repo, "eval_runs", split="blind_fresh") # every schedule
266
+ days = load_dataset(repo, "v1_tasks", split="eval_2025") # days and prompts
267
+ refs = load_dataset(repo, "v1_references", split="eval_2025") # optimum, baselines
268
 
269
  top = board.to_pandas().query("pack == 'blind_fresh'")
270
  print(top[["model", "effort", "score", "usd_per_battery_day"]])
 
322
  three tools. The first check needs no model key.
323
 
324
  ```bash
325
+ uv tool install agentenv-framework --with \
326
+ "agentenv-gridsim @ git+https://github.com/earakely-scale/agentenv-gridsim-plugin"
327
  agent-env gridsim setup --agent # build the env and agent images
328
  agent-env run gridsim --task smoke # a fixture day, its optimum: passed
329
  ```
 
350
  Sweep a model over a pack under a spend cap, then write the board, the Episode JSON and the replays:
351
 
352
  ```bash
353
+ agent-env gridsim sweep run --name mine --models openai/gpt-6.1-sol \
354
+ --tasks 20 --cap-usd 5
355
  agent-env gridsim sweep report mine # results/eval-v1.json and results/board.md
356
  agent-env gridsim episodes mine # Episode JSON under results/runs/mine/
357
  agent-env gridsim view # the viewer on http://127.0.0.1:8239/
 
375
  | `v1_references` | `train` (20,000), `eval_2025` (500), `eval_iid` (500), `rtcb` (250), `showcase` (761) | Per battery-day: the DP optimum and its schedule, idle, the LP bound, the clock, threshold, greedy and random schedules, and at the blind tier the persistence and ridge plans and the anchor | grading without the plugin; baselines |
376
  | `v1_episodes` | `eval_2025` (1,338), `rtcb` (250), `showcase` (10), `train` (7) | 1,605 recorded runs, each with every tool call and its output, the grade and the transcript as chat messages | transcripts for SFT and analysis; replays |
377
 
378
+ - **The v1 splits are by date,** so 2025 and later never reach `train`: `train` is 2014 to 2024 (20,000 battery-days,
379
+ 6,000 of them also blind), `eval_2025` January to November 2025 (500, 300 also blind), `eval_iid` reserved dates of
380
+ 2014 to 2024, every 10th calendar day (500, foresight only), and `rtcb` the days after ERCOT's real-time
381
+ co-optimization went live on 5 December 2025, to 17 October 2026 (250, 202 also blind). The showcase days are a
382
+ config of their own, so they never mix into a split.
383
+ <!-- packs -->
384
+ - **The four evaluation packs** name `leaderboard`'s `pack` column and `eval_runs`' splits: `blind_fresh`, ERCOT's 331 newest battery-days at the blind tier (18–27 Oct 2026, the newest days at the time of the runs); `blind_eval_2025`, 300 held-out battery-days of 2025 at the blind tier; `foresight_eval_2025`, 200 of 2025's held-out battery-days at the foresight tier, the training runs' held-out set; and `foresight_fresh`, the 362 newest at the foresight tier. The newest days are not in `v1_tasks`: the plugin carries them as the packs `ercot-dam-v1-fresh-2026-10` and `ercot-dam-v1-fresh-2026-10-blind`.
385
+ <!-- /packs -->
386
+ - **Beside the tables,** `raw/packs/` holds the five packs exactly as the env loads them, one JSON task per line, with
387
+ each pack's manifest and `stats.md`; `runs/` the Episode JSON the [replay
388
+ Space](https://huggingface.co/spaces/earakely-scale/GridSimEnv-AgentEnv) reads; `results/` each result folder's
389
+ README, summary, figures and per-task records, with `results/overview/results.json` holding every number on this
390
+ card; `training/` the earlier training summaries; and `live/` the live board's sealed schedules and settlements. The
391
+ v2 to v5 previews have configs of their own, and v4's forecast store and v5's market days are under `raw/`.
 
 
392
 
393
  <details>
394
  <summary><b>Every column</b> of every v1 table</summary>
 
500
 
501
  **Bidding blind on ERCOT's 331 newest battery-days** (18–27 Oct 2026), best first:
502
 
503
+ | Model, effort | Score | 95% CI | $ per battery-day | Weights | Frontier | Trained 4B − this [95% CI] |
504
+ |---|---|---|---:|---|---|---|
505
+ | *forecaster + exact DP (no LLM)* | *0.920* | *[0.893, 0.944]* | – | – | – | – |
506
+ | GPT-6.1 Sol, high | 0.913 | [0.864, 0.949] | $0.0158 | API | yes | −0.072 [−0.090, −0.050] |
507
+ | Beam-1.0, max | 0.890 | [0.859, 0.913] | $0.0330 | open | – | −0.049 [−0.101, −0.007] |
508
+ | *persistence-DP (no LLM)* | *0.871* | *[0.787, 0.936]* | – | – | – | – |
509
+ | Beam-1.0, high | 0.861 | [0.829, 0.886] | $0.0203 | open | – | −0.020 [−0.047, +0.005] |
510
+ | **Qwen3-4B, trained (run 4)** | **0.841** | [0.793, 0.873] | $0.00047 | open | yes | – |
511
+ | GPT-6 Luna, high | 0.836 | [0.800, 0.861] | $0.0020 | API | – | +0.005 [−0.036, +0.044] |
512
+ | Beam-1.0, medium | 0.829 | [0.808, 0.848] | $0.0115 | open | – | +0.012 [−0.029, +0.045] |
513
+ | GPT-6 Luna, medium | 0.800 | [0.762, 0.832] | $0.0012 | API | – | +0.041 [−0.006, +0.085] |
514
+ | Beam-1.0, low | 0.759 | [0.726, 0.786] | $0.0056 | open | – | +0.082 [+0.050, +0.112] |
515
+ | GPT-6 Luna, low | 0.690 | [0.657, 0.723] | $0.00052 | API | – | +0.151 [+0.085, +0.197] |
516
+ | Qwen3-4B, untrained | 0.171 | [0.149, 0.193] | $0.00033 | open | yes | +0.670 [+0.608, +0.716] |
517
 
518
  **The trained 4B is on the frontier: GPT-6 Luna's score at a quarter of its cost**
519
 
520
  ![Capture against cost per battery-day on a log scale, blind, the 331 newest battery-days. The frontier runs through the untrained 4B (0.171 at $0.00033), the trained 4B (0.841 at $0.00047) and GPT-6.1 Sol (0.913 at $0.0158). GPT-6 Luna at low, medium and high effort and Beam-1.0 at four efforts lie below it. Persistence-DP and a forecaster with the exact DP, which use no LLM, are drawn as lines at 0.871 and 0.920.](assets/figures/frontier.png)
521
 
522
+ <small>Figure 2 · Bidding blind on the 331 newest battery-days, 18–27 October 2026. Each point is one model at one reasoning effort; lines are day-block 95% CIs. Dashed: the frontier, the best capture any model reaches at that cost or less. Sources: [results/cost-matched](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/cost-matched), [results/beam-agent](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/beam-agent) and [results/train/4b-blind](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/train/4b-blind).</small>
523
 
524
  - **The trained 4B is the cheapest model on the frontier above its untrained base.** It is level with GPT-6 Luna at high effort, +0.005 [−0.036, +0.044], at a quarter of the cost (Luna costs 4.2× as much), and ahead of Luna at low effort, the matched cost (1.1×), by +0.151 [+0.085, +0.197].
525
  - **GPT-6.1 Sol** captures +0.072 [+0.050, +0.090] more, for 33× the cost, and is the best model on every pack.
 
534
 
535
  | Model | Blind, newest days (331) | Blind, held-out 2025 (300) | Foresight, held-out 2025 (200) | Foresight, newest days (362) |
536
  |---|---|---|---|---|
537
+ | *forecaster + exact DP (no LLM)* | 0.920<br><small>[0.893, 0.944]</small> | 0.912<br><small>[0.895, 0.927]</small> | – | – |
538
+ | GPT-6.1 Sol, high | 0.913<br><small>[0.864, 0.949]</small> | 0.903<br><small>[0.883, 0.921]</small> | 1.000<br><small>[1.000, 1.000]</small> | 1.000<br><small>[1.000, 1.000]</small> |
539
+ | Beam-1.0, max | 0.890<br><small>[0.859, 0.913]</small> | – | – | – |
540
+ | *persistence-DP (no LLM)* | 0.871<br><small>[0.787, 0.936]</small> | 0.882<br><small>[0.860, 0.902]</small> | – | – |
541
+ | Beam-1.0, high | 0.861<br><small>[0.829, 0.886]</small> | – | – | – |
542
+ | **Qwen3-4B, trained** | 0.841<br><small>[0.793, 0.873]</small> | 0.828<br><small>[0.801, 0.853]</small> | 0.885<br><small>[0.856, 0.911]</small> | 0.855<br><small>[0.839, 0.872]</small> |
543
+ | GPT-6 Luna, high | 0.836<br><small>[0.800, 0.861]</small> | 0.829<br><small>[0.806, 0.850]</small> | 0.913<br><small>[0.881, 0.942]</small> | 0.958<br><small>[0.945, 0.970]</small> |
544
+ | Beam-1.0, medium | 0.829<br><small>[0.808, 0.848]</small> | – | – | – |
545
+ | GPT-6 Luna, medium | 0.800<br><small>[0.762, 0.832]</small> | – | – | – |
546
+ | Beam-1.0, low | 0.759<br><small>[0.726, 0.786]</small> | – | – | – |
547
+ | GPT-6 Luna, low | 0.690<br><small>[0.657, 0.723]</small> | 0.682<br><small>[0.651, 0.713]</small> | 0.768<br><small>[0.726, 0.807]</small> | 0.797<br><small>[0.764, 0.829]</small> |
548
+ | Qwen3-4B, untrained | 0.171<br><small>[0.149, 0.193]</small> | 0.164<br><small>[0.154, 0.174]</small> | 0.061<br><small>[0.048, 0.074]</small> | – |
549
+ | *greedy rule (no LLM)* | – | – | 0.764<br><small>[0.719, 0.808]</small> | 0.716<br><small>[0.591, 0.821]</small> |
550
+ | *threshold rule (no LLM)* | – | – | 0.637<br><small>[0.599, 0.673]</small> | 0.740<br><small>[0.664, 0.805]</small> |
551
 
552
  Blind packs score hindsight capture `r_opt`, foresight packs the reward R; both put idle at 0.2 and the optimum at 1. Brackets: day-block bootstrap 95% CIs. The trained 4B is run 4 on the blind packs and run 3 at foresight. The `leaderboard` config has every row with its cost, validity and source, and `eval_runs` every schedule behind it.
553
 
 
615
 
616
  ![Held-out reward against training step on 200 foresight days of 2025: run 3 with exact DP advantages from 0.844 to 0.885; run 2, GRPO from the same warm start, from 0.841 to 0.825; run 1, GRPO from a weaker warm start, from 0.666 to 0.804. Reference lines: GPT-6.1 Sol 1.000, GPT-6 Luna 0.913, the greedy rule 0.764.](assets/figures/training.png)
617
 
618
+ <small>Figure 3 · Foresight tier: held-out reward R on the same 200 battery-days of 2025, sampled at temperature 0.7. Run 3's band is the 95% CI at each checkpoint; runs 1 and 2 were scored on all 200 days at their start and end only. Labels: the registered paired change, end minus start. Sources: [results/train/4b](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/train/4b), [results/train/4b-v2](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/train/4b-v2) and [results/train/4b-dpa](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/train/4b-dpa).</small>
619
 
620
  ### Blind: forecast, then plan
621
 
 
625
 
626
  ![Run 4 on blind 2025: after SFT 0.822, after RL 0.828, the exact DP on its own written forecast 0.907, the teacher's forecast with the DP 0.912, GPT-6.1 Sol 0.903; on the newest days 0.818, 0.841, 0.911, 0.920 and 0.913.](assets/figures/planning.png)
627
 
628
+ <small>Figure 4 · Run 4 writes a 24-hour price forecast, then its schedule. Planned by the exact DP, its own forecasts would capture as much as GPT-6.1 Sol; its own schedules capture less. Dots: capture; lines: day-block 95% CIs. Sources: [results/train/4b-blind](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/train/4b-blind).</small>
629
 
630
  ### Before and after, pack by pack
631
 
 
772
 
773
  ![Dollars per MW of battery power per year on blind 2025: GPT-6.1 Sol $32.1k; persistence-DP $30.5k; GPT-6 Luna (high) $28.7k; trained Qwen3-4B $27.1k; ridge-DP $26.3k; greedy rule on yesterday's prices $21.8k; GPT-6 Luna (low) $20.2k; threshold rule on yesterday's prices $16.2k; idle −$7.8k; untrained Qwen3-4B −$14.1k; the hindsight optimum $37.0k.](assets/figures/ladder.png)
774
 
775
+ <small>Figure 5 · Every recorded blind schedule of 2025 settled again at ERCOT's day-ahead prices (300 battery-days on 191 days), its profit per MW of battery power × 365. Lines: day-block 95% CIs. Day-ahead energy arbitrage only. Sources: [results/economics](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/economics), a descriptive re-analysis.</small>
776
 
777
  - **Training bought +$41.2k per MW-year [+36.6, +46.1]** on 2025's days (+$31.2k [+22.0, +40.9] on the newest): from −$14.1k, worse than idle, to $27.1k, about $4.1M a year for a 100 MW battery.
778
  - **The trained 4B still earns less than persistence-DP**, the exact DP on yesterday's prices: −$3.4k [−5.6, −1.5] per MW-year on 2025 (−$2.1k [−4.4, +0.2] on the newest days, not separated). **GPT-6.1 Sol beats it by +$1.6k [+0.8, +2.4]** (+$1.4k [+0.3, +2.7]), about $156k a year for a 100 MW battery.
 
794
 
795
  ![Gain over persistence-DP in $ per MW-day by quartile of how much the day's price shape changes, blind 2025. Q1: Sol +0.2, Luna −9.5, trained 4B −13.0, room 3.7; Q2: Sol +0.9, Luna −10.4, trained 4B −22.6, room 10.5; Q3: Sol +3.7, Luna −3.1, trained 4B −1.4, room 16.7; Q4: Sol +12.7, Luna +3.4, trained 4B +0.0, room 41.6.](assets/figures/regimes.png)
796
 
797
+ <small>Figure 6 · Blind, 2025: the 191 days split into quartiles by how far the day's 24 hourly prices move from the day before's shape (1 − Pearson r). Grey: what persistence-DP left below the hindsight optimum. Points: each model minus persistence-DP in $ per MW of battery power per day, with day-block 95% CIs. Sources: [results/economics](https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv/tree/main/results/economics), a descriptive re-analysis.</small>
798
 
799
  <details>
800
  <summary><b>Every policy in dollars</b>, on both blind packs</summary>
 
1663
  `scripts/hub_dataset.py` in the plugin builds this dataset, after agentenv-hf's scan of every file for keys and token
1664
  shapes. Neither ERCOT, NOAA, the EIA, the NWS nor the IEM is affiliated with it or endorses it.
1665
 
1666
+ ---
1667
+
1668
  ## Citation
1669
 
1670
  ```bibtex
1671
  @misc{gridsimenv2026,
1672
+ title = {{GridSimEnv}: run a grid battery on the real {Texas} day-ahead
1673
+ market, an {AgentEnv} environment},
1674
+ author = {Arakelyan, Edgar and Kolavi, Adithya S},
1675
+ year = {2026},
1676
+ url = {https://huggingface.co/datasets/earakely-scale/GridSimEnv-AgentEnv},
1677
+ note = {GridSimEnv v1, The Battery Desk. Prices: ERCOT NP4-180-ER. Code:
1678
+ \url{https://github.com/earakely-scale/agentenv-gridsim-plugin}}
1679
  }
1680
  ```
leaderboard/v1.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:aefb1253d80e84f440a4e0fb5989ecda50eac1a4884ff5d6ee88a4e2c57cbc31
3
- size 5656
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b89270753ab422a2000ad4bf4c129e0f0e6a70a3db3efee4d27d35732b1ce3ea
3
+ size 5684