arrow
Return

BrainPy, a flexible, integrative, efficient, and extensible framework for general-purpose brain dynamics programming

delete2023-12-22
delete9
delete
OA
AI
C
Chaoming Wang
T
Tianqiu Zhang
X
Xiaoyu Chen
S
Sichao He
S
Shangyang Li
吴思 (Si Wu) *
DOI:10.7554/eLife.86365delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Elucidating the intricate neural mechanisms underlying brain functions requires integrative brain dynamics modeling. To facilitate this process, it is crucial to develop a general-purpose programming framework that allows users to freely define neural models across multiple scales, efficiently simulate, train, and analyze model dynamics, and conveniently incorporate new modeling approaches. In response to this need, we present BrainPy. BrainPy leverages the advanced just-in-time (JIT) compilation capabilities of JAX and XLA to provide a powerful infrastructure tailored for brain dynamics programming. It offers an integrated platform for building, simulating, training, and analyzing brain dynamics models. Models defined in BrainPy can be JIT compiled into binary instructions for various devices, including Central Processing Unit, Graphics Processing Unit, and Tensor Processing Unit, which ensures high-running performance comparable to native C or CUDA. Additionally, BrainPy features an extensible architecture that allows for easy expansion of new infrastructure, utilities, and machine-learning approaches. This flexibility enables researchers to incorporate cutting-edge techniques and adapt the framework to their specific needs.
Keywords:
brain simulation
brain simulator
brain modeling
just-in-time compilation
computational neuroscience
spiking neural networks
None

Journal

eLife cover
eLife
IF:
0
Papers:
1.8W
Citations:
16

Organization

P
peking university
Scholars:
11.8W
Papers: 8.7W
Citations: 146