v0.5.0: v5, the lines port, leads the Space
Browse files- Dockerfile +1 -1
- README.md +38 -28
- start.sh +1 -1
- thumbnail.jpg +2 -2
Dockerfile
CHANGED
|
@@ -6,7 +6,7 @@ USER user
|
|
| 6 |
ENV HOME=/home/user PATH=/home/user/.local/bin:$PATH
|
| 7 |
WORKDIR /home/user/app
|
| 8 |
RUN pip install --user "huggingface_hub>=1,<2" \
|
| 9 |
-
"agentenv-portsim @ https://github.com/earakely-scale/agentenv-portsim-plugin/archive/refs/tags/v0.
|
| 10 |
COPY --chown=user start.sh .
|
| 11 |
EXPOSE 7860
|
| 12 |
CMD ["sh", "start.sh"]
|
|
|
|
| 6 |
ENV HOME=/home/user PATH=/home/user/.local/bin:$PATH
|
| 7 |
WORKDIR /home/user/app
|
| 8 |
RUN pip install --user "huggingface_hub>=1,<2" \
|
| 9 |
+
"agentenv-portsim @ https://github.com/earakely-scale/agentenv-portsim-plugin/archive/refs/tags/v0.5.0.tar.gz"
|
| 10 |
COPY --chown=user start.sh .
|
| 11 |
EXPOSE 7860
|
| 12 |
CMD ["sh", "start.sh"]
|
README.md
CHANGED
|
@@ -9,7 +9,7 @@ base_path: /viewer/
|
|
| 9 |
pinned: true
|
| 10 |
license: other
|
| 11 |
license_name: cc-by-sa-4.0-cc-by-4.0-meteocat-apache-2.0
|
| 12 |
-
license_link: https://github.com/earakely-scale/agentenv-portsim-plugin/blob/v0.
|
| 13 |
short_description: Port of Barcelona weeks on AgentEnv, replayed in 3D
|
| 14 |
thumbnail: https://huggingface.co/spaces/earakely-scale/PortSimEnv-AgentEnv/resolve/main/thumbnail.jpg
|
| 15 |
tags:
|
|
@@ -21,6 +21,7 @@ tags:
|
|
| 21 |
- agents
|
| 22 |
- weather
|
| 23 |
- forecasting
|
|
|
|
| 24 |
datasets:
|
| 25 |
- earakely-scale/PortSimEnv-AgentEnv
|
| 26 |
---
|
|
@@ -30,10 +31,17 @@ datasets:
|
|
| 30 |
An agent runs one container quay at the Port of Barcelona for a week of 2024 that has just gone wrong, and decides
|
| 31 |
when, where and with how many cranes every ship docks. This Space replays the recorded runs on the
|
| 32 |
[AgentEnv Framework](https://www.agentenvframework.com), on a 3D twin of the quay: twelve models on every wind, marine
|
| 33 |
-
and live week, once each, and GPT-6.1 Sol and Claude Sonnet 5.5 on ten v1
|
|
|
|
| 34 |
and Haiku 5.5; GPT-6 Astra, GPT-6.1 Sol and GPT-6 Luna; Kimi K3, GLM-5.3, GLM-5.3-Flash, Qwen3.8-2.4T and DeepSeek
|
| 35 |
V4.1 Flash on Fireworks; and Qwen3.8-27B on Groq.
|
| 36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
- **v4, the wind port:** the marine week in real Barcelona wind. Each week is moved into a real weather week of 2023
|
| 38 |
to 2025, and the wind that blew at Meteocat's XEMA station Y7 (Bocana Sud), standing in for the Dique Sur
|
| 39 |
anemometer of the port's traffic ordinance, sets its no-movement windows: above 25 kn ships of 300 m or more may not
|
|
@@ -62,7 +70,7 @@ weeks, and a week to replay it. The same board is the dataset's `results` table.
|
|
| 62 |
|
| 63 |
The dataset [earakely-scale/PortSimEnv-AgentEnv](https://huggingface.co/datasets/earakely-scale/PortSimEnv-AgentEnv)
|
| 64 |
holds the weeks, the references, the runs and their transcripts in two kinds of tables: PortSim's own, one family per
|
| 65 |
-
version (`
|
| 66 |
the bundles as agent-env tasks. The environment is the plugin
|
| 67 |
[earakely-scale/agentenv-portsim-plugin](https://github.com/earakely-scale/agentenv-portsim-plugin), built on
|
| 68 |
[PortSimEnv](https://github.com/adithya-s-k/FineEnvs/tree/main/07-simulation-environments/portsim-v1), Adithya S
|
|
@@ -71,7 +79,7 @@ Kolavi's environment in FineEnvs; this viewer is PortSimEnv's.
|
|
| 71 |
| | PortSimEnv in FineEnvs | PortSimEnv on AgentEnv |
|
| 72 |
|---|---|---|
|
| 73 |
| Environment and code | [FineEnvs/PortSimEnv](https://huggingface.co/spaces/FineEnvs/PortSimEnv) (OpenEnv Space), [code](https://github.com/adithya-s-k/FineEnvs/tree/main/07-simulation-environments/portsim-v1) | [earakely-scale/agentenv-portsim-plugin](https://github.com/earakely-scale/agentenv-portsim-plugin) |
|
| 74 |
-
| Eval | [FineEnvs/PortSimEnv-Eval](https://huggingface.co/spaces/FineEnvs/PortSimEnv-Eval) | [the `results` table](https://huggingface.co/datasets/earakely-scale/PortSimEnv-AgentEnv#results), [model board](https://github.com/earakely-scale/agentenv-portsim-plugin/blob/v0.
|
| 75 |
| Dataset | [FineEnvs/PortSimEnv](https://huggingface.co/datasets/FineEnvs/PortSimEnv) | [earakely-scale/PortSimEnv-AgentEnv](https://huggingface.co/datasets/earakely-scale/PortSimEnv-AgentEnv) |
|
| 76 |
| Replays | | this Space |
|
| 77 |
| Article | [Simulation RL Environments, part 1](https://huggingface.co/spaces/FineEnvs/simulation-rl-environments) | |
|
|
@@ -86,62 +94,64 @@ the dataset:
|
|
| 86 |
|
| 87 |
```bash
|
| 88 |
uv tool install agentenv-framework \
|
| 89 |
-
--with "agentenv-portsim @ git+https://github.com/earakely-scale/agentenv-portsim-plugin@v0.
|
| 90 |
agent-env portsim setup --agent # build the env and agent images and register them (a few minutes)
|
| 91 |
agent-env run portsim --task smoke # no model: grades a known optimal plan, prints "passed"
|
| 92 |
|
| 93 |
export HF_TOKEN=hf_... # with "Make calls to Inference Providers", on an account with credits
|
| 94 |
export LITELLM_BASE_URL=https://router.huggingface.co/v1 LITELLM_API_KEY=$HF_TOKEN
|
| 95 |
-
agent-env hf run earakely-scale/PortSimEnv-AgentEnv@v0.
|
| 96 |
-
--model zai-org/GLM-5.3-Flash:baseten # the default bundle: dock-v1-eval-
|
| 97 |
```
|
| 98 |
|
| 99 |
`agent-env hf run` downloads the card and the bundles at that tag, checks that the plugins the card names are
|
| 100 |
installed, shows what it will run and asks first (`--yes` skips the question). `dock-36A-w06x1-standard-0-e07` is the
|
| 101 |
-
shortest wind week, 4 watches, and each task stops an episode before it could spend $5. To replay your own
|
| 102 |
-
same viewer, locally, play them as a sweep:
|
| 103 |
|
| 104 |
```bash
|
| 105 |
-
agent-env portsim sweep run --
|
| 106 |
--tasks dock-36A-w06x1-standard-0-e07 --episode-cap-usd 1 --cap-usd 3
|
| 107 |
agent-env portsim view mine # at http://127.0.0.1:8237/viewer/
|
| 108 |
```
|
| 109 |
|
| 110 |
The [dataset card](https://huggingface.co/datasets/earakely-scale/PortSimEnv-AgentEnv#play-a-week-yourself) has more:
|
| 111 |
-
the v3, v2 and v1 bundles and the other open models. If a step fails, see the plugin README's
|
| 112 |
-
[troubleshooting](https://github.com/earakely-scale/agentenv-portsim-plugin/blob/v0.
|
| 113 |
|
| 114 |
## How this Space runs
|
| 115 |
|
| 116 |
-
`start.sh` downloads the recorded sweeps (`runs/`) from the dataset at its `v0.
|
| 117 |
-
`agent-env portsim view`, installed from the plugin's `v0.
|
| 118 |
through its week from the recorded tool calls. The 3D twin is downloaded from PortSimEnv's public bucket at start.
|
| 119 |
|
| 120 |
## Licence and attribution
|
| 121 |
|
| 122 |
-
- **Tasks and transcripts:** CC BY-SA 4.0, except
|
| 123 |
-
which Adithya S Kolavi built from the Port of Barcelona's 2024 container calls; the other traffic in v3
|
| 124 |
-
derived from `Barcelona_2024.csv` in
|
| 125 |
[alberto-santini/berth-allocation-problems](https://github.com/alberto-santini/berth-allocation-problems) (CC BY-SA
|
| 126 |
4.0). Contains data from the [Port de Barcelona open data portal](https://opendata.portdebarcelona.cat/).
|
| 127 |
-
- **
|
| 128 |
-
|
| 129 |
-
|
|
|
|
|
|
|
| 130 |
([CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)). Disclaimer: ECMWF does not accept any liability
|
| 131 |
whatsoever for any error or omission in the data, their availability, or for any loss or damage arising from their
|
| 132 |
use. This data is based on data and products of the European Centre for Medium-Range Weather Forecasts (ECMWF).
|
| 133 |
Modified: each run's 10 m wind at one grid point, every 3 hours to 72 hours, mapped to the Y7 anemometer by
|
| 134 |
quantiles and rounded to whole knots. [Terms of use](https://apps.ecmwf.int/datasets/licences/general/).
|
| 135 |
-
- **
|
| 136 |
-
Catalunya's (Meteocat) XEMA station Y7, Port de Barcelona – Bocana Sud, in the Generalitat de
|
| 137 |
-
[open data portal](https://analisi.transparenciacatalunya.cat/d/nzvn-apee) (dataset nzvn-apee); no
|
| 138 |
-
included, and they keep the terms published there
|
| 139 |
([Meteocat's legal notice](https://www.meteo.cat/wpweb/avis-legal/)).
|
| 140 |
Font: Servei Meteorològic de Catalunya (Meteocat), estació XEMA Y7; dades extretes el 2026-10-08; finestres derivades.
|
| 141 |
- **The 3D twin:** © OpenStreetMap contributors (ODbL) · terrain: Terrain Tiles (AWS).
|
| 142 |
- **Code:** the plugin and PortSimEnv's viewer are under the Apache License 2.0.
|
| 143 |
|
| 144 |
-
The plugin's [NOTICE](https://github.com/earakely-scale/agentenv-portsim-plugin/blob/v0.
|
| 145 |
-
[data/LICENSE](https://github.com/earakely-scale/agentenv-portsim-plugin/blob/v0.
|
| 146 |
-
This Space is independent: neither the Port de Barcelona, PortSimEnv's author, ECMWF
|
| 147 |
-
it or endorses it.
|
|
|
|
| 9 |
pinned: true
|
| 10 |
license: other
|
| 11 |
license_name: cc-by-sa-4.0-cc-by-4.0-meteocat-apache-2.0
|
| 12 |
+
license_link: https://github.com/earakely-scale/agentenv-portsim-plugin/blob/v0.5.0/data/LICENSE
|
| 13 |
short_description: Port of Barcelona weeks on AgentEnv, replayed in 3D
|
| 14 |
thumbnail: https://huggingface.co/spaces/earakely-scale/PortSimEnv-AgentEnv/resolve/main/thumbnail.jpg
|
| 15 |
tags:
|
|
|
|
| 21 |
- agents
|
| 22 |
- weather
|
| 23 |
- forecasting
|
| 24 |
+
- multi-agent
|
| 25 |
datasets:
|
| 26 |
- earakely-scale/PortSimEnv-AgentEnv
|
| 27 |
---
|
|
|
|
| 31 |
An agent runs one container quay at the Port of Barcelona for a week of 2024 that has just gone wrong, and decides
|
| 32 |
when, where and with how many cranes every ship docks. This Space replays the recorded runs on the
|
| 33 |
[AgentEnv Framework](https://www.agentenvframework.com), on a 3D twin of the quay: twelve models on every wind, marine
|
| 34 |
+
and live week, once each, seven of them so far on every lines week, and GPT-6.1 Sol and Claude Sonnet 5.5 on ten v1
|
| 35 |
+
weeks. The twelve are Claude Opus, Sonnet
|
| 36 |
and Haiku 5.5; GPT-6 Astra, GPT-6.1 Sol and GPT-6 Luna; Kimi K3, GLM-5.3, GLM-5.3-Flash, Qwen3.8-2.4T and DeepSeek
|
| 37 |
V4.1 Flash on Fireworks; and Qwen3.8-27B on Groq.
|
| 38 |
|
| 39 |
+
- **v5, the lines port:** the wind week with the shipping lines answering back. Each ship's agent, the firm the
|
| 40 |
+
port's 2024 record names for its call, is its own A2A agent, which the planner messages: the agents report ETAs that
|
| 41 |
+
firm up as their ships near, and a ship agrees a requested arrival time when it can make it by slowing down. Ships
|
| 42 |
+
berth first come, first served, a ship slowed on request keeping its turn, and an hour at anchor costs what an hour
|
| 43 |
+
late does. As in v4, the week is graded against the lower of the hindsight optimum, which knows every arrival, and
|
| 44 |
+
the best cost of a re-planner that follows the agents' ETAs and asks for arrival times.
|
| 45 |
- **v4, the wind port:** the marine week in real Barcelona wind. Each week is moved into a real weather week of 2023
|
| 46 |
to 2025, and the wind that blew at Meteocat's XEMA station Y7 (Bocana Sud), standing in for the Dique Sur
|
| 47 |
anemometer of the port's traffic ordinance, sets its no-movement windows: above 25 kn ships of 300 m or more may not
|
|
|
|
| 70 |
|
| 71 |
The dataset [earakely-scale/PortSimEnv-AgentEnv](https://huggingface.co/datasets/earakely-scale/PortSimEnv-AgentEnv)
|
| 72 |
holds the weeks, the references, the runs and their transcripts in two kinds of tables: PortSim's own, one family per
|
| 73 |
+
version (`v5_tasks`, `v5_episodes`, `v5_references`, …), and agentenv-hf's standard tables, one pair per bundle, beside
|
| 74 |
the bundles as agent-env tasks. The environment is the plugin
|
| 75 |
[earakely-scale/agentenv-portsim-plugin](https://github.com/earakely-scale/agentenv-portsim-plugin), built on
|
| 76 |
[PortSimEnv](https://github.com/adithya-s-k/FineEnvs/tree/main/07-simulation-environments/portsim-v1), Adithya S
|
|
|
|
| 79 |
| | PortSimEnv in FineEnvs | PortSimEnv on AgentEnv |
|
| 80 |
|---|---|---|
|
| 81 |
| Environment and code | [FineEnvs/PortSimEnv](https://huggingface.co/spaces/FineEnvs/PortSimEnv) (OpenEnv Space), [code](https://github.com/adithya-s-k/FineEnvs/tree/main/07-simulation-environments/portsim-v1) | [earakely-scale/agentenv-portsim-plugin](https://github.com/earakely-scale/agentenv-portsim-plugin) |
|
| 82 |
+
| Eval | [FineEnvs/PortSimEnv-Eval](https://huggingface.co/spaces/FineEnvs/PortSimEnv-Eval) | [the `results` table](https://huggingface.co/datasets/earakely-scale/PortSimEnv-AgentEnv#results), [model board](https://github.com/earakely-scale/agentenv-portsim-plugin/blob/v0.5.0/results/board.md) |
|
| 83 |
| Dataset | [FineEnvs/PortSimEnv](https://huggingface.co/datasets/FineEnvs/PortSimEnv) | [earakely-scale/PortSimEnv-AgentEnv](https://huggingface.co/datasets/earakely-scale/PortSimEnv-AgentEnv) |
|
| 84 |
| Replays | | this Space |
|
| 85 |
| Article | [Simulation RL Environments, part 1](https://huggingface.co/spaces/FineEnvs/simulation-rl-environments) | |
|
|
|
|
| 94 |
|
| 95 |
```bash
|
| 96 |
uv tool install agentenv-framework \
|
| 97 |
+
--with "agentenv-portsim @ git+https://github.com/earakely-scale/agentenv-portsim-plugin@v0.5.0"
|
| 98 |
agent-env portsim setup --agent # build the env and agent images and register them (a few minutes)
|
| 99 |
agent-env run portsim --task smoke # no model: grades a known optimal plan, prints "passed"
|
| 100 |
|
| 101 |
export HF_TOKEN=hf_... # with "Make calls to Inference Providers", on an account with credits
|
| 102 |
export LITELLM_BASE_URL=https://router.huggingface.co/v1 LITELLM_API_KEY=$HF_TOKEN
|
| 103 |
+
agent-env hf run earakely-scale/PortSimEnv-AgentEnv@v0.5.0 --task dock-36A-w06x1-standard-0-e07 \
|
| 104 |
+
--model zai-org/GLM-5.3-Flash:baseten # the default bundle: dock-v1-eval-lines (v5)
|
| 105 |
```
|
| 106 |
|
| 107 |
`agent-env hf run` downloads the card and the bundles at that tag, checks that the plugins the card names are
|
| 108 |
installed, shows what it will run and asks first (`--yes` skips the question). `dock-36A-w06x1-standard-0-e07` is the
|
| 109 |
+
shortest lines and wind week, 4 watches, and each task stops an episode before it could spend $5. To replay your own
|
| 110 |
+
runs on the same viewer, locally, play them as a sweep:
|
| 111 |
|
| 112 |
```bash
|
| 113 |
+
agent-env portsim sweep run --lines --name mine --models zai-org/GLM-5.3-Flash:baseten \
|
| 114 |
--tasks dock-36A-w06x1-standard-0-e07 --episode-cap-usd 1 --cap-usd 3
|
| 115 |
agent-env portsim view mine # at http://127.0.0.1:8237/viewer/
|
| 116 |
```
|
| 117 |
|
| 118 |
The [dataset card](https://huggingface.co/datasets/earakely-scale/PortSimEnv-AgentEnv#play-a-week-yourself) has more:
|
| 119 |
+
the v4, v3, v2 and v1 bundles and the other open models. If a step fails, see the plugin README's
|
| 120 |
+
[troubleshooting](https://github.com/earakely-scale/agentenv-portsim-plugin/blob/v0.5.0/README.md#run-it-yourself).
|
| 121 |
|
| 122 |
## How this Space runs
|
| 123 |
|
| 124 |
+
`start.sh` downloads the recorded sweeps (`runs/`) from the dataset at its `v0.5.0` tag (`--revision v0.5.0`), and
|
| 125 |
+
`agent-env portsim view`, installed from the plugin's `v0.5.0` tag, serves them, replaying each v2 to v5 run
|
| 126 |
through its week from the recorded tool calls. The 3D twin is downloaded from PortSimEnv's public bucket at start.
|
| 127 |
|
| 128 |
## Licence and attribution
|
| 129 |
|
| 130 |
+
- **Tasks and transcripts:** CC BY-SA 4.0, except the weather of v4 and v5 (below). They carry PortSimEnv's dock-v1
|
| 131 |
+
task text, which Adithya S Kolavi built from the Port of Barcelona's 2024 container calls; the other traffic in v3 to
|
| 132 |
+
v5, and v5's ships' agents, are derived from `Barcelona_2024.csv` in
|
| 133 |
[alberto-santini/berth-allocation-problems](https://github.com/alberto-santini/berth-allocation-problems) (CC BY-SA
|
| 134 |
4.0). Contains data from the [Port de Barcelona open data portal](https://opendata.portdebarcelona.cat/).
|
| 135 |
+
- **v5's distances between ports** come from NGA Pub. 151, *Distances Between Ports* (11th edition, 2001), a work of
|
| 136 |
+
the United States government on which no copyright is claimed.
|
| 137 |
+
- **The forecasts of v4 and v5**, in their tasks, transcripts and replays, are modified ECMWF open data. Copyright:
|
| 138 |
+
© 2023-2026 European Centre for Medium-Range Weather Forecasts (ECMWF). Source: [www.ecmwf.int](https://www.ecmwf.int).
|
| 139 |
+
Licence Statement: This data is published under a Creative Commons Attribution 4.0 International
|
| 140 |
([CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)). Disclaimer: ECMWF does not accept any liability
|
| 141 |
whatsoever for any error or omission in the data, their availability, or for any loss or damage arising from their
|
| 142 |
use. This data is based on data and products of the European Centre for Medium-Range Weather Forecasts (ECMWF).
|
| 143 |
Modified: each run's 10 m wind at one grid point, every 3 hours to 72 hours, mapped to the Y7 anemometer by
|
| 144 |
quantiles and rounded to whole knots. [Terms of use](https://apps.ecmwf.int/datasets/licences/general/).
|
| 145 |
+
- **The observed wind windows of v4 and v5**, in their tasks and replays, are derived from the readings of the Servei
|
| 146 |
+
Meteorològic de Catalunya's (Meteocat) XEMA station Y7, Port de Barcelona – Bocana Sud, in the Generalitat de
|
| 147 |
+
Catalunya's [open data portal](https://analisi.transparenciacatalunya.cat/d/nzvn-apee) (dataset nzvn-apee); no
|
| 148 |
+
reading is included, and they keep the terms published there
|
| 149 |
([Meteocat's legal notice](https://www.meteo.cat/wpweb/avis-legal/)).
|
| 150 |
Font: Servei Meteorològic de Catalunya (Meteocat), estació XEMA Y7; dades extretes el 2026-10-08; finestres derivades.
|
| 151 |
- **The 3D twin:** © OpenStreetMap contributors (ODbL) · terrain: Terrain Tiles (AWS).
|
| 152 |
- **Code:** the plugin and PortSimEnv's viewer are under the Apache License 2.0.
|
| 153 |
|
| 154 |
+
The plugin's [NOTICE](https://github.com/earakely-scale/agentenv-portsim-plugin/blob/v0.5.0/NOTICE) and
|
| 155 |
+
[data/LICENSE](https://github.com/earakely-scale/agentenv-portsim-plugin/blob/v0.5.0/data/LICENSE) set out each part.
|
| 156 |
+
This Space is independent: neither the Port de Barcelona, PortSimEnv's author, ECMWF, Meteocat, the NGA nor any
|
| 157 |
+
shipping line or agent named in it is affiliated with it or endorses it.
|
start.sh
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
set -e
|
| 2 |
-
[ -d results/runs ] || hf download earakely-scale/PortSimEnv-AgentEnv --repo-type dataset --revision v0.
|
| 3 |
--local-dir results --quiet
|
| 4 |
exec agent-env portsim view --host 0.0.0.0 --port 7860
|
|
|
|
| 1 |
set -e
|
| 2 |
+
[ -d results/runs ] || hf download earakely-scale/PortSimEnv-AgentEnv --repo-type dataset --revision v0.5.0 --include "runs/*" \
|
| 3 |
--local-dir results --quiet
|
| 4 |
exec agent-env portsim view --host 0.0.0.0 --port 7860
|
thumbnail.jpg
CHANGED
|
|
Git LFS Details
|
|
|
Git LFS Details
|