TorchCP  by ml-stat-Sustech

PyTorch toolbox for conformal prediction research on deep learning models

created 1 year ago
415 stars

Top 71.7% on sourcepulse

GitHubView on GitHub
Project Summary

TorchCP is a Python toolbox for conformal prediction research in deep learning, targeting researchers and practitioners who need to quantify uncertainty in model predictions. It provides a PyTorch-based framework with GPU acceleration for various tasks, including classification, regression, graph node classification, and LLM applications, enabling more reliable and interpretable AI systems.

How It Works

TorchCP implements a wide array of representative conformal prediction methods, categorized into post-hoc and training-time approaches. The framework is built upon AdverTorch, leveraging its structure for efficient implementation. It supports diverse tasks by offering specialized modules for classification, regression, graph neural networks, and language models, allowing users to select and apply appropriate methods for their specific deep learning architectures and data types.

Quick Start & Requirements

  • Install via pip: pip install torchcp
  • Prerequisites: Python 3.9, PyTorch 2.0.1. GPU acceleration is strongly recommended.
  • Documentation and examples are available.

Highlighted Details

  • Implements methods from numerous top-tier ML conferences (NeurIPS, ICML, ICLR).
  • Covers classification, regression, graph node classification, and LLM tasks.
  • Built on PyTorch with strong GPU acceleration.
  • Claims 100% unit test coverage.

Maintenance & Community

  • Maintained by Hongxin Wei's research group at SUSTech.
  • Open to comments, issues, contributions, and collaborations.
  • Recent update (1.0.2) includes refactoring, new classifiers, and bug fixes.

Licensing & Compatibility

  • Licensed under LGPL.
  • Permissive for commercial use and linking with closed-source applications.

Limitations & Caveats

The codebase is still under construction, with some features marked as TODO. While it supports GPU acceleration, specific CUDA version requirements are not detailed.

Health Check
Last commit

2 weeks ago

Responsiveness

1 week

Pull Requests (30d)
22
Issues (30d)
0
Star History
40 stars in the last 90 days

Explore Similar Projects

Starred by Jeff Hammerbacher Jeff Hammerbacher(Cofounder of Cloudera) and Stas Bekman Stas Bekman(Author of Machine Learning Engineering Open Book; Research Engineer at Snowflake).

InternEvo by InternLM

1.0%
402
Lightweight training framework for model pre-training
created 1 year ago
updated 1 week ago
Starred by Andrej Karpathy Andrej Karpathy(Founder of Eureka Labs; Formerly at Tesla, OpenAI; Author of CS 231n), Zhuohan Li Zhuohan Li(Author of vLLM), and
6 more.

torchtitan by pytorch

0.9%
4k
PyTorch platform for generative AI model training research
created 1 year ago
updated 22 hours ago
Starred by Aravind Srinivas Aravind Srinivas(Cofounder of Perplexity), Stas Bekman Stas Bekman(Author of Machine Learning Engineering Open Book; Research Engineer at Snowflake), and
12 more.

DeepSpeed by deepspeedai

0.2%
40k
Deep learning optimization library for distributed training and inference
created 5 years ago
updated 1 day ago
Feedback? Help us improve.