LIT (Learning Interpretability Tool) is an open-source platform from PAIR (People + AI Research) at Google for visualizing and understanding machine learning models. Version 1.3.1 supports interpretability of generative AI, including sequence salience for LLMs, and can be deployed on Google Cloud with public container images. Releases occur approximately every 6 months.
pip install lit-nlpVerified import paths — ran on the pinned version, not inferred.
Launches LIT server with a CoSE dataset and a BERT classifier. Open http://localhost:5432 to interact.
Replace calls to predict_with_metadata() with separate calls to predict() and get_metadata().
If migrating from v0.4, update imports to use the new lit_nlp namespace and check for removed functions.
Use 'gradient' or 'attention' salience methods instead of 'transformer' when calling model.salience().
Run LIT on a machine with GPU. For development, reduce the dataset size or model complexity.
Use: pip install lit-nlp and then import lit_nlp (underscore). Or check installation with: pip list | grep lit
Use correct import paths, e.g., from lit_nlp.api.types import ...