Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/ggml/blob/master/src/ggml-cuda/gated_delta_net.cuh # ggml [Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685) Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `ggml / src / ggml-cuda / gated_delta_net.cuh` 14 lines ยท 689 bytes Raw Blame History 1 #include "common.cuh" 2 #include "ggml.h" 3 4 // fused-kernel recurrent-state output; strides in elements (per-seq stride is always D, set in-kernel) 5 struct ggml_cuda_gated_delta_net_fused_cache { 6 float * data; // rollback slot 0 7 int64_t slot_stride; // between rollback slots (0 when K==1) 8 }; 9 10 void ggml_cuda_op_gated_delta_net(ggml_backend_cuda_context & ctx, ggml_tensor * dst); 11 12 // same op, but writes the snapshot(s) into the cache instead of dst (see ggml_cuda_try_gdn_cache_fusion) 13 void ggml_cuda_op_gated_delta_net_fused_cache(ggml_backend_cuda_context & ctx, ggml_tensor * dst, 14 ggml_cuda_gated_delta_net_fused_cache cache);