Download code/work/make_smoke_cross.py from bryan7264/lorapop: direct link, hf CLI and curl.
- Browser
- Download file 628 Bytes
-
https://huggingface.co/datasets/bryan7264/lorapop/resolve/main/code/work/make_smoke_cross.py
- Command line
-
hf download hf://datasets/bryan7264/lorapop/code/work/make_smoke_cross.py
-
curl -L -o make_smoke_cross.py https://huggingface.co/datasets/bryan7264/lorapop/resolve/main/code/work/make_smoke_cross.py
628 Bytes
| # MIT License, Bryan Cheng, 2026. Smoke design for cross.py run: 8 offspring of the layer design, parents reduced to 4 | |
| # (indices taken mod 4) so the CPU smoke fits in the 8 GB agent allocation. | |
| import json, os, shutil | |
| D = json.load(open("results/crosses/q05_layer/design.json")) | |
| k = 4 | |
| D["parents"] = D["parents"][:k] | |
| D["assign"] = [[x % k for x in row] for row in D["assign"][:8]] | |
| if os.path.isdir("work/smoke_cross/offspring"): | |
| shutil.rmtree("work/smoke_cross/offspring") | |
| json.dump(D, open("work/smoke_cross/design.json", "w")) | |
| print("parents", D["parents"], "segments", len(D["segments"]), "offspring", len(D["assign"])) | |