5d / README.md
igor53627's picture
Add Part 20 oscillator ablation logs and brain/poison tracking_truth runs
5881753 verified
|
Raw History Blame Contribute Delete
7.41 kB
---
license: cc-by-4.0
pretty_name: Hyperlife data (4D/5D Flow-Lenia artificial life)
tags:
- artificial-life
- lenia
- flow-lenia
- cellular-automata
- evolution
- jax
size_categories:
- n<1K
---
# Hyperlife data (4D/5D Flow-Lenia artificial life)
The raw simulation outputs for **Hyperlife**. Hyperlife is an evolutionary Flow-Lenia
automaton in 4–6 spatial dimensions whose cells are Rössler oscillators. It goes from solitons and gliders
through replication and heritable parameters to ecology and agents with heritable micro-brains.
- Code, figures, videos and per-part notes: **https://github.com/igor53627/5d**
- Every `partXX/` folder here matches `experiments/partXX/` in the code repo. The notes (`partXX_notes.md`) and
tables that describe each run are in `experiments/partXX/results/`. The run configurations are `archive/specs/<prefix>.json`.
- The files are the outputs of `modal_app.py` jobs, copied from the Modal Volume `fl-results`. A job has a *prefix* (spec name),
and job *i* writes `<prefix>_<i>.pkl`.
## Layout and contents
| Folder | Files | Size | What it is |
|---|---|---|---|
| `part03/` | 13 | 141 MB | GPU engine (JAX), conditional-Lyapunov homeostasis: `tune2_L8_*`, `final_L{8,12,16}_*`, `alife_L48.pkl` (large 48⁴ run used for rendering) |
| `part04/glider/` | 36 | 351 MB | Glider search and scaling in 4D/5D: `glider_s1..s5_*`, `glider_big1/2_*` |
| `part05/` | 18 | 32 MB | Is there a true glider? `cont/cont1_*` (continuation in `asym`), `es/es1_*` (ES search), `ver/ver1_*`, `ver2_*`, `local_C4D_movie.pkl` (checks), `glider/swim_*` (isolated swimmers) |
| `part06/es5/` | 8 | 5 MB | Long CMA-ES in 5D (self-propelled soliton S1 at asym=0): `es5_*`, `es5b_*`, CMA checkpoints `es5_ckpt.pkl`, `es5b_ckpt.pkl`, controls `ctrl5_1_*`, `eval5_*`; `ver5/ver5_1_*` verification |
| `part07/` | 19 | 20 MB | Motion isotropy (`iso/iso1_*`, `iso2_*`, `ver7_*`) and soliton collisions (`coll/coll4_*` 4D 64⁴, `coll4b_*` 4D 80⁴, `coll5_*` 5D 44⁵) |
| `part08/rep/` | 24 | 22 MB | Replication search (2 solitons → 3): CMA runs `rep1_*`, `rep2_*`, checkpoints `rep_ckpt_*.pkl`, checks `repeval0_*`, `repver*_*`, cascades `cascade1/2_*` |
| `part09/eco/` | 22 | 19 MB | Local heritable parameters and food: `eco1_*` … `eco6_*` |
| `part10/` | 15 | 38 MB | Anti-fusion and per-individual parameters: `eco10/eco10m_*` (4D 96⁴ main), `eco10b_*` (B300 128⁴), `eco10d5_*` (5D), `eco10t_*`; perf `perf10b/h_*` |
| `part11/p11/` | 9 | 5 MB | Performance and validation: `p11{h100,h200,b300}_*`, `val11_*`, `val11_summary.pkl`, `bench_{h100,b300}_*`. The profiler traces (`*.trace.json.gz`) are in the GitHub repo and are not repeated here. |
| `part12/eco12/` | 39 | 86 MB | Selection and diversity at carrying capacity: `eco12m_*` main, `eco12p_*`, `eco12q_*` pilots/controls, aggregates `main_metrics.pkl`, `sum_*.pkl`, `quad.pkl` |
| `part13/eco13/` | 47 | 642 MB | Dimension comparison (2D–5D ecology): `eco13m_*`, `eco13p_*`, `eco13q_*`, aggregate `main13.pkl` |
| `part14/eco14/` | 5 | 1 MB | 6D: `eco14_*`, `main14.pkl`, feasibility/speed `p14feas_*`, `p14speed_*` |
| `part15/eco15/` | 41 | 60 MB | Heritable micro-brains: `b15m_*` (main), `b15p_*` (pilot), `b15d5_*` (5D), analyses `main.pkl`, `curves15b.pkl`, `weights15b.pkl`, `types15b.pkl`, `fused15b.pkl`, `d5.pkl`, `inputs15b.pkl`, `pilot.pkl`, `test.pkl` |
| `part16/eco16/` | 7 | 3 MB | Fusion / anti-fusion with brains: `b16_*`, `main16.pkl` |
| `part17/eco17/` | 20 | 19 MB | Poison food (F + P with separate smells): `b17m_*`, `b17p_*`, `main17.pkl`, `pilot17.pkl` |
| `part18/` | 176 | 102 MB | Seasons: `eco18/`–`eco18g/`; 18h competition `eco18h/b18hp_*`; 18i more seeds `eco18i/b18i_*` (pool with 18g), manifests, summaries |
| `part19/` | 26 | 26 MB | Predator–prey: pilot `eco19/` `b19p_*` (seeds 191–192 × low/mid/high kpred × 6k), `manifest.json`, `pilot19_summary.json`; confirmatory 19b `eco19b/` `b19b_*` (seeds 193–196 × low/mid/prey-only × 20k), `manifest.json`, `full19b_summary.json`; low-side scan 19c `eco19c/` `b19c_*` (seeds 197–200 × kpred 0.005/0.01 × 20k), `manifest.json`, `full19c_summary.json`; 19d kpred=0.005 replicate `eco19d/` `b19d_*` (seeds 201–208 × 20k), `manifest.json`, `full19d_summary.json` |
| `part20/` | 10 | 12 MB | Oscillator ablation (paired 4D pilot): `eco20/` `b20p1_0.pkl`, `b20p_0..6.pkl` (Part 13 4D 56⁴, 30k steps, seeds 221–224 × `{sel, neu}` × `{osc, noosc}`), `manifest.json`, `part20_summary.json` |
| `tracking_truth/` | 10 | 3 MB | Ancestor rules against measured ancestors: six CPU runs of the Part 13 world (`fl_eco3`: 3D 64³ 20k s301–302, 4D 40⁴ 4k s301) and four CPU runs of the Part 15/17 brain worlds (`fl_brain` `evo_4D56_s311` and `fl_poison` `evo_s511`: 3D 56³ 6k s701–702) with passive tracer fields, `truth_*.json`. JSON, not pickle. Scripts and notes: `experiments/tracking_truth/` in the code repo |
Parts 1–2 (the N-D automaton and the reservoir-computing benchmark) produced only small JSON tables, and those are in the GitHub repo.
## Format
Everything is a Python **pickle**, except `tracking_truth/`, which is JSON. The pickle values are NumPy arrays: JAX arrays were converted to NumPy before saving, so JAX is not needed to read them.
- **Job outputs** `<prefix>_<i>.pkl` are a dict `{"kind", "gpu", "wall", "out"}`. `kind` is the job type, `gpu` is the GPU used, `wall` is the wall time in seconds,
and `out` is the result, a dict or list depending on `kind`.
- **Ecology logs** (Parts 9–20, `glider_eco.run_eco`) hold object tracking (mass, centre, phenotype/genome or brain weights per body),
2D projections of the fields (mean over the omitted axes) and the spatial mean of food per snapshot. They are **not** full N-D lattice snapshots.
Part 19 also stores predator objects and masses as `plog` / `ptot`.
`partial=True` marks an in-progress checkpoint, and `partial=False` a finished run.
- **Optimizer checkpoints** (`es5*_ckpt.pkl`, `rep_ckpt_*.pkl`) hold the CMA-ES state (mean, covariance, step size) and the fitness history.
They are not restartable lattice states. Unpickling them needs the `glider_es5` module from the code repo on `sys.path`.
- **Tracer runs** (`tracking_truth/truth_*.json`) are a dict with the run settings, `log` (snapshots in the format of the ecology logs:
time and one `[mass, centre, traits]` entry per body) and `truth` (one record per pair of snapshots: `shares` as
`[descendant, ancestor, share]` entries, `background` per descendant, `fraction_sum_error`). A share is measured over 200 steps.
Read the limits in `experiments/tracking_truth/results/truth_notes.md` before use.
- **Aggregates** (`main*.pkl`, `sum_*.pkl`, `curves15b.pkl`, …) are produced by the `analyze*.py` / `plot*.py` scripts of each part.
```python
from huggingface_hub import hf_hub_download
import pickle
p = hf_hub_download("igor53627/5d", "part17/eco17/b17m_0.pkl", repo_type="dataset")
d = pickle.load(open(p, "rb"))
print(d["kind"], d["gpu"], d["wall"]); out = d["out"]
# whole dataset: huggingface-cli download igor53627/5d --repo-type dataset --local-dir data
# CMA checkpoints: clone https://github.com/igor53627/5d and add experiments/part05 (glider_es5.py) to sys.path first
```
> ⚠️ Only unpickle files from sources you trust. Pickle can execute code.
## License
CC-BY-4.0. This is a default choice and may change later.