| 642 | } |
| 643 | |
| 644 | inline float clip(float x, float v) { |
| 645 | return x < -v ? -v : (x > v ? v : x); |
| 646 | } |
| 647 | |
| 648 | static void rope(float* buf, float* vec, int d, int head_dim, int pos, float theta) { |
| 649 | // For some reason, DeepSeek-V2 was trained using rope output |
nothing calls this directly
no outgoing calls
no test coverage detected