ggml
[Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685)
Brought by drakestapleton
ggml / src / ggml-cuda / ssm-scan.cuh
| 1 | #include "common.cuh" |
| 2 | |
| 3 | // fused-kernel recurrent-state output; strides in elements (per-seq stride is always the state row size, set in-kernel) |
| 4 | struct ggml_cuda_ssm_scan_fused_cache { |
| 5 | float * data; // rollback slot 0 |
| 6 | int64_t slot_stride; // between rollback slots |
| 7 | }; |
| 8 | |
| 9 | void ggml_cuda_op_ssm_scan(ggml_backend_cuda_context & ctx, ggml_tensor * dst); |
| 10 | |
| 11 | // same op, but writes the state snapshot(s) into the cache instead of dst (see ggml_cuda_try_ssm_scan_cache_fusion) |
| 12 | void ggml_cuda_op_ssm_scan_fused_cache(ggml_backend_cuda_context & ctx, ggml_tensor * dst, |
| 13 | ggml_cuda_ssm_scan_fused_cache cache); |