An implementation of Q-Exponential Processes in Pytorch based on GPyTorch
Project description
QⓔPyTorch
QⓔPyTorch is a Q-exponential process library implemented using PyTorch built on GPyTorch. QⓔPyTorch is designed for creating scalable, flexible, and modular Q-exponential process models with ease.
Internally, QⓔPyTorch differs from many existing approaches to QEP inference by performing most inference operations using numerical linear algebra techniques like preconditioned conjugate gradients.
Implementing a scalable QEP method is as simple as providing a matrix multiplication routine with the kernel matrix and its derivative via our LinearOperator interface,
or by composing many of our already existing LinearOperators.
This allows not only for easy implementation of popular scalable QEP techniques,
but often also for significantly improved utilization of GPU computing compared to solvers based on the Cholesky decomposition.
QⓔPyTorch provides (1) significant GPU acceleration (through MVM based inference); (2) state-of-the-art implementations of the latest algorithmic advances for scalability and flexibility (SKI/KISS-GP, stochastic Lanczos expansions, LOVE, SKIP, stochastic variational deep kernel learning, ...); (3) easy integration with deep learning frameworks.
Examples, Tutorials, and Documentation
See our documentation, examples, tutorials on how to construct all sorts of models in QⓔPyTorch.
Installation
Requirements:
- Python >= 3.10
- PyTorch >= 2.2
- GPyTorch >= 1.13
Install QⓔPyTorch using pip or conda:
pip install qpytorch
conda install qpytorch -c qpytorch
(To use packages globally but install QⓔPyTorch as a user-only package, use pip install --user above.)
Latest (Unstable) Version
To upgrade to the latest (unstable) version, run
pip install --upgrade git+https://github.com/cornellius-gp/linear_operator.git
pip install --upgrade git+https://github.com/cornellius-gp/gpytorch.git
pip install --upgrade git+https://github.com/lanzithinking/qepytorch.git
Development version
If you are contributing a pull request, it is best to perform a manual installation:
git clone https://github.com/lanzithinking/qepytorch.git qpytorch
cd qpytorch
pip install -e .[dev,docs,examples,keops,pyro,test] # keops and pyro are optional
Citing Us
If you use QⓔPyTorch, please cite the following papers:
@inproceedings{li2023QEP,
title={Bayesian Learning via Q-Exponential Process},
author={Li, Shuyi, Michael O'Connor, and Shiwei Lan},
booktitle={Advances in Neural Information Processing Systems},
year={2023}
}
Contributing
See the contributing guidelines CONTRIBUTING.md for information on submitting issues and pull requests.
The Team
QⓔPyTorch is primarily maintained by:
- Shiwei Lan (Arizona State University)
We would like to thank our other contributors including (but not limited to) Shuyi Li, Guangting Yu, Zhi Chang, Chukwudi Paul Obite, Keyan Wu, and many more!
Acknowledgements
Development of QⓔPyTorch is supported by.
License
QⓔPyTorch is MIT licensed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qpytorch-0.1.tar.gz.
File metadata
- Download URL: qpytorch-0.1.tar.gz
- Upload date:
- Size: 2.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
006b6067fd1bfb1d2f108985b012d50b3ca82c031f06b2c978213bc9ce255aa8
|
|
| MD5 |
7facc28c7ad1c4d45aaff05a9fcbc38d
|
|
| BLAKE2b-256 |
060860daef697d274b5cf0c078034211201c0bd5395a60806c7a44c4eb73afc6
|
File details
Details for the file qpytorch-0.1-py3-none-any.whl.
File metadata
- Download URL: qpytorch-0.1-py3-none-any.whl
- Upload date:
- Size: 201.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31a8d878800165efeffc88ca49b74f505e7bc1fa436812b0c4f258996120e015
|
|
| MD5 |
ac60bbb0ccbf45665144d097416daa9a
|
|
| BLAKE2b-256 |
0b6bcd8bd84d449d924e887c3b9217f04f6dce5431bc49156ac225a548fd62dd
|