Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

xycoord/Language-Modelling

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Language Modelling

Transformer Implementation [code]

  • KV Cache [code]
    Stateless transformer design with external cache management
  • Rotary Positional Embeddings [blog] [code]
    Both interleaved and half-flipped rotations; direct application and factory patterns for different use cases

Mech Interp [code]

  • Toy Models of Superposition
    Reproduce 5→2→5 experiments, plotting feature directions in the compressed activation space
  • Sparse Autoencoders
    ReLU, TopK and BatchTopK implementations. Trained to recover features from toy models

Engineering

  • BPE Tokeniser [blog] [code]
    6 training optimisations to go from 8 hours to 13s.
  • Test Suite [code]
    Comprehensive testing for transformer and tokeniser implementations

About

Implementations and Experiments: Transformers, RoPE, KV cache, SAEs, Tokenisers

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.