ggml
[Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685)
Brought by drakestapleton
ggml / src / ggml-cuda / gated-delta-net-mma.cuh
| 1 | #pragma once |
| 2 | |
| 3 | #include "common.cuh" |
| 4 | |
| 5 | #include <cstdint> |
| 6 | |
| 7 | struct ggml_cuda_gdn_mma_args { |
| 8 | const float * q; |
| 9 | const float * k; |
| 10 | const float * v; |
| 11 | const float * g; |
| 12 | const float * beta; |
| 13 | const float * state; |
| 14 | float * dst; |
| 15 | float * state_out; |
| 16 | |
| 17 | int64_t H; |
| 18 | int64_t H_k; |
| 19 | int64_t n_tokens; |
| 20 | int64_t n_seqs; |
| 21 | int64_t rq3; |
| 22 | int64_t sq1; |
| 23 | int64_t sq2; |
| 24 | int64_t sq3; |
| 25 | int64_t sv1; |
| 26 | int64_t sv2; |
| 27 | int64_t sv3; |
| 28 | int64_t sb1; |
| 29 | int64_t sb2; |
| 30 | int64_t sb3; |
| 31 | float scale; |
| 32 | bool eligible; |
| 33 | }; |
| 34 | |
| 35 | bool ggml_cuda_gdn_mma_launch(int device, const ggml_cuda_gdn_mma_args & args, cudaStream_t stream); |