Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion torchtune/modules/position_embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class RotaryPositionalEmbeddings(nn.Module):

Reference implementation (used for correctness verfication)
can be found here:
https://github.com/meta-llama/llama/blob/main/llama/model.py#L80
https://github.com/meta-llama/llama/blob/689c7f261b9c5514636ecc3c5fefefcbb3e6eed7/llama/model.py#L132

In this implementation we cache the embeddings for each position upto
``max_seq_len`` by computing this during init.
Expand Down