Rare find

Rotary Embedding. A tool that helps AI models understand word order and position.

github.com/lucidrains/rotary-embedding-torch

Vaya's read on this project

Problem, audience, market, and the verdict — sign in to see it.

Updates

June 2026
  • tests and gqa
  • cleanup
  • add a fused flash attention with rotary where one can define which to…
January 2026
  • link to pope
July 2025
  • Release —0.8.9
  • patch
  • Release —0.8.8
  • some defaults for .get_seq_pos device and dtype
  • Release —0.8.7
  • add ability to offset the axial dimensions when fetching axial freque…
November 2024
  • Release —0.8.6
  • 0.8.6
  • Merge pull request #38 from f0k/int-seq-len
  • Change cached seq_len from buffer to plain int
  • Release —0.8.5
  • assume sequence dimension for freqs to be first if freqs only has two…
September 2024
  • Release —0.8.4
  • can slice the rotary pos emb being passed into apply_rotary_emb at th…
  • Release —0.8.3
  • only set cache if offset is 0
  • Release —0.8.2
  • address https://github.com/lucidrains/rotary-embedding-torch/issues/1…
  • Release —0.8.1
  • Release —0.8.0
  • xpos fix
  • Merge pull request #34 from TimFelixBeyer/patch-1
  • Fix chi scale multiplication
  • get rid of a warning
August 2024
  • avoid an inplace-op
  • Merge pull request #31 from blasscoc/blasscoc-patch-inplace-error