|
1 | 1 | # MultiNet MiniGrid play API - the backend behind the playable maze on |
2 | 2 | # multinet.ai. |
3 | 3 | # |
4 | | -# Local: |
| 4 | +# Local (init the ogbench submodule first — it carries the R1 maze corpus): |
| 5 | +# git submodule update --init |
5 | 6 | # docker build -t multinet-maze . |
6 | 7 | # docker run -p 8080:8080 -e MULTINET_CORS_ORIGINS=http://127.0.0.1:8899 multinet-maze |
7 | 8 | # |
@@ -43,27 +44,27 @@ RUN pip install --upgrade pip && \ |
43 | 44 | # |
44 | 45 | # demo/data/ carries the vendored R1 results table; there is no sibling |
45 | 46 | # Multinet-v2-results checkout inside an image and R1ResultCatalog raises |
46 | | -# FileNotFoundError without it. mazes/ holds the 42 task JSONs that the |
47 | | -# manifest's `source` fields point at. |
| 47 | +# FileNotFoundError without it. The R1 manifest resolves all 42 playable tasks |
| 48 | +# under ogbench/ogbench/procgen/maze_jsons/ (same corpus as local dev). |
48 | 49 | COPY demo/ ./demo/ |
49 | 50 | COPY gridworld/ ./gridworld/ |
50 | 51 | COPY interface/ ./interface/ |
51 | 52 | COPY pipeline/ ./pipeline/ |
52 | 53 | COPY prompting_experiments/ ./prompting_experiments/ |
53 | 54 | COPY scorer/ ./scorer/ |
54 | 55 | COPY scripts/ ./scripts/ |
55 | | -COPY mazes/ ./mazes/ |
| 56 | +COPY ogbench/ogbench/procgen/maze_jsons/ ./ogbench/ogbench/procgen/maze_jsons/ |
56 | 57 | COPY model_interface.py ./ |
57 | 58 |
|
58 | 59 | # Fail the build rather than the deploy. The task count is asserted, not just |
59 | 60 | # printed: load_manifest_tasks skips manifest rows whose `source` file is |
60 | | -# missing with a warning rather than an error, so a dropped mazes/ directory |
61 | | -# would otherwise produce a container that boots happily and serves zero mazes. |
| 61 | +# missing with a warning rather than an error, so a missing maze corpus would |
| 62 | +# otherwise produce a container that boots happily and serves zero mazes. |
62 | 63 | RUN python -c "\ |
63 | 64 | import demo.api.app; \ |
64 | 65 | from demo.r1_tasks import list_r1_tasks; \ |
65 | 66 | n = len(list_r1_tasks()); \ |
66 | | -assert n == 42, 'expected 42 R1 tasks, got %d - check mazes/ and the manifest' % n; \ |
| 67 | +assert n == 42, 'expected 42 R1 tasks, got %d - check ogbench maze_jsons and the manifest' % n; \ |
67 | 68 | print('import ok,', n, 'tasks')" |
68 | 69 |
|
69 | 70 | # Cloud Run injects PORT and ignores EXPOSE; 8080 is its default and a fine |
|
0 commit comments