Open-Source Interpretability for Generative Language Models 🔎 🐛

Europe
Joined November 2022
Thanks to the new treescope integration, @InseqLib now supports interactive visualizations for multidimensional attributions (show_granular), token highlights (show_tokens) and improved viz for attribute_context CLI! 🚀 Install main, will appear in v0.7 xitter.cf/_ddjohnson/status/1821…
By popular demand, the Treescope pretty-printer from the Penzai neural net library can now be installed separately, and supports both JAX and PyTorch! And that's not all: Penzai itself now has less boilerplate and includes more pretrained Transformer models!
1
1
6
1,400
The 🐑 PECoRe / 🌴 MIRAGE demo on @huggingface Spaces is powered by our new attribute-context CLI command released in v0.6, and allows to export the code to reproduce your results locally with 🐛 Inseq. Check it out ➡️ hf.co/spaces/gsarti/pecore
⚠️ Citations from prompting or NLI seem plausible, but may not faithfully reflect LLM reasoning. 🏝️ MIRAGE detects context dependence in generations via model internals, producing granular and faithful RAG citations. 🚀 Demo: huggingface.co/spaces/gsarti… Fun collab w/ @Jirui_Qi, @AriannaBisazza & @raquel_dmg! Check it out ⬇️
2
6
1,494
Today @InseqLib hit 300 ⭐️ on Github! A huge thank you to all our awesome users ❤️ Onwards to the next 300! 🤺
1
18
375
Did someone say Mamba support? 👀 (Actually gradient-based methods are not working out-of-the-box because of some in-place variable overwriting, but should be fixable!)
Arthur Zucker
@art_zucker7 Mar 2024
`mamba` is now available in transformers. PEFT finetuning example: gist.github.com/ArthurZucker… Thanks @_albertgu and @tri_dao for this brilliant model! 🚀 and the amazing `mamba-ssm` kernels powering this!
1
1
9
646
Value Zeroing, a faithful approach for analyzing context mixing in Transformers, is now available on @InseqLib main branch for all @huggingface text generation models! 🔀 🔍Paper introducing VZ: aclanthology.org/2023.eacl-m… 🐛VZ in Inseq: tinyurl.com/inseq-vz
1
3
2
16
3,904
Want to analyze LLMs with >50B params, but they're so huge that even quantization fails? 🤯 Fear not, attribution for petals 🌸 distributed LLMs has just landed in the @InseqLib main branch! 🚀 Tutorial: tinyurl.com/inseq-petals cc @m_ryabinin @sasha_borzunov @BigscienceW
8
2
32
9,239
How does the new 🦅 Falcon model use its prompt information to generate an answer? 🤔 Here's how to use @InseqLib, 4-bit support from @huggingface @Tim_Dettmers and ~26gb GPU RAM to find out! (h/t @peppeatta for his first contribution! 🎉)
1
7
612
🔥 Just merged in main: attention attribution with customizable attention head/layer aggregation!
1
5
559