mattneary / attention
visualizing attention for LLM users
☆193Updated 2 months ago
Alternatives and similar repositories for attention:
Users that are interested in attention are comparing it to the libraries listed below
- Steering vectors for transformer language models in Pytorch / Huggingface☆88Updated last week
- Extract full next-token probabilities via language model APIs☆231Updated last year
- Scripts for generating synthetic finetuning data for reducing sycophancy.☆108Updated last year
- Code accompanying "How I learned to start worrying about prompt formatting".☆102Updated 5 months ago
- Code for In-context Vectors: Making In Context Learning More Effective and Controllable Through Latent Space Steering☆164Updated 2 weeks ago
- ☆283Updated last year
- datasets from the paper "Towards Understanding Sycophancy in Language Models"☆71Updated last year
- ☆152Updated 3 weeks ago
- ☆153Updated this week
- Inference-Time Intervention: Eliciting Truthful Answers from a Language Model☆502Updated last month
- A curated list of papers related to constrained decoding of LLM, along with their relevant code and resources.☆165Updated this week
- Evaluating LLMs with fewer examples☆145Updated 10 months ago
- Inspecting and Editing Knowledge Representations in Language Models☆112Updated last year
- Code and data for "Lost in the Middle: How Language Models Use Long Contexts"☆333Updated last year
- Function Vectors in Large Language Models (ICLR 2024)☆140Updated 4 months ago
- LLM experiments done during SERI MATS - focusing on activation steering / interpreting activation spaces☆89Updated last year
- Steer LLM outputs towards a certain topic/subject and enhance response capabilities using activation engineering by adding steering vecto…☆224Updated 2 weeks ago
- [EMNLP 2023] Adapting Language Models to Compress Long Contexts☆293Updated 5 months ago
- Controlled Text Generation via Language Model Arithmetic☆215Updated 5 months ago
- Create feature-centric and prompt-centric visualizations for sparse autoencoders (like those from Anthropic's published research).☆183Updated 2 months ago
- PASTA: Post-hoc Attention Steering for LLMs☆113Updated 3 months ago
- Improving Alignment and Robustness with Circuit Breakers☆187Updated 5 months ago
- Steering Llama 2 with Contrastive Activation Addition☆124Updated 9 months ago
- ☆191Updated last year
- Official implementation for the paper "DoLa: Decoding by Contrasting Layers Improves Factuality in Large Language Models"☆464Updated last month
- Code and data accompanying our paper on arXiv "Faithful Chain-of-Thought Reasoning".☆157Updated 9 months ago
- ☆79Updated 6 months ago
- Mass-editing thousands of facts into a transformer memory (ICLR 2023)☆464Updated last year
- A resource repository for representation engineering in large language models☆107Updated 3 months ago
- ☆305Updated 8 months ago