You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/installation/conda.md
+15-12Lines changed: 15 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,20 +8,21 @@
8
8
9
9
This acceleration is achieved through \[**JAX**\](<https://docs.jax.dev/en/latest/notebooks/thinking_in_jax.html>), which provides GPU and TPU support.
10
10
11
-
**JAX is not installed by default.** To install **PyAutoLens** with JAX, use the `jax` extra:
11
+
**JAX is installed by default** — a plain `pip install autolens` includes it (the older
12
+
`pip install autolens[jax]` command still works and installs the same thing).
12
13
13
-
```bash
14
-
pip install autolens[jax] --no-cache-dir
15
-
```
16
-
17
-
A plain `pip install autolens` gives a fully working install that runs on NumPy, but without any of the JAX
18
-
acceleration described above.
19
-
20
-
The `[jax]` extra installs **CPU-only** JAX. To ensure GPU acceleration, it is recommended that you install JAX with
14
+
The default install includes **CPU-only** JAX. To ensure GPU acceleration, it is recommended that you install JAX with
21
15
GPU support **before** installing **PyAutoLens**, by following the official \[JAX installation guide\](<https://jax.readthedocs.io/en/latest/installation.html>).
22
16
23
17
If you install **PyAutoLens** without a proper GPU setup, a warning will be displayed.
24
18
19
+
:::{note}
20
+
**Intel Macs**: JAX no longer publishes wheels for Intel (x86_64) macOS, so on these machines
21
+
`pip install autolens` automatically installs without JAX and runs on the slower NumPy path — a
22
+
warning is printed at import to make this clear. Every other supported platform (Windows, Linux,
23
+
Apple-silicon Macs) gets JAX by default.
24
+
:::
25
+
25
26
## Install
26
27
27
28
Installation via a conda environment circumvents compatibility issues when installing certain libraries. This guide
@@ -57,11 +58,13 @@ The latest version of **PyAutoLens** is installed via pip as follows (the comman
57
58
caching issues impacting the installation):
58
59
59
60
```bash
60
-
pip install autolens[jax] --no-cache-dir
61
+
pip install autolens --no-cache-dir
61
62
```
62
63
63
-
The `[jax]` extra is recommended, as it enables the JAX acceleration described above. To install without JAX,
64
-
use `pip install autolens --no-cache-dir` instead.
64
+
This includes JAX by default, enabling the acceleration described above. If you need an install without
65
+
JAX on a platform where JAX wheels exist (e.g. a restricted environment), install normally and then run
66
+
`pip uninstall jax jaxlib` — **PyAutoLens** detects the absence at import and falls back to the fully
67
+
supported (but much slower) NumPy path.
65
68
66
69
If pip prints warnings about dependency version conflicts, these can usually be ignored — the instructions below
67
70
will identify clearly if the installation is a success.
Copy file name to clipboardExpand all lines: docs/installation/pip.md
+18-15Lines changed: 18 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,20 +14,21 @@ distribution" error. Upgrade Python to 3.12+ before installing.
14
14
15
15
This acceleration is achieved through \[**JAX**\](<https://docs.jax.dev/en/latest/notebooks/thinking_in_jax.html>), which provides GPU and TPU support.
16
16
17
-
**JAX is not installed by default.** To install **PyAutoLens** with JAX, use the `jax` extra:
17
+
**JAX is installed by default** — a plain `pip install autolens` includes it (the older
18
+
`pip install autolens[jax]` command still works and installs the same thing).
18
19
19
-
```bash
20
-
pip install autolens[jax]
21
-
```
22
-
23
-
A plain `pip install autolens` gives a fully working install that runs on NumPy, but without any of the JAX
24
-
acceleration described above.
25
-
26
-
The `[jax]` extra installs **CPU-only** JAX. To ensure GPU acceleration, it is recommended that you install JAX with
20
+
The default install includes **CPU-only** JAX. To ensure GPU acceleration, it is recommended that you install JAX with
27
21
GPU support **before** installing **PyAutoLens**, by following the official \[JAX installation guide\](<https://jax.readthedocs.io/en/latest/installation.html>).
28
22
29
23
If you install **PyAutoLens** without a proper GPU setup, a warning will be displayed.
30
24
25
+
:::{note}
26
+
**Intel Macs**: JAX no longer publishes wheels for Intel (x86_64) macOS, so on these machines
27
+
`pip install autolens` automatically installs without JAX and runs on the slower NumPy path — a
28
+
warning is printed at import to make this clear. Every other supported platform (Windows, Linux,
29
+
Apple-silicon Macs) gets JAX by default.
30
+
:::
31
+
31
32
## Install
32
33
33
34
We strongly recommend that you install **PyAutoLens** in a
@@ -40,20 +41,22 @@ We upgrade pip to ensure certain libraries install:
40
41
pip install --upgrade pip
41
42
```
42
43
43
-
The latest version of **PyAutoLens** is installed via pip as follows (specifying the version as shown below ensures
44
-
the installation has clean dependencies):
44
+
The latest version of **PyAutoLens** is installed via pip as follows:
45
45
46
46
```bash
47
-
pip install autolens[jax]
47
+
pip install autolens
48
48
```
49
49
50
-
The `[jax]` extra is recommended, as it enables the JAX acceleration described above. To install without JAX,
51
-
omit the extra:
50
+
This includes JAX by default, enabling the acceleration described above. If you need an install without
51
+
JAX on a platform where JAX wheels exist (e.g. a restricted environment), install normally and then remove it:
52
52
53
53
```bash
54
-
pip install autolens
54
+
pip uninstall jax jaxlib
55
55
```
56
56
57
+
**PyAutoLens** detects the absence at import and falls back to the fully supported (but much slower)
58
+
NumPy path.
59
+
57
60
If pip prints warnings about dependency version conflicts, these can usually be ignored — the instructions below
58
61
will identify clearly if the installation is a success.
0 commit comments