Buckets:
| """Manifest for the environment tests (sbcs/envtest.py): every curriculum stage's policy at every environment, and the | |
| final fleets at several traffic volumes. Heavy tests first, so a task's 64 tests take about the same time. | |
| python cluster/envtest_manifest.py manifests/envtest.txt (also writes manifests/envtest_fleets.txt for | |
| cluster/stage_policies.py) | |
| Environments (the usual number of cars is the one the traffic curriculum trained with): | |
| straight road school_street T-junction site_t 4-way crossing cross roundabout roundabout | |
| highway ramp merge diamond interchange site_diamond street grid city@sw full city city | |
| """ | |
| import sys | |
| ENVS = {"school_street": 8, "site_t": 8, "cross": 8, "roundabout": 8, "merge": 8, "site_diamond": 8, "city@sw": 16, | |
| "city": 24} | |
| VOLUMES = {False: (1, 2, 4, 8, 12), True: (1, 8, 16, 24, 32, 48)} # unit scenes (15 spawn slots at the smallest); city | |
| SEEDS = range(1, 6) # every family below has seeds 1-9 | |
| SCHOOL = ("A1-street", "A2-highway", "A3-lanechange", "A4-curves", "A5-turns", "A6-test") | |
| def fleets(s): | |
| """(every stage's policy of seed s, the final ones). Lineage: A1..A6 -> A7 -> curriculum B1 -> B2 -> B3 (no budget, | |
| 1/2, 1/4), or A7 -> direct B3 (-> P: 60M more steps in the city).""" | |
| a7 = f"v6-school-O-full-s{s}-A7-city" | |
| cur = {b: [f"v6-S2-cur-{b}-s{s}-{st}" for st in ("B1-sites", "B2-districts", "B3-city")] | |
| for b in ("none", "d0.00158", "d0.00079")} | |
| final = [a7, *(c[-1] for c in cur.values()), f"v6-S2-dir-none-s{s}-B3-city", f"v6-S2-dir-d0.00158-s{s}-B3-city", | |
| f"v6r2-S2-dir-d0.00079-s{s}-B3-city", f"v6x-pol-std-none-s{s}-P-city", f"v6x-pol-std-d0.00158-s{s}-P-city"] | |
| stages = [f"v5-school-O-full-s{s}-{a}" for a in SCHOOL] + [c for v in cur.values() for c in v[:-1]] | |
| return stages + final, final | |
| def tests(): | |
| out = set() | |
| for s in SEEDS: | |
| every, final = fleets(s) | |
| for scene, usual in ENVS.items(): | |
| out |= {(f, scene, n, 9000 + s) for f in every for n in (1, usual)} # one car: can it drive here at all; | |
| # usual: can it share the road. The same env seed for every policy of a lineage | |
| out |= {(f, scene, n, 9000 + s) for f in final for n in VOLUMES[scene.startswith("city")]} | |
| weight = lambda t: (t[1].startswith("city"), t[2] * max(4, 32 // t[2]), t) # noqa: E731 | |
| return sorted(out, key=weight, reverse=True) | |
| if __name__ == "__main__": | |
| T = tests() | |
| with open(sys.argv[1], "w") as f: | |
| f.writelines(f"{a} {b} {c} {d}\n" for a, b, c, d in T) | |
| with open(sys.argv[1].replace(".txt", "_fleets.txt"), "w") as f: | |
| f.writelines(r + "\n" for r in sorted({t[0] for t in T})) | |
| print(f"{len(T)} tests, {len({t[0] for t in T})} fleets, {-(-len(T) // 64)} tasks of 64") | |
Xet Storage Details
- Size:
- 2.89 kB
- Xet hash:
- 92ccac8996762f9a9f0cd7ca390855398d38ef15f90d24a5fca4d93539d6e8ff
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.