Inseq – An Interpretability Toolkit for Generative Language Models
Inseq – An Interpretability Toolkit for Generative Language Models
We recently open-sourced Inseq, a Python library built on top of transformers and Pytorch, aimed at democratizing and commoditizing post-hoc interpretability analysis for sequence generation models. Inseq supports thousands of decoder-only and seq2seq models, with various attribution methods already baked in and many more to come. Attributing MetaAI's Galactica writing LaTeX formulas or GoogleAI Flan-T5 doing commonsense reasoning now takes only 3 lines of code! The Inseq CLI improves the user experience when conducting global analyses by enabling batched attribution of examples and even entire datasets from the Hub directly from the console. Inseq is beginner-friendly but also fully extensible for advanced use cases, supporting attribution of custom functions and the extraction of step scores during generation. With Inseq, we aim to centralize and standardize some practices of the interpretability community working on NLG and NMT, to enable fair and reproducible evaluation. The project is still in its infancy, and feedback/contributions are very much appreciated!
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Incorrect prediction on native model
Similar products
Open 3B language models from AMD
Analyzing top HN posts with language models
Language Models API via the Cohere Platform
BadSeek – How to backdoor large language models
All your language models in one place
Implementation of the "Self-Rewarding Language Models" Paper by MetaAI
Explore large language models with 512MB of RAM
TEG, a linguistic game powered by large language models
Hackers Guide to Language Models
Gofu – a Go scripting language toolkit