cdpierse/transformers-interpret
Model explainability that works seamlessly with 🤗 transformers. Explain your transformers model in just 2 lines of code. observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2289
- days_rel: n/a
- days_push: 1099
- n_releases_24m: 0
Adoption not part of the score
1416 stars · 99 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Python library providing model explainability for Hugging Face Transformers models, built on Captum. It explains text classification, question answering, and computer vision models in two lines of code, with visualizations in notebooks or as savable PNG/HTML files.
Use cases
- explain transformer model predictions with token attributions
- visualize which words drive a sentiment classifier's output
- interpret question answering model answers
- explain image classification models built on transformers
- generate attribution visualizations for NLP models in notebooks
- debug why a fine-tuned model makes certain predictions
When to choose
- you use Hugging Face transformers and want quick, minimal-code model explanations
- you need token-level or pixel-level attribution visualizations
- you want Captum-based interpretability without writing Captum boilerplate
When to avoid
- your models are not from the transformers library
- you need explainability for non-neural or non-PyTorch models
- you need actively maintained support for the latest transformers versions
Facets
library · maturity maintenance
machine-learning nlp deep-learning developer-tools machine-learning computer-vision deep-learning python explainable-ai interpretability captum huggingface-transformers model-explainability attribution natural-language-processing
1 source
- readme: https://github.com/cdpierse/transformers-interpret · fetched 2026-08-28 · ecfab868ef02
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| cdpierse/transformers-interpret | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="cdpierse/transformers-interpret")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem