Skip to content

Commit aa7cca7

Browse files
committed
Link to PR #15
1 parent 28262d3 commit aa7cca7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/models/utils/modules.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ def rotate_queries_or_keys(x, pos):
3838
emb_cos = freq.cos() # (..., N, D/2)
3939
# -- NOTE: This expansion has a subtle bug where frequencies are duplicated across the vector pair.
4040
# -- Fixing the bug would break compatibility with the pretrained model, but the fix can be applied by commenting
41-
# -- out the two lines below, and uncommenting the following two lines. (Thanks to @echosprint)
41+
# -- out the two lines below, and uncommenting the following two lines.
42+
# -- Thanks to @echosprint, original PR: https://github.com/facebookresearch/vjepa2/pull/15
4243
emb_sin = emb_sin.squeeze(-1).repeat(1, 1, 1, 2)
4344
emb_cos = emb_cos.squeeze(-1).repeat(1, 1, 1, 2)
4445
# emb_sin = emb_sin.repeat_interleave(2, dim=-1) # (..., N, D)

0 commit comments

Comments
 (0)