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-cpu/tiled/tiled.h # 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-cpu / tiled / tiled.h` 31 lines ยท 1387 bytes Raw Blame History 1 #pragma once 2 3 #include 4 #include 5 6 #ifdef __cplusplus 7 extern "C" { 8 #endif 9 10 // Amount of wdata to reserve for tiled workspaces 11 size_t ggml_tiled_wdata_size(int n_tasks, struct ggml_tensor * dst); 12 13 // tiled K-quant matmul; returns true if the op was computed here, 14 // false to fall through to the stock path 15 bool ggml_compute_forward_mul_mat_tiled(const struct ggml_compute_params * params, 16 struct ggml_tensor * dst); 17 18 // MUL_MAT_ID (MoE) path, one expert; returns true if the expert was computed here, per expert 19 // eligibility (type gate, batch floor) is decided inside. expert_rows points at the expert's 20 // row of the matrix_rows table of (expert slot, batch row) int32 pairs; scratch is the 21 // per-thread tiled_ws region reserved in wdata, n_tasks of ggml_tiled_ws_size() bytes 22 bool ggml_compute_forward_mul_mat_id_tiled(const struct ggml_compute_params * params, 23 struct ggml_tensor * dst, 24 int64_t cur_a, 25 int64_t cne1, 26 const int32_t * expert_rows, 27 char * scratch); 28 29 #ifdef __cplusplus 30 } 31 #endif