File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments