Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

A test of the 'Attention is Off by One' hypothesis. Softermax implementation of llama based on HuggingFace Transformers. We name the subclassed huggingface model SofterLlama (mainly so IDE autocomplete is more convenient than "LlamaSoftermax", but it also sounds nicer).

Devlog

We track development using this Google Doc

Requirements

Coincidentally, our timing on adapting llama falls under a massive PR refactoring kv cache utils, partially motivated by attention sinks which is tangentially related to softermax (main difference being our inital "token" that serves as an "attention sink" doesn't have a corresponding V matrix entry).

Since this is the case, we must use transformers==4.36.1 onwards as the latest version to have access to the Cache object.

About

HuggingFace experiments for Softermax

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages