Add optional CUDA engines and reproducible full-brain odor and voxel experiments - #4
Merged
Merged
Conversation
# Conflicts: # pyproject.toml # src/flybrain/__init__.py
freeman-1984-coder
marked this pull request as ready for review
September 12, 2026 15:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds optional CUDA execution while keeping CPU installation and imports independent of CuPy. The ordinary backend preserves existing dimensionless LIF/checkpoint semantics. A separately versioned experimental mV synaptic engine adds decay, delayed transmission and explicit refractory/input scheduling; it never silently reinterprets existing models or checkpoints.
Includes checksum-pinned full FlyWire loading, exact large-ID mapping, annotated bilateral olfactory inputs, numerical and sensory experiments, and a voxel body with recorded GPU playback. All 139,255 neurons and 16,847,997 aggregate connection rows are retained. The old normalized benchmark cannot propagate sensory-only spikes; the new synaptic model does, but its DNa02 readout remains biased. In the actual voxel experiment the body curves away from food, while the input-silenced control stays stationary. Neither reaches food. Raw results, assumptions and unsuccessful outcomes are published.
Validation:
The voxel speed/turn decoder and ground-body mechanics are explicit untrained engineering mappings, not biological locomotion, banana recognition or reliable navigation. Full-brain entry remains research scripts; the experimental mV engine is not yet a
FlyBrain.load()catalog model. Existing CPU examples and download opt-in remain available.Synaptic source and numerical validation · Full odor evidence · Voxel evidence and reproduction