Skip to content

Commit da7595e

Browse files
committed
Merge branch 'v3' of github.com:NACLab/ngc-learn into v3
2 parents 7026c8c + 12c10d5 commit da7595e

File tree

167 files changed

+3128
-4550
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

167 files changed

+3128
-4550
lines changed
30.7 KB
Loading
118 KB
Loading
300 KB
Loading
99.7 KB
Loading
109 KB
Loading
110 KB
Loading
70.5 KB
Loading
67.3 KB
Loading

docs/index.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
Welcome to ngc-learn's documentation!
66
=====================================
77

8-
**ngc-learn** is a Python library for building, simulating, and analyzing
9-
biomimetic and NeuroAI computational models, arbitrary predictive processing/coding models,
10-
spiking neural networks, and general dynamical systems. This toolkit is built on top of
11-
`JAX <https://github.com/google/jax>`_ and is distributed under the 3-Clause BSD license.
8+
**ngc-learn** is a Python library for building, simulating, and analyzing biomimetic and NeuroAI computational models, arbitrary predictive processing/coding models, spiking neural networks, and general dynamical systems. This toolkit is built on top of `JAX <https://github.com/google/jax>`_ and is distributed under the 3-Clause BSD license.
129

1310
.. toctree::
1411
:maxdepth: 1

docs/installation.md

Lines changed: 16 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,41 @@
11
# Installation
22

3-
**ngc-learn** officially supports Linux on Python 3. It can be run with or
4-
without a GPU.
3+
**ngc-learn** officially supports Linux on Python 3. It can be run with or without a GPU.
54

6-
<i>Setup:</i> <a href="https://github.com/NACLab/ngc-learn">ngc-learn</a>,
7-
in its entirety (including its supporting utilities),
8-
requires that you ensure that you have installed the following base dependencies in
9-
your system. Note that this library was developed and tested on Ubuntu 22.04 (and earlier versions on 18.04/20.04).
10-
Specifically, ngc-learn requires:
5+
<i>Setup:</i> <a href="https://github.com/NACLab/ngc-learn">NGC-Learn</a>, in its entirety (including its supporting utilities), requires that you ensure that you have installed the following base dependencies in your system. Note that this library was developed and tested on Ubuntu 22.04 (with much earlier versions on Ubuntu 18.04/20.04).
6+
Specifically, NGC-Learn requires:
117
* Python (>=3.10)
12-
* ngcsimlib (>=1.0.0), (<a href="https://github.com/NACLab/ngc-sim-lib">official page</a>)
8+
* ngcsimlib (>=2.0.0), (<a href="https://github.com/NACLab/ngc-sim-lib">official page</a>)
139
* NumPy (>=1.22.0)
1410
* SciPy (>=1.7.0)
1511
* JAX (>= 0.4.28; and jaxlib>=0.4.28) <!--(tested for cuda 11.8)-->
1612
* Matplotlib (>=3.8.0), (for `ngclearn.utils.viz`)
1713
* Scikit-learn (>=1.6.1), (for `ngclearn.utils.patch_utils` and `ngclearn.utils.density`)
1814

19-
Note that the above requirements are taken care of if one installs ngc-learn
20-
through either `pip`. One can either install the CPU version of ngc-learn (if no JAX is
21-
pre-installed or only the CPU version of JAX is installed currently) via
15+
Note that the above requirements are taken care of if one installs NGC-Learn through either `pip`. One can either install the CPU version of NGC-Learn (if no JAX is pre-installed or only the CPU version of JAX is currently installed) via:
2216
```console
2317
$ pip install ngclearn
2418
```
2519

26-
or install the GPU version of ngc-learn by first installing the
27-
<a href="https://jax.readthedocs.io/en/latest/installation.html">CUDA 12
28-
version of JAX</a> before running the above pip command.
20+
or install the GPU version of NGC-Learn by first installing the <a href="https://jax.readthedocs.io/en/latest/installation.html">CUDA 12 version of JAX</a> before running the above pip command.
2921

30-
Alternatively, one may locally, step-by-step (see below), install and setup
31-
ngc-learn from source after pulling from the repo.
22+
Alternatively, one may locally, step-by-step (see below), install and setup NGC-Learn from source after pulling from the repo.
3223

33-
Note that installing the official pip package without any form of JAX installed
34-
on your system will default to downloading the CPU version of ngc-learn (see
35-
below for installing the GPU version).
24+
Note that installing the official pip package without any form of JAX installed on your system will default to downloading the CPU version of NGC-Learn (see below for installing the GPU version).
3625

3726
## Install from Source
3827

39-
0. Install ngc-sim-lib first (as an editable install); visit the repo
40-
https://github.com/NACLab/ngc-sim-lib for details.
28+
1. Install NGC-Sim-Lib first (as an editable install); visit the repo https://github.com/NACLab/ngc-sim-lib for details.
4129

42-
1. Clone the ngc-learn repository:
30+
2. Clone the NGC-Learn repository:
4331
```console
4432
$ git clone https://github.com/NACLab/ngc-learn.git
4533
$ cd ngc-learn
4634
```
4735

48-
2. (<i>Optional</i>; only for GPU version) Install JAX for either CUDA 12 , depending
49-
on your system setup. Follow the
50-
<a href="https://jax.readthedocs.io/en/latest/installation.html">installation instructions</a>
51-
on the official JAX page to properly install the CUDA 11 or 12 version.
36+
3. (<i>Optional</i>; only for GPU version) Install JAX for either CUDA 12 , depending on your system setup. Follow the <a href="https://jax.readthedocs.io/en/latest/installation.html">installation instructions</a> on the official JAX page to properly install the CUDA 11 or 12 version.
5237

53-
<!--
54-
3. (<i>Optional</i>) Install, a pre-package installation step (for only the
55-
non-ngclearn dependencies), the base requirements (and a few extras for building
56-
the docs) with:
57-
```console
58-
$ pip install -r requirements.txt
59-
```
60-
-->
61-
62-
3. Install the ngc-learn package via:
38+
4. Install the NGC-Learn package via:
6339
```console
6440
$ pip install .
6541
```
@@ -68,22 +44,21 @@ or, to install as an editable install for development, run:
6844
$ pip install -e .
6945
```
7046

71-
If the installation was successful, you should see the following if you test
72-
it against your Python interpreter, i.e., run the <code>$ python</code> command
73-
and complete the following sequence of steps as depicted in the screenshot below:<br>
74-
<!--<img src="images/test_ngclearn_install.png" width="512">-->
47+
If the installation was successful, you should see the following if you test it against your Python interpreter, i.e., run the <code>$ python</code> command and complete the following sequence of steps as depicted in the screenshot below:<br>
7548

7649
```console
7750
Python 3.11.4 (main, MONTH DAY YEAR, TIME) [GCC XX.X.X] on linux
7851
Type "help", "copyright", "credits" or "license" for more information.
7952
>>> import ngclearn
8053
>>> ngclearn.__version__
81-
'2.0.2'
54+
'3.0.0'
8255
```
8356

57+
<!--
8458
<i>Note</i>: If you do not have a JSON configuration file in place (see tutorials
8559
for details) locally where you call the import to ngc-learn, a warning will pop
8660
up containing within it "<i>UserWarning: Missing file to preload modules from.</i>";
8761
this still means that ngc-learn installed successfully but you will need to
8862
point to a JSON configuration when building projects with ngc-learn.
63+
-->
8964

0 commit comments

Comments
 (0)