Skip to content

Conversation

@spinjo
Copy link

@spinjo spinjo commented Feb 14, 2025

Adding the Lorentz-Equivariant Geometric Algebra Transformer from https://github.com/heidelberg-hepml/lgatr as another option.

Example for how to use the code: jet-universe/particle_transformer#5

Optimized version using xformers attention (50% less memory, 30% faster for batchsize 128 on A100): https://github.com/spinjo/weaver-core/tree/xformers

Changes

  • LGATr.py file with interface between weaver and the lgatr package
  • Added optimizer=lion option in train.py (required to reproduce the LGATr paper results)
  • Turn off flops counting in train.py (conflicts with the einops used in lgatr)
  • Added lgatr and pytorch_optimizer to requirements.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant