inseq-team / inseq

Interpretability for sequence generation models 🐛 🔍
https://inseq.org
Apache License 2.0
378 stars 36 forks source link

`treescope` visualization for `attribute_context` #284

Closed gsarti closed 3 months ago

gsarti commented 3 months ago

Description

This PR introduces a new visualization based on the treescope library for the attribute_context CLI method.

Currently, the visualization is produced using rich using the same format for console and notebook environments:

image

The main limitations of this mode of visualization are:

The new proposed visualization is the following:

image

It includes:

Details about usage: