ggml
[Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685)
Brought by drakestapleton
ggml / src / ggml-vulkan / vulkan-shaders / rope_params.glsl
| 1 | #if !defined(GGML_ROPE_PARAMS) |
| 2 | #define GGML_ROPE_PARAMS |
| 3 | |
| 4 | struct rope_params { |
| 5 | uint rope_mode; |
| 6 | uint nrows; |
| 7 | uint n_dims; |
| 8 | uint n_offs; |
| 9 | float freq_scale; |
| 10 | float freq_base; |
| 11 | float ext_factor; |
| 12 | float attn_factor; |
| 13 | float corr_dims[2]; |
| 14 | float theta_scale; |
| 15 | uint has_ff; |
| 16 | int sections[4]; |
| 17 | uint is_imrope; |
| 18 | uint is_back; |
| 19 | uint set_rows_stride; |
| 20 | |
| 21 | uint ne00; |
| 22 | uint ne01; |
| 23 | uint ne02; |
| 24 | uint nb01; |
| 25 | uint nb02; |
| 26 | uint nb03; |
| 27 | uint nb11; |
| 28 | uint nb12; |
| 29 | uint nb13; |
| 30 | |
| 31 | uint a_offset; |
| 32 | uint d_offset; |
| 33 | }; |
| 34 | |
| 35 | #endif // !defined(GGML_ROPE_PARAMS) |