What this is about
You can run parts of our fly project on your own computer. This article shows the steps, in order, and is plain about which steps work on an ordinary Linux PC and which need a particular graphics card. We took every command from the project's README, so you can check each one against the source.
We have not packaged this as a one-click program. It is a research record, and the README says so. Treat this as a guided walk through the repository.
Why it matters
Reading about a result is one thing. Running the checks yourself is another. A result you can reproduce is much harder to fool yourself about. If something in our repository does not behave as our articles say, we want to hear it.
Running it also teaches a lot. You see what the project really contains: tests, a command-line tool, data you must fetch yourself, and a list of what the code refuses to do.
What you need
There are three levels, from easy to heavy.
| Level | What you do | What you need |
|---|---|---|
| 1 | Read the code and the capability list | A web browser |
| 2 | Run the CPU tests | Linux and Python |
| 3 | Run the preflight and a full GPU batch | An AMD graphics card with ROCm, Mojo, and a worker from a sibling repository |
Our own machine for level 3 is an AMD RX 7900 XTX. The project's notes record the toolchain as Mojo 1.1.0 and MAX 26.6.0 in a local environment folder called .venv.
Step 1: get the code
Clone the repository from GitHub:
git clone https://github.com/amarbarosys/fly-connectome
cd fly-connectome
The license is Apache-2.0. Open README.md first. Read the sections "Results" and "Where it is wrong" before you run anything, so you know what the numbers mean.
Then open docs/CAPABILITIES.md. It says what runs and what is refused. Level 1 is complete once you have read it.
Step 2: get the data
No fly map is stored in the repository. The data/ folder is ignored by git. You fetch the data yourself, and you must follow the terms of FlyWire, the project that publishes it.
- Run the fetch script:
tools/fetch_flywire.shIt downloads the annotations and the column assignment, and it printsokfor each file it finds or fetches andFAILfor each one that goes wrong. - The synapse tables and the proofread cell list have no download address in the code. Get them from the Zenodo record and put them in
data/. - Cite the map as the README says, per codex.flywire.ai.
Skipping this step is fine for the first test run. Tests that need the data will tell you.
Step 3: run the CPU tests
Install pytest, which the repository lists in requirements-dev.txt, then run the CPU part of the test suite:
pytest -m "not gpu"
The GPU tests carry a gpu mark, and this command leaves them out. The test folders are tests and agent/tests. A test that needs data that you have not fetched will report that. A skipped test proves nothing, so look at the count of passed and skipped tests at the end, not only whether it printed a green line.
Step 4: build the command-line tool and run its preflight
The batch tool is written in Rust. Build it, then run a preflight that does not touch the GPU:
cd fly-screen-rs
cargo build --release --bin fly-screen
FLY_DRY_ONLY=1 FLY_CONDITIONS=50 FLY_STEPS=100 target/release/fly-screen
The README calls this a CPU-only manifest preflight. In its own words it checks the setup and the sizes before you spend GPU time. It needs the Mojo worker to report its manifest, so this step too wants the worker built, as described next.
Step 5: the full batch, and why it is a level 3 job
A real run, with target/release/fly-screen and no dry flag, queues a GPU job. The Mojo worker comes from a sibling repository called fly-spmv, built with:
mojo build src/fly_batch_gpu.mojo -o .work/fly_batch_gpu
We do not list fly-spmv among our public repositories, so today you cannot rebuild the full GPU batch from public pieces alone. We say so because it is true, and we would rather you know now than after an hour of setup. The device-side compile check, FLY_GPU_COMPILE_ONLY=1 target/release/fly-screen, also needs that worker and a card.
If you only want to see a result of the same kind without the batch tool, our body engine, Kinestride, has a CPU-only smoke test and public GPU checks. See below.
Step 6: read the output
Every run leaves a receipt in .work/runs/<run-id>/. These folders are ignored by git, so they stay on your machine. A receipt holds the commands, the exit status and the numbers, so you can compare your run with a claim in one of our articles.
How to read a result:
- Look for the words PASS, FAIL or UNVERIFIED next to each row.
- Check that a FAIL says what step failed, as in
FAIL <step>: <reason>. - Do not treat a skip as a pass.
- If your number differs from ours, write down the commit and the seed, and tell us.
We have not listed the exact lines a successful preflight prints here, because we did not run it for this article. Run it and read what it says.
What to expect, honestly
- The CPU tests are the easy win. They take no special hardware.
- The full brain batch is not reproducible from public pieces yet.
- The software shows what our code does. It does not show what a real fly does.
Glossary
- Repository: a folder of code with its full change history.
- Preflight: a quick check that your setup is sound before a long run.
- Receipt: a saved record of a run, with the commands and the numbers.
- GPU: the chip in a graphics card.
- ROCm: AMD's software layer for running programs on its graphics cards.
- Seed: a number that fixes a run's random choices, so it can be repeated.
Try it
- fly-connectome on GitHub is the repository for everything above.
- For a smaller project to run, try Kinestride. Its smoke test,
tools/smoke.sh, runs on the CPU with no assets, and its README lists the GPU checks. - Read the plain overview first if you have not: The fly project in plain words.
Previous in The Fly: How a simulated fly tastes sugar, and what was missing.

Komentarze
Brak komentarzy.
Zaloguj się aby skomentować.