gpytorch
An implementation of Gaussian Processes in Pytorch
Decision gist · record as of 2026-08-14
Yes. GPyTorch is actively maintained, has no known vulnerabilities, installs with low friction, and is licensed permissively under MIT. It is well-suited for anyone building Gaussian process models in PyTorch, especially when GPU acceleration or integration with deep learning is desired. The library's modular design and algorithmic breadth make it a strong choice for both research and production use.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >= 3.10 and PyTorch >= 2.0; GPU support is optional but recommended for scalability.
- Low friction installation with a pure Python wheel.
- The package is actively maintained with a recent release and depends on well-established libraries (scipy, scikit-learn, mpmath, linear_operator), all of which install without compilation barriers.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use, modify, and distribute GPyTorch with minimal restrictions, making it suitable for both open-source and commercial projects.
last release 2026-02-28 (167 days) · last repo commit 2026-07-10 · 3,906 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,159,768 downloads/mo, #4,286 on PyPI
Alternatives
Verify before relying
pip install gpytorch
import gpytorch
# Create a simple GP model by subclassing and composing kernels
model = gpytorch.models.ExactGP(train_x, train_y, likelihood)
model.mean_module = gpytorch.means.ConstantMean()
model.covar_module = gpytorch.kernels.ScaleKernel(gpytorch.kernels.RBFKernel())- Whether GPU acceleration is automatic or requires explicit configuration for typical workflows.
- Performance characteristics and scalability limits for different dataset sizes and kernel types.
- Availability and maturity of implementations for all advertised algorithmic advances (SKI/KISS-GP, LOVE, SKIP, stochastic variational, deep kernel learning).
What it is and what it does
GPyTorch is a Gaussian process library built on PyTorch that shifts GP inference away from Cholesky-based solvers toward preconditioned conjugate gradient and matrix-vector multiplication techniques. This design choice enables both GPU acceleration and modular composition of inference methods through its linear_operator interface. The library implements recent algorithmic advances in scalable GPs and integrates naturally with deep learning workflows, making it suitable for practitioners who need flexible, GPU-friendly GP models alongside neural network components.
The package depends on scipy, scikit-learn, mpmath, and linear_operator for its core functionality. It targets modern Python versions (3.10+) and PyTorch 2.0+, reflecting a focus on current-generation tooling. Installation is straightforward via pip or conda, and the library is actively maintained with regular releases.
Use it for
- Building scalable Gaussian process models for regression or classification on large datasets with GPU acceleration.
- Integrating Gaussian processes into deep learning pipelines using PyTorch's autograd and GPU infrastructure.
- Implementing custom GP inference methods by composing linear_operator for specialized kernel structures.
- Applying state-of-the-art variational inference or stochastic approximation techniques to reduce computational cost.
- Prototyping and experimenting with advanced GP algorithms without reimplementing inference from scratch.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
GPyTorch is actively maintained, has no known vulnerabilities, installs with low friction, and is licensed permissively under MIT. It is well-suited for anyone building Gaussian process models in PyTorch, especially when GPU acceleration or integration with deep learning is desired. The library's modular design and algorithmic breadth make it a strong choice for both research and production use.
Install
gpytorch on PyPI
Before you install
Low friction installation with a pure Python wheel. The package is actively maintained with a recent release and depends on well-established libraries (scipy, scikit-learn, mpmath, linear_operator), all of which install without compilation barriers.
Requires Python >= 3.10 and PyTorch >= 2.0; GPU support is optional but recommended for scalability.
License in practice
MIT license is permissive; you can use, modify, and distribute GPyTorch with minimal restrictions, making it suitable for both open-source and commercial projects.
Quickstart
pip install gpytorch
import gpytorch
# Create a simple GP model by subclassing and composing kernels
model = gpytorch.models.ExactGP(train_x, train_y, likelihood)
model.mean_module = gpytorch.means.ConstantMean()
model.covar_module = gpytorch.kernels.ScaleKernel(gpytorch.kernels.RBFKernel())
Verify before relying
- Whether GPU acceleration is automatic or requires explicit configuration for typical workflows.
- Performance characteristics and scalability limits for different dataset sizes and kernel types.
- Availability and maturity of implementations for all advertised algorithmic advances (SKI/KISS-GP, LOVE, SKIP, stochastic variational, deep kernel learning).
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesmpmathscikit-learnscipylinear_operator |
| Maintenance | Actively maintained 167 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,159,768 / month, #4,286 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableProgramming Language :: Python :: 3 |
Evidence: gpytorch-1.15.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “gaussian process pytorch”
- gpytorchGPyTorch is a PyTorch-based Gaussian process library that enables…
- botorchBoTorch provides a modular, PyTorch-based framework for building…
- pytorch-msssimComputes fast, differentiable SSIM and MS-SSIM metrics for PyTorch…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also botorch · gsplat · nvidia-cublas · zuko · torchsde · nvidia-cusolver · nvidia-cusparse · nvidia-cusolver-cu11 · nvidia-cusolver-cu12 · nvidia-cublas-cu11