This release is a pre-release and may not be stable for production use.
FaST-LMM
FaST-LMM, which stands for Factored Spectrally Transformed Linear Mixed Models, is a program for performing genome-wide association studies (GWAS) on datasets of all sizes, up to one million individuals.
This release contains the following features, each illustrated with an IPython notebook.
- Core FaST-LMM (notebook) -- Lippert et al., Nature Methods 2011
Improvements:
- New: GPU and float32 for
single_snp(notebook, GPU guide) -- single-kernelsingle_snpruns about 10 times as fast on an NVIDIA GPU with float32 as on the CPU with the default float64. See GPU and float32 below. - New features for single_snp (including effect size and multiple phenotype support) and epistasis (including reporting beta and using pre-computed eigenvalue decompositions) (notebook) -- Lippert et al., Nature Methods 2011
- Ludicrous-Speed GWAS (notebook) -- Kadie and Heckerman, bioRxiv 2018
- Heritability with Spatial Correction (notebook), Heckerman et al., PNAS 2016
- Two Kernels (notebook) -- Widmer et al., Scientific Reports 2014
- Set Analysis (notebook) -- Lippert et al., Bioinformatics 2014
- Epistasis (notebook) -- Lippert et al., Scientific Reports, 2013
- Prediction (notebook) -- Lippert et al., Nature Methods 2011
A C++ version, which is generally less functional, is available. See http://fastlmm.github.io/.
Quick install:
pip install fastlmm
FaST-LMM supports Python 3.11.5 through 3.15. HDF5 and BGEN file support are optional and available on Python 3.11 through 3.14: install fastlmm[hdf5], fastlmm[bgen], or fastlmm[hdf5,bgen].
For best CPU performance, limit BLAS threads to your physical core count (for example, export OMP_NUM_THREADS=16 on a 16-core, 32-thread CPU); in our tests, using every logical core was slower. For large problems, an NVIDIA GPU is much faster; see GPU and float32.
GPU and float32
FaST-LMM's single-kernel single_snp can run on an NVIDIA GPU, in float32 (strongly recommended) or float64.
On a synthetic dataset with 14,925 individuals and 100,000 SNPs, float32 on an RTX 3060
ran about 10 times as fast as the default CPU float64, and about 5 times as fast as
CPU float32. On the CPU alone, float32 ran about 2.5 times as fast as float64.
Install the cupy extra:
pip install "fastlmm[cupy]==1.1.0b1"
Then ask for the GPU and float32:
from fastlmm.association import single_snp
results = single_snp(bed_fn, pheno_fn, covar=cov_fn, count_A1=False, xp="cupy", dtype="float32")
Float32 changes p-values slightly, so compare against float64 on representative data
when precision matters. Other FaST-LMM functions, including two-kernel single_snp and
epistasis, warn and run on the CPU in float64. GPU support requires NVIDIA CUDA on
x86-64 Windows or Linux, including WSL2; Python 3.15 is currently CPU-only.
A 12 GB card handles about 20,000 individuals with a full-rank kernel, or about 50,000
individuals with an 8,000-SNP low-rank kernel; the guide gives the general rule.
See the GPU guide
for setup, defaults, caching, and limitations.
Documentation
- IPython Notebooks:
- Main Documentation
- Project Home and Full Annotated Bibliography
Code
Development
The project uses uv for reproducible development environments, dependency locking, testing, and builds:
uv sync --frozen --extra dev --extra hdf5 --extra bgen
cd tests
uv run --frozen --no-sync python test.py
cd ..
uv build --no-sources
Testing has two supported runners. pytest collects Python tests and module,
reStructuredText, and Markdown doctests under fastlmm/; it is useful for
focused tests and editor integration. The canonical tests/test.py runner also
executes the input-based expected-output cases in tests/inputs and assembles
the project's legacy unittest suites. The runners overlap but cover different
workflows, so pytest collection does not replace the canonical runner.
CI and release qualification also run the focused backend and dtype pytest
modules. Cases that need a usable CUDA device require a separate GPU run.
See RELEASING.md for lower-bound, artifact, notebook, and release qualification.
Policy on AI-assisted development and contributions
AI tools may be used as productivity aids for drafting, exploration, and refactoring. Every contributed code or documentation change must be reviewed, edited, and validated by a human. AI does not replace design judgment, testing, or human responsibility for correctness.
The repository's published instructions and constraints for AI tools are in AGENTS.md.
Contacts
- Email the developers at fastlmm-dev@python.org.
- Join the user discussion and announcement list (or use web sign up).
- Open an issue on GitHub.
Metadata
Release files for fastlmm 1.1.0b1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fastlmm-1.1.0b1.tar.gz | 1.3 MB | With provenance | Details for fastlmm-1.1.0b1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fastlmm-1.1.0b1-py3-none-any.whl | Python 3 | none | any | Details for fastlmm-1.1.0b1-py3-none-any.whl |
Total release size: 2.7 MB
Release files / fastlmm-1.1.0b1.tar.gz
| Download URL | fastlmm-1.1.0b1.tar.gz |
|---|---|
| Size | 1.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a6e1a9aaa86a9a50a033afb3288ed02f6e02b6470250d38a155f7b35612470e
|
|
BLAKE2b-256 checksum How to use checksums |
bb5bee271bd98bdb18cd1853e14150622106b2c1ffab8c5b831abdeeb6b8c31e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logRelease files / fastlmm-1.1.0b1-py3-none-any.whl
| Download URL | fastlmm-1.1.0b1-py3-none-any.whl |
|---|---|
| Size | 1.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
36248fd3e268261a7adfb0260010de35e680aaf820368e346844dc76ff1cd38e
|
|
BLAKE2b-256 checksum How to use checksums |
2f335ba3747408d6adc16d391d2820a607c4ee9ca5c653044f50637d913a2393
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logSecurity for fastlmm 1.1.0b1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for fastlmm-1.1.0b1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.