Skip to content

Commit

Permalink
deploy: 010f669
Browse files Browse the repository at this point in the history
  • Loading branch information
maedoc committed Nov 22, 2024
0 parents commit 010340f
Show file tree
Hide file tree
Showing 31 changed files with 5,124 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Sphinx build info version 1
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 34f960415cd8a980b220340501b8d8bc
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file added .doctrees/environment.pickle
Binary file not shown.
Binary file added .doctrees/index.doctree
Binary file not shown.
Binary file added .doctrees/modules.doctree
Binary file not shown.
Binary file added .doctrees/tutorial.doctree
Binary file not shown.
Empty file added .nojekyll
Empty file.
Binary file added _images/example1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/sweep.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
101 changes: 101 additions & 0 deletions _sources/index.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
.. vbjax documentation master file, created by
sphinx-quickstart on Tue Dec 5 11:11:08 2023.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
***********************************
Welcome to vbjax's documentation!
***********************************

Introduction
############
`vbjax` is a Jax-based package for working with virtual brain style models.

Installation
############

Installs with `pip install "vbjax"`, but you can use the source,

.. code-block:: bash
git clone https://github.com/ins-amu/vbjax
cd vbjax
pip install .[dev]
The primary additional dependency of vbjax is
[JAX](github.com/google/jax), which itself depends only on
NumPy, SciPy & opt-einsum, so it should be safe to add to your
existing projects.

gee pee you
------------

**CUDA**

If you have a CUDA-enabled GPU, you install the requisite dependencies like so

.. code-block:: bash
pip install --upgrade "jax[cuda11_pip]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
**M1/M2** 🍎

On newer Apple machines w/ M1 or M2 GPUs, JAX supports using the GPU experimentally
by installing just two extra packages:

.. code-block:: bash
pip install ml-dtypes==0.2.0 jax-metal
About a third of vbjax tests fail due to absence of certain operations like n-dim
scatter/gather & FFTs, and it may not be faster because these CPUs already have
excellent memory bandwidth & latency hiding.

**CUDA** 🐳

*BUT* because GPU software stack versions make aligning stars look like child's play,
container images are available and auto-built w/
[GitHub Actions](.github/workflows/docker-image.yml), so you can use w/ Docker

.. code-block:: bash
docker run --rm -it ghcr.io/ins-amu/vbjax:main python3 -c 'import vbjax; print(vbjax.__version__)'
The images are built on Nvidia runtime images, so `--gpus all` is enough
for Jax to discover the GPU(s).


.. toctree::
:maxdepth: 2
:caption: Contents:


Tutorial
########

.. toctree::
:maxdepth: 2
:caption: Contents:

tutorial

Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

Modules
########

.. toctree::
:maxdepth: 2
:caption: Contents:

modules

66 changes: 66 additions & 0 deletions _sources/modules.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
neural_mass
-----------

.. automodule:: vbjax.neural_mass
:members:
:undoc-members:
:show-inheritance:

monitor
--------

.. automodule:: vbjax.monitor
:members:
:undoc-members:
:show-inheritance:

loops
-----

.. automodule:: vbjax.loops
:members:
:undoc-members:
:show-inheritance:

connectome
----------

.. automodule:: vbjax.connectome
:members:
:undoc-members:
:show-inheritance:

layers
------

.. automodule:: vbjax.layers
:members:
:undoc-members:
:show-inheritance:




sparse
------

.. automodule:: vbjax.sparse
:members:
:undoc-members:
:show-inheritance:

util
----

.. automodule:: vbjax.util
:members:
:undoc-members:
:show-inheritance:

shtlc
-----

.. automodule:: vbjax.shtlc
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions _sources/tutorial.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Examples
========

.. automodule:: 00_intro

.. automodule:: 01_sweep

Loading

0 comments on commit 010340f

Please sign in to comment.