Apps for Visualization and Running Inference§
The dual_attention.model_analysis subpackage provides two apps for visualizing the internal representations of a trained DAT language model or running inference in a graphical user interface. The apps are also hosted online on Huggingface Spaces.
To run the inference app, you can simply run the following code:
python -m dual_attention.model_analysis.lm_inference_app
To run the visualization app, you can simply run the following code:
python -m dual_attention.model_analysis.lm_visualization_app