awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
jessevig avatar

jessevig/bertviz

0
View on GitHub↗

Bertviz

BertViz is a diagnostic toolset for visualizing attention heads and internal model behaviors to interpret how language models process text. It serves as an interpretability tool and debugger for natural language processing models, specifically providing interactive maps of attention mechanisms within Transformer architectures.

The project enables the analysis of token relationships through detailed views of specific attention heads and layers. It supports global attention visualization across all layers, encoder-decoder attention mapping, and the inspection of individual neurons within query and key vectors to reveal their contribution to attention computations.

The tool provides capabilities for filtering views by layer, head, or sentence pairs. Visualizations are rendered directly within notebook environments via HTML and JavaScript injection, and they can be exported as standalone HTML files for external sharing.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Features

  • Attention Visualizations - Renders interactive maps of attention mechanisms to visualize how encoders and decoders weight sequences.
  • Activation Visualizations - Displays individual neurons within query and key vectors to visualize their specific contributions to attention computation.
  • Neuron Inspections - Enables the inspection of individual neurons within query and key vectors to understand their role in attention computation.
  • LLM Interpretability Dashboards - Provides a visual interface for analyzing the behavior and internal representations of large language models.
  • Latent Attention Analysis - Analyzes the contribution of individual neurons and query-key vectors to overall attention computation.
  • NLP Model Debugging - Identifies unexpected model behaviors by inspecting specific attention heads and neuron activity.
  • Transformer Interpretability - Analyzes how Transformer models process language by visualizing attention weights and token relationships.
  • Model Execution Debuggers - Inspects the internal behavior of NLP models by visualizing encoder and decoder layers.
  • Attention Head Analyzers - Provides detailed views of specific attention heads and layers to identify token weighting patterns.
  • Attention View Filtering - Restricts visualizations to specific layers, attention heads, or sentence pairs to isolate model behaviors.
  • Global Attention Views - Provides a comprehensive view of attention patterns across all layers and heads in a transformer model.
  • Sentence-Level Filters - Provides the ability to isolate and visualize attention weights for specific sentences when processing pairs of text.
  • Attention Slice Filtering - Employs selective indexing to extract and display specific attention slices from model outputs.
  • Interactive Visualization Rendering - Provides interactive rendering of attention weights and neuron activity that updates based on user input.
  • Notebook Visualization Injections - Injects HTML and JavaScript directly into notebook cells to render interactive attention visualizations.
  • Encoder-Decoder Attention Mapping - Renders interactive attention maps for encoder and decoder layers to analyze cross-component token relationships.
  • Model Utilities - Visualization tool for inspecting attention mechanisms in transformers.
8,210 stars·887 forks·Python·Apache-2.0·21 views

Star history

Star history chart for jessevig/bertvizStar history chart for jessevig/bertviz

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

Projects sharing features with Bertviz

These projects share indexed features with Bertviz. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • tingsongyu/pytorch_tutorialTingsongYu avatar

    TingsongYu/PyTorch_Tutorial

    8,018View on GitHub↗

    This project is a comprehensive collection of educational examples and reference implementations for building vision and language models using PyTorch. It serves as a deep learning tutorial covering the end-to-end process of developing neural networks, from initial architecture definition to final production deployment. The repository provides detailed guides on implementing a wide range of domain-specific models, including convolutional neural networks for object detection and segmentation, as well as transformer and recurrent architectures for natural language processing. It emphasizes gene

    Python
    View on GitHub↗8,018
  • transformerlensorg/transformerlensTransformerLensOrg avatar

    TransformerLensOrg/TransformerLens

    4,054View on GitHub↗

    TransformerLens is a library for mechanistic interpretability research designed to reverse engineer the learned algorithms within large language models. It provides a standardized framework for wrapping diverse transformer architectures, allowing researchers to extract, manipulate, and analyze internal activations and weights through a consistent interface. The project distinguishes itself through a comprehensive system of activation hooks that can capture, patch, and ablate internal tensors during the forward pass. It includes specialized utilities for decomposing fused projections, material

    Python
    View on GitHub↗4,054
  • facebookresearch/dinofacebookresearch avatar

    facebookresearch/dino

    7,592View on GitHub↗

    This project is a PyTorch vision transformer framework designed for self-supervised learning. It implements a model that trains visual representations using a momentum teacher and self-distillation without the need for labeled data. The library functions as an image feature extractor and visual attention visualizer, allowing for the generation of high-dimensional vectors and the rendering of self-attention maps as heatmaps or videos to analyze model focus. It provides comprehensive tools for downstream vision evaluation, including linear probe classification, k-nearest neighbor categorizatio

    Python
    View on GitHub↗7,592
  • imagineailab/ai-by-hand-excelImagineAILab avatar

    ImagineAILab/ai-by-hand-excel

    6,177View on GitHub↗

    This project consists of interactive spreadsheet-based models designed to demonstrate the mathematical mechanics of backpropagation, multi-layer perceptrons, and transformer attention. It serves as an Excel-based neural network simulator for manually calculating tensor operations and matrix multiplications to visualize data flow. The models provide a way to visualize the internal logic of neural networks by implementing self-attention and backpropagation through explicit cell formulas. It includes specific mathematical exercises for modeling transformer architecture and the layers of multi-la

    View on GitHub↗6,177
Compare all 30 related projects→

Frequently asked questions

What does jessevig/bertviz do?

BertViz is a diagnostic toolset for visualizing attention heads and internal model behaviors to interpret how language models process text. It serves as an interpretability tool and debugger for natural language processing models, specifically providing interactive maps of attention mechanisms within Transformer architectures.

What are the main features of jessevig/bertviz?

The main features of jessevig/bertviz are: Attention Visualizations, Activation Visualizations, Neuron Inspections, LLM Interpretability Dashboards, Latent Attention Analysis, NLP Model Debugging, Transformer Interpretability, Model Execution Debuggers.

Which projects share features with jessevig/bertviz?

Projects with overlapping indexed features include: tingsongyu/pytorch_tutorial — This project is a comprehensive collection of educational examples and reference implementations for building vision… transformerlensorg/transformerlens — TransformerLens is a library for mechanistic interpretability research designed to reverse engineer the learned… facebookresearch/dino — This project is a PyTorch vision transformer framework designed for self-supervised learning. It implements a model… imagineailab/ai-by-hand-excel — This project consists of interactive spreadsheet-based models designed to demonstrate the mathematical mechanics of… openai/transformer-debugger — This project is a language model interpretability tool designed to visualize and analyze the internal activations and… tensorspace-team/tensorspace — Tensorspace is a WebGL-based 3D visualization framework and renderer designed to map deep learning model architectures…