Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenDriveLab/ReSim
/ test_triton_rotary_embedding.py
File
test_triton_rotary_embedding.py
SwissArmyTransformer/tests/test_triton_rotary_embedding.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
math
2
import
os
3
import
torch
4
import
torch.nn.functional
as
F
Callers
nothing calls this directly
Calls
10
FastRotaryEmbedding
Class · 0.90
RotaryEmbedding
Class · 0.90
apply_rotary_pos_emb_bhs
Function · 0.90
SatRotaryEmbedding
Class · 0.85
apply_rotary_pos_emb_index_bhs
Function · 0.85
device
Method · 0.80
to
Method · 0.80
print
Function · 0.50
max
Method · 0.45
backward
Method · 0.45
Tested by
no test coverage detected