Installation¶
Alice is distributed on PyPI under the package name alice-net. The import name is alice.
Requirements¶
- Python ≥ 3.11
- PyTorch ≥ 2.5
- Nicole ≥ 0.3.6 (installed automatically)
- NumPy ≥ 2.0 (installed automatically)
Install from PyPI¶
Verify the Installation¶
You should see 0.1.0 (or whichever version was installed).
Optional Extras¶
Development and Testing¶
Installs pytest, hypothesis, and pytest-benchmark for running the test suite.
Linting and Type Checking¶
Installs ruff and mypy.
Documentation¶
Installs MkDocs, the Material theme, mkdocstrings, and all plugins needed to build and serve this documentation locally:
GPU Support¶
Alice inherits PyTorch's device support from Nicole. To run on CUDA:
Pass device="cuda" when deserializing an MPS or Summary, or move tensors to GPU using standard Nicole/PyTorch .to(device) calls on individual site tensors.
Development Install¶
To contribute to Alice or run the latest unreleased code, clone the repository and install in editable mode:
See the Contributing guide for the full development workflow.