#121121st of 168 in ML frameworks and libraries

captum

Model interpretability library for PyTorch with attribution algorithms

Stars
5.7k
License
BSD-3-Clause
Last commit
Oct 2026
Last release
Apr 2026
Language
Python
Stars, last 29 weeks+137
21 Apr 2026: 5,584 stars28 Apr 2026: 5,590 stars5 May 2026: 5,597 stars12 May 2026: 5,602 stars19 May 2026: 5,607 stars26 May 2026: 5,610 stars2 Jun 2026: 5,619 stars9 Jun 2026: 5,627 stars16 Jun 2026: 5,632 stars23 Jun 2026: 5,635 stars30 Jun 2026: 5,644 stars7 Jul 2026: 5,648 stars14 Jul 2026: 5,652 stars21 Jul 2026: 5,659 stars28 Jul 2026: 5,662 stars4 Aug 2026: 5,668 stars11 Aug 2026: 5,672 stars18 Aug 2026: 5,676 stars25 Aug 2026: 5,680 stars1 Sept 2026: 5,688 stars8 Sept 2026: 5,692 stars15 Sept 2026: 5,694 stars22 Sept 2026: 5,698 stars29 Sept 2026: 5,702 stars6 Oct 2026: 5,704 stars13 Oct 2026: 5,709 stars20 Oct 2026: 5,711 stars27 Oct 2026: 5,716 stars3 Nov 2026: 5,719 stars10 Nov 2026: 5,721 stars

5,584 on 21 Apr 20265,721 on 10 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Captum is a Python library that explains PyTorch model predictions. It implements attribution methods such as Integrated Gradients, DeepLift, GradientShap, SmoothGrad and VarGrad via NoiseTunnel, layer and neuron conductance, TCAV and TracIn influence functions, plus adversarial attack and perturbation tools. It installs with pip and requires Python 3.10+ and PyTorch 2.3+.

Who it is for: ML researchers and engineers debugging or explaining PyTorch models

Strengths

  • Wide set of attribution methods: IG, DeepLift, GradientShap, TCAV, TracIn, conductance
  • Works on any PyTorch nn.Module, with layer- and neuron-level attribution
  • Convergence delta gives a checkable approximation error for several methods
  • Plain pip install, BSD-3-Clause, with tutorials and paper references per algorithm

Weaknesses

  • PyTorch only; no support for other frameworks
  • DeepLift supports only the Rescale rule and not all non-linear activations
  • Captum Insights visualization UI was retired after v0.8.0
  • A research library, not an app; users write Python to apply it

What it needs

  • GPU optional
  • Needs Python >= 3.10, PyTorch >= 2.3
  • Models: PyTorch models, torchvision, torchtext

Quick answers

Is captum open source?

Yes. Its code is on GitHub under the BSD-3-Clause license.

Does captum need a GPU?

No. It runs on a CPU and can use a GPU when you have one.

Also in ML frameworks and libraries

See all 168
Also in ML frameworks and libraries
RankProjectScore
1transformersPython library defining open models for text, vision, audio and multimodal tasks168.8k stars+1,522 (+0.9%) in 30 daysApache-2.094 out of 100
2pytorchPython tensor library with GPU support and tape-based autograd105.4k stars+1,043 (+1.0%) in 30 dayscustom license93 out of 100
3ultralyticsPython library and CLI for training and running YOLO vision models63.3k stars+1,015 (+1.6%) in 30 daysAGPL-3.093 out of 100
#4pytorch-image-modelsPyTorch library of image models, pretrained weights and training scripts37.3k stars+101 (+0.3%) in 30 daysApache-2.093 out of 100
#5supervisionPython toolkit for loading, annotating and counting computer vision detections Live demo ↗ (opens in a new tab)51.6k stars+514 (+1.0%) in 30 daysMIT92 out of 100