interplane.Get Omega
Read in your language

ggml

[Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685)

Brought by drakestapleton

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 <stddef.h>
4#include <stdint.h>
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10// Amount of wdata to reserve for tiled workspaces
11size_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
15bool 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
22bool 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