Downloads · 30 days
0
Robillionair/DrosophiLLM-0.5B
DrosophiLLM-0.5B is a text generation model from Robillionair. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
Architect & Author: Robin-Kevin Vettik (@Robillionair) Organization: Robillionair OÜ Base Architecture: Qwen/Qwen2.5-0.5B-Instruct Biological Substrate: Adult Drosophila melanogaster Whole-Brain Connectome (FlyWire /…
Downloads · 30 days
0
Access
Public
Updated Sep 19, 2026
Repo size
1.3 MB
Likes
1
Public
Click a slice to open those files.
.pt1.3 MB · 93%
From the Hugging Face model README
Architect & Author: Robin-Kevin Vettik (@Robillionair)
Organization: Robillionair OÜ
Base Architecture: Qwen/Qwen2.5-0.5B-Instruct
Biological Substrate: Adult Drosophila melanogaster Whole-Brain Connectome (FlyWire / Codex, Nature 2024)
License: MIT (Copyright © 2026 Robillionair OÜ / Robin-Kevin Vettik)
Contemporary Large Language Models rely universally on dense, rectangular projections ($O(N^2)$). Every token representation is forced through uniform, all-to-all matrix transformations that treat every latent channel with identical geometric indifference.
Biological nervous systems operate under radically different evolutionary constraints. The adult fruit fly (Drosophila melanogaster) coordinates complex 3D aerobatics, active olfactory search, spatial dead reckoning, and visual threat evasion across ~139,000 neurons and ~54.5 million synapses—operating on a biological power budget under 1 milliwatt.
DrosophiLLM tests what happens when an autoregressive language model's latent residual stream is topologically constrained by an authentic biological connectome:
torch.sparse_csr_tensor), eliminating dense $O(N^2)$ memory footprint.At layer $l = 12$ of Qwen2.5-0.5B-Instruct, the residual vector $x_l \in \mathbb{R}^{B \times S \times D}$ ($D = 896$) is intercepted and projected into biological coordinate space:
$$u = x_l W_{\text{sensory}} \quad \text{where } W_{\text{sensory}} \in \mathbb{R}^{D \times N}, ; N = 2048$$
The recurrent settling state evolves across steps $t \in {0, 1, 2}$:
$$h^{(t+1)} = (1 - \sigma(\lambda)) \odot h^{(t)} + \sigma(\lambda) \odot \text{ReLU}\left( W_{\text{bio}} h^{(t)} + u \right)$$
Where $W_{\text{bio}}$ enforces biological Dale's law:
$$W_{\text{bio}} = M_{\text{sign}} \odot \text{softplus}(\Theta_{\text{gain}}) \odot \log(1 + C_{\text{syn}}) \cdot \frac{1}{\bar{d}}$$
The settled activity $h^{(3)}$ is projected back into token space via the descending motor readout:
$$x_{l,\text{out}} = x_l + \text{LayerNorm}(h^{(3)} W_{\text{motor}})$$
The base language model parameters remain 100% frozen; only the sensory projector, motor readout, and biological synaptic gains are optimized.
To determine whether the biological connectome acts as a meaningful structural prior or merely an arbitrary sparse mask, DrosophiLLM was evaluated on 150 procedural Spatial Vector Navigation tasks alongside 150 WikiText-2 retention tasks against four null-hypothesis configurations:
| Model Configuration | Spatial Init PPL | Spatial Final PPL | $\Delta$ PPL | WikiText-2 PPL | Empirical Observation |
|---|---|---|---|---|---|
| Intact FlyWire Connectome | 118.52 | 1.07 | +117.45 | 103.70 | Natural sensory-to-descending flow; lowest overall training loss (0.1763). |
| Shuffled Dale's Signs | 108.65 | 1.04 | +107.61 | 136.00 | Severe language degradation (+32.3 PPL). Proves biological inhibition is required to prevent runaway latent saturation. |
| Degree-Matched Random | 83.98 | 1.06 | +82.92 | 104.87 | Rewired via double-edge swaps. Destroys modular neuropil hierarchy. |
| Lesioned Mushroom Body (MB) | 144.93 | 1.36 | +143.57 | 93.16 | Zeroes Kenyon cells. Highest final loss (0.9305) and worst spatial convergence. |
| Lesioned Central Complex (CX) | 126.64 | 1.08 | +125.56 | 99.38 | Zeroes steering/heading rings, degrading vector-heading tracking. |
Benchmarked across 6 batch $\times$ sequence length combinations on equivalent $2048 \times 2048$ dimensions:
| Batch $\times$ Seq Length | Dense Matrix Latency | Sparse CSR Latency | Wall-Clock Acceleration |
|---|---|---|---|
| (1, 32) | 5.90 ms | 2.95 ms | 2.00× speedup |
| (4, 32) | 17.08 ms | 9.51 ms | 1.80× speedup |
| (16, 32) | 65.28 ms | 36.79 ms | 1.77× speedup |
| (1, 128) | 17.71 ms | 9.38 ms | 1.89× speedup |
| (4, 128) | 66.79 ms | 39.74 ms | 1.68× speedup |
| (16, 128) | 269.66 ms | 173.55 ms | 1.55× speedup |
By measuring regional sub-circuit activations during generation, DrosophiLLM demonstrates clear functional routing:
KC_0742, KC_0964) act as primary associative firing clusters, driving transient cholinergic spikes during decision sequences.git clone https://github.com/Rob-bio4/DrosophiLLM.git
cd DrosophiLLM
pip install -r requirements.txt
pytest tests/test_neuromorphic.py -v
python -m fly_neuro.train_eval --neurons 1024 --epochs 2 --samples 150
python -m fly_neuro.benchmark_efficiency
python -m fly_neuro.probing --samples 25
python app.py
Navigate to http://localhost:7860 to query DrosophiLLM with spatial decision prompts and observe real-time 3D synaptic activation patterns.
@article{dorkenwald2024neuronal,
title={Neuronal wiring diagram of an adult brain},
author={Dorkenwald, Sven and McKellar, Claire E and Macrina, Thomas and others},
journal={Nature},
volume={634},
pages={124--138},
year={2024},
publisher={Nature Publishing Group},
doi={10.1038/s41586-024-07558-y}
}
@article{schlegel2024whole,
title={Whole-brain annotation and multi-connectome marker atlas for Drosophila},
author={Schlegel, Philipp and Yin, Yijie and Bates, Alexander S and others},
journal={Nature},
volume={634},
pages={139--152},
year={2024},
publisher={Nature Publishing Group},
doi={10.1038/s41586-024-07686-5}
}
Copyright © 2026 Robillionair OÜ / Robin-Kevin Vettik. Released under the MIT License.