Skip to content

ablghtianyi/ICL_Modular_Arithmetic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learning to grok: Emergence of in-context learning and skill composition in modular arithmetic tasks

This is an official implementation of the paper arXiv:2406.02550.

Main Result

Requirements

  • Tested Environment:
    • Python == 3.11.4
    • PyTorch >= 2.2
  • Run pip install -r requirements.txt before using

Structure of this Repo

We offer separate README files in each folder.

  • Tools: _src/
  • Pre-training scripts: pre_training/
  • Interpretability:
    • Fig 5: interpretability/... Fig 5
    • Attention Map and PCA Analysis: interpretability/pca_analysis*

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages