|
Krotos Modules 3
|
#include <stdint.h>#include <stddef.h>#include <stdbool.h>Go to the source code of this file.
Classes | |
| struct | ggml_object |
| struct | ggml_tensor |
| struct | ggml_cgraph |
| struct | ggml_scratch |
| struct | ggml_init_params |
| struct | ggml_opt_params |
| struct | quantize_fns_t |
Macros | |
| #define | GGML_API |
| #define | GGML_FILE_MAGIC 0x67676d6c |
| #define | GGML_FILE_VERSION 1 |
| #define | GGML_MAX_DIMS 4 |
| #define | GGML_MAX_NODES 4096 |
| #define | GGML_MAX_PARAMS 16 |
| #define | GGML_MAX_CONTEXTS 64 |
| #define | GGML_MAX_OPT 4 |
| #define | GGML_DEFAULT_N_THREADS 4 |
| #define | GGML_ASSERT(x) |
| #define | GGML_RESTRICT restrict |
Typedefs | |
| typedef uint16_t | ggml_fp16_t |
| typedef void(* | ggml_unary_op_f32_t) (const int, float *, const float *) |
| typedef void(* | ggml_binary_op_f32_t) (const int, float *, const float *, const float *) |
| typedef void(* | dequantize_row_q_t) (const void *GGML_RESTRICT x, float *GGML_RESTRICT y, int k) |
| typedef void(* | quantize_row_q_t) (const float *GGML_RESTRICT x, void *GGML_RESTRICT y, int k) |
| typedef void(* | vec_dot_q_t) (const int n, float *GGML_RESTRICT s, const void *GGML_RESTRICT x, const void *GGML_RESTRICT y) |
Functions | |
| GGML_API float | ggml_fp16_to_fp32 (ggml_fp16_t x) |
| GGML_API ggml_fp16_t | ggml_fp32_to_fp16 (float x) |
| GGML_API void | ggml_fp16_to_fp32_row (const ggml_fp16_t *x, float *y, size_t n) |
| GGML_API void | ggml_fp32_to_fp16_row (const float *x, ggml_fp16_t *y, size_t n) |
| GGML_API void | ggml_time_init (void) |
| GGML_API int64_t | ggml_time_ms (void) |
| GGML_API int64_t | ggml_time_us (void) |
| GGML_API int64_t | ggml_cycles (void) |
| GGML_API int64_t | ggml_cycles_per_ms (void) |
| GGML_API void | ggml_print_object (const struct ggml_object *obj) |
| GGML_API void | ggml_print_objects (const struct ggml_context *ctx) |
| GGML_API int64_t | ggml_nelements (const struct ggml_tensor *tensor) |
| GGML_API size_t | ggml_nbytes (const struct ggml_tensor *tensor) |
| GGML_API int | ggml_blck_size (enum ggml_type type) |
| GGML_API size_t | ggml_type_size (enum ggml_type type) |
| GGML_API float | ggml_type_sizef (enum ggml_type type) |
| GGML_API const char * | ggml_type_name (enum ggml_type type) |
| GGML_API size_t | ggml_element_size (const struct ggml_tensor *tensor) |
| GGML_API bool | ggml_is_quantized (enum ggml_type type) |
| GGML_API enum ggml_type | ggml_ftype_to_ggml_type (enum ggml_ftype ftype) |
| GGML_API struct ggml_context * | ggml_init (struct ggml_init_params params) |
| GGML_API void | ggml_free (struct ggml_context *ctx) |
| GGML_API size_t | ggml_used_mem (const struct ggml_context *ctx) |
| GGML_API size_t | ggml_set_scratch (struct ggml_context *ctx, struct ggml_scratch scratch) |
| GGML_API struct ggml_tensor * | ggml_new_tensor (struct ggml_context *ctx, enum ggml_type type, int n_dims, const int64_t *ne) |
| GGML_API struct ggml_tensor * | ggml_new_tensor_1d (struct ggml_context *ctx, enum ggml_type type, int64_t ne0) |
| GGML_API struct ggml_tensor * | ggml_new_tensor_2d (struct ggml_context *ctx, enum ggml_type type, int64_t ne0, int64_t ne1) |
| GGML_API struct ggml_tensor * | ggml_new_tensor_3d (struct ggml_context *ctx, enum ggml_type type, int64_t ne0, int64_t ne1, int64_t ne2) |
| GGML_API struct ggml_tensor * | ggml_new_tensor_4d (struct ggml_context *ctx, enum ggml_type type, int64_t ne0, int64_t ne1, int64_t ne2, int64_t ne3) |
| GGML_API struct ggml_tensor * | ggml_new_i32 (struct ggml_context *ctx, int32_t value) |
| GGML_API struct ggml_tensor * | ggml_new_f32 (struct ggml_context *ctx, float value) |
| GGML_API struct ggml_tensor * | ggml_dup_tensor (struct ggml_context *ctx, const struct ggml_tensor *src) |
| GGML_API struct ggml_tensor * | ggml_view_tensor (struct ggml_context *ctx, const struct ggml_tensor *src) |
| GGML_API struct ggml_tensor * | ggml_set_zero (struct ggml_tensor *tensor) |
| GGML_API struct ggml_tensor * | ggml_set_i32 (struct ggml_tensor *tensor, int32_t value) |
| GGML_API struct ggml_tensor * | ggml_set_f32 (struct ggml_tensor *tensor, float value) |
| GGML_API int32_t | ggml_get_i32_1d (const struct ggml_tensor *tensor, int i) |
| GGML_API void | ggml_set_i32_1d (const struct ggml_tensor *tensor, int i, int32_t value) |
| GGML_API float | ggml_get_f32_1d (const struct ggml_tensor *tensor, int i) |
| GGML_API void | ggml_set_f32_1d (const struct ggml_tensor *tensor, int i, float value) |
| GGML_API void * | ggml_get_data (const struct ggml_tensor *tensor) |
| GGML_API float * | ggml_get_data_f32 (const struct ggml_tensor *tensor) |
| GGML_API const char * | ggml_get_name (const struct ggml_tensor *tensor) |
| GGML_API void | ggml_set_name (struct ggml_tensor *tensor, const char *name) |
| GGML_API struct ggml_tensor * | ggml_dup (struct ggml_context *ctx, struct ggml_tensor *a) |
| GGML_API struct ggml_tensor * | ggml_add (struct ggml_context *ctx, struct ggml_tensor *a, struct ggml_tensor *b) |
| GGML_API struct ggml_tensor * | ggml_add_inplace (struct ggml_context *ctx, struct ggml_tensor *a, struct ggml_tensor *b) |
| GGML_API struct ggml_tensor * | ggml_sub (struct ggml_context *ctx, struct ggml_tensor *a, struct ggml_tensor *b) |
| GGML_API struct ggml_tensor * | ggml_mul (struct ggml_context *ctx, struct ggml_tensor *a, struct ggml_tensor *b) |
| GGML_API struct ggml_tensor * | ggml_div (struct ggml_context *ctx, struct ggml_tensor *a, struct ggml_tensor *b) |
| GGML_API struct ggml_tensor * | ggml_sqr (struct ggml_context *ctx, struct ggml_tensor *a) |
| GGML_API struct ggml_tensor * | ggml_sqrt (struct ggml_context *ctx, struct ggml_tensor *a) |
| GGML_API struct ggml_tensor * | ggml_sum (struct ggml_context *ctx, struct ggml_tensor *a) |
| GGML_API struct ggml_tensor * | ggml_mean (struct ggml_context *ctx, struct ggml_tensor *a) |
| GGML_API struct ggml_tensor * | ggml_repeat (struct ggml_context *ctx, struct ggml_tensor *a, struct ggml_tensor *b) |
| GGML_API struct ggml_tensor * | ggml_abs (struct ggml_context *ctx, struct ggml_tensor *a) |
| GGML_API struct ggml_tensor * | ggml_sgn (struct ggml_context *ctx, struct ggml_tensor *a) |
| GGML_API struct ggml_tensor * | ggml_neg (struct ggml_context *ctx, struct ggml_tensor *a) |
| GGML_API struct ggml_tensor * | ggml_step (struct ggml_context *ctx, struct ggml_tensor *a) |
| GGML_API struct ggml_tensor * | ggml_relu (struct ggml_context *ctx, struct ggml_tensor *a) |
| GGML_API struct ggml_tensor * | ggml_gelu (struct ggml_context *ctx, struct ggml_tensor *a) |
| GGML_API struct ggml_tensor * | ggml_silu (struct ggml_context *ctx, struct ggml_tensor *a) |
| GGML_API struct ggml_tensor * | ggml_norm (struct ggml_context *ctx, struct ggml_tensor *a) |
| GGML_API struct ggml_tensor * | ggml_rms_norm (struct ggml_context *ctx, struct ggml_tensor *a) |
| GGML_API struct ggml_tensor * | ggml_mul_mat (struct ggml_context *ctx, struct ggml_tensor *a, struct ggml_tensor *b) |
| GGML_API struct ggml_tensor * | ggml_scale (struct ggml_context *ctx, struct ggml_tensor *a, struct ggml_tensor *b) |
| GGML_API struct ggml_tensor * | ggml_cpy (struct ggml_context *ctx, struct ggml_tensor *a, struct ggml_tensor *b) |
| GGML_API struct ggml_tensor * | ggml_cont (struct ggml_context *ctx, struct ggml_tensor *a) |
| GGML_API struct ggml_tensor * | ggml_reshape (struct ggml_context *ctx, struct ggml_tensor *a, struct ggml_tensor *b) |
| GGML_API struct ggml_tensor * | ggml_reshape_2d (struct ggml_context *ctx, struct ggml_tensor *a, int64_t ne0, int64_t ne1) |
| GGML_API struct ggml_tensor * | ggml_reshape_3d (struct ggml_context *ctx, struct ggml_tensor *a, int64_t ne0, int64_t ne1, int64_t ne2) |
| GGML_API struct ggml_tensor * | ggml_view_1d (struct ggml_context *ctx, struct ggml_tensor *a, int64_t ne0, size_t offset) |
| GGML_API struct ggml_tensor * | ggml_view_2d (struct ggml_context *ctx, struct ggml_tensor *a, int64_t ne0, int64_t ne1, size_t nb1, size_t offset) |
| GGML_API struct ggml_tensor * | ggml_view_3d (struct ggml_context *ctx, struct ggml_tensor *a, int64_t ne0, int64_t ne1, int64_t ne2, size_t nb1, size_t nb2, size_t offset) |
| GGML_API struct ggml_tensor * | ggml_permute (struct ggml_context *ctx, struct ggml_tensor *a, int axis0, int axis1, int axis2, int axis3) |
| GGML_API struct ggml_tensor * | ggml_transpose (struct ggml_context *ctx, struct ggml_tensor *a) |
| GGML_API struct ggml_tensor * | ggml_get_rows (struct ggml_context *ctx, struct ggml_tensor *a, struct ggml_tensor *b) |
| GGML_API struct ggml_tensor * | ggml_diag_mask_inf (struct ggml_context *ctx, struct ggml_tensor *a, int n_past) |
| GGML_API struct ggml_tensor * | ggml_soft_max (struct ggml_context *ctx, struct ggml_tensor *a) |
| GGML_API struct ggml_tensor * | ggml_rope (struct ggml_context *ctx, struct ggml_tensor *a, int n_past, int n_dims, int mode) |
| struct ggml_tensor * | ggml_alibi (struct ggml_context *ctx, struct ggml_tensor *a, int n_past, int n_head) |
| GGML_API struct ggml_tensor * | ggml_conv_1d_1s (struct ggml_context *ctx, struct ggml_tensor *a, struct ggml_tensor *b) |
| GGML_API struct ggml_tensor * | ggml_conv_1d_2s (struct ggml_context *ctx, struct ggml_tensor *a, struct ggml_tensor *b) |
| GGML_API struct ggml_tensor * | ggml_flash_attn (struct ggml_context *ctx, struct ggml_tensor *q, struct ggml_tensor *k, struct ggml_tensor *v, bool masked) |
| GGML_API struct ggml_tensor * | ggml_flash_ff (struct ggml_context *ctx, struct ggml_tensor *a, struct ggml_tensor *b0, struct ggml_tensor *b1, struct ggml_tensor *c0, struct ggml_tensor *c1) |
| GGML_API struct ggml_tensor * | ggml_map_unary_f32 (struct ggml_context *ctx, struct ggml_tensor *a, const ggml_unary_op_f32_t fun) |
| GGML_API struct ggml_tensor * | ggml_map_binary_f32 (struct ggml_context *ctx, struct ggml_tensor *a, struct ggml_tensor *b, const ggml_binary_op_f32_t fun) |
| GGML_API void | ggml_set_param (struct ggml_context *ctx, struct ggml_tensor *tensor) |
| GGML_API void | ggml_build_forward_expand (struct ggml_cgraph *cgraph, struct ggml_tensor *tensor) |
| GGML_API struct ggml_cgraph | ggml_build_forward (struct ggml_tensor *tensor) |
| GGML_API struct ggml_cgraph | ggml_build_backward (struct ggml_context *ctx, struct ggml_cgraph *gf, bool keep) |
| GGML_API void | ggml_graph_compute (struct ggml_context *ctx, struct ggml_cgraph *cgraph) |
| GGML_API void | ggml_graph_reset (struct ggml_cgraph *cgraph) |
| GGML_API void | ggml_graph_print (const struct ggml_cgraph *cgraph) |
| GGML_API void | ggml_graph_dump_dot (const struct ggml_cgraph *gb, const struct ggml_cgraph *gf, const char *filename) |
| GGML_API struct ggml_opt_params | ggml_opt_default_params (enum ggml_opt_type type) |
| GGML_API enum ggml_opt_result | ggml_opt (struct ggml_context *ctx, struct ggml_opt_params params, struct ggml_tensor *f) |
| GGML_API size_t | ggml_quantize_q4_0 (const float *src, void *dst, int n, int k, int64_t *hist) |
| GGML_API size_t | ggml_quantize_q4_1 (const float *src, void *dst, int n, int k, int64_t *hist) |
| GGML_API size_t | ggml_quantize_q4_2 (const float *src, void *dst, int n, int k, int64_t *hist) |
| GGML_API size_t | ggml_quantize_q5_0 (const float *src, void *dst, int n, int k, int64_t *hist) |
| GGML_API size_t | ggml_quantize_q5_1 (const float *src, void *dst, int n, int k, int64_t *hist) |
| GGML_API size_t | ggml_quantize_q8_0 (const float *src, void *dst, int n, int k, int64_t *hist) |
| GGML_API size_t | ggml_quantize_chunk (enum ggml_type type, const float *src, void *dst, int start, int n, int64_t *hist) |
| GGML_API int | ggml_cpu_has_avx (void) |
| GGML_API int | ggml_cpu_has_avx2 (void) |
| GGML_API int | ggml_cpu_has_avx512 (void) |
| GGML_API int | ggml_cpu_has_avx512_vbmi (void) |
| GGML_API int | ggml_cpu_has_avx512_vnni (void) |
| GGML_API int | ggml_cpu_has_fma (void) |
| GGML_API int | ggml_cpu_has_neon (void) |
| GGML_API int | ggml_cpu_has_arm_fma (void) |
| GGML_API int | ggml_cpu_has_f16c (void) |
| GGML_API int | ggml_cpu_has_fp16_va (void) |
| GGML_API int | ggml_cpu_has_wasm_simd (void) |
| GGML_API int | ggml_cpu_has_blas (void) |
| GGML_API int | ggml_cpu_has_cublas (void) |
| GGML_API int | ggml_cpu_has_clblast (void) |
| GGML_API int | ggml_cpu_has_gpublas (void) |
| GGML_API int | ggml_cpu_has_sse3 (void) |
| GGML_API int | ggml_cpu_has_vsx (void) |
| quantize_fns_t | ggml_internal_get_quantize_fn (size_t i) |
Variables | |
| static const size_t | GGML_OBJECT_SIZE = sizeof(struct ggml_object) |
| #define GGML_API |
| #define GGML_ASSERT | ( | x | ) |
| #define GGML_DEFAULT_N_THREADS 4 |
| #define GGML_FILE_MAGIC 0x67676d6c |
| #define GGML_FILE_VERSION 1 |
| #define GGML_MAX_CONTEXTS 64 |
| #define GGML_MAX_DIMS 4 |
| #define GGML_MAX_NODES 4096 |
| #define GGML_MAX_OPT 4 |
| #define GGML_MAX_PARAMS 16 |
| #define GGML_RESTRICT restrict |
| typedef void(* dequantize_row_q_t) (const void *GGML_RESTRICT x, float *GGML_RESTRICT y, int k) |
| typedef void(* ggml_binary_op_f32_t) (const int, float *, const float *, const float *) |
| typedef uint16_t ggml_fp16_t |
| typedef void(* ggml_unary_op_f32_t) (const int, float *, const float *) |
| typedef void(* quantize_row_q_t) (const float *GGML_RESTRICT x, void *GGML_RESTRICT y, int k) |
| typedef void(* vec_dot_q_t) (const int n, float *GGML_RESTRICT s, const void *GGML_RESTRICT x, const void *GGML_RESTRICT y) |
| enum ggml_ftype |
| enum ggml_linesearch |
| enum ggml_op |
| enum ggml_opt_result |
| enum ggml_opt_type |
| enum ggml_type |
| GGML_API struct ggml_tensor * ggml_abs | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a ) |
| GGML_API struct ggml_tensor * ggml_add | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a, | ||
| struct ggml_tensor * | b ) |
| GGML_API struct ggml_tensor * ggml_add_inplace | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a, | ||
| struct ggml_tensor * | b ) |
| struct ggml_tensor * ggml_alibi | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a, | ||
| int | n_past, | ||
| int | n_head ) |
| GGML_API struct ggml_cgraph ggml_build_backward | ( | struct ggml_context * | ctx, |
| struct ggml_cgraph * | gf, | ||
| bool | keep ) |
| GGML_API struct ggml_cgraph ggml_build_forward | ( | struct ggml_tensor * | tensor | ) |
| GGML_API void ggml_build_forward_expand | ( | struct ggml_cgraph * | cgraph, |
| struct ggml_tensor * | tensor ) |
| GGML_API struct ggml_tensor * ggml_cont | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a ) |
| GGML_API struct ggml_tensor * ggml_conv_1d_1s | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a, | ||
| struct ggml_tensor * | b ) |
| GGML_API struct ggml_tensor * ggml_conv_1d_2s | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a, | ||
| struct ggml_tensor * | b ) |
| GGML_API int ggml_cpu_has_arm_fma | ( | void | ) |
| GGML_API int ggml_cpu_has_avx | ( | void | ) |
| GGML_API int ggml_cpu_has_avx2 | ( | void | ) |
| GGML_API int ggml_cpu_has_avx512 | ( | void | ) |
| GGML_API int ggml_cpu_has_avx512_vbmi | ( | void | ) |
| GGML_API int ggml_cpu_has_avx512_vnni | ( | void | ) |
| GGML_API int ggml_cpu_has_blas | ( | void | ) |
| GGML_API int ggml_cpu_has_clblast | ( | void | ) |
| GGML_API int ggml_cpu_has_cublas | ( | void | ) |
| GGML_API int ggml_cpu_has_f16c | ( | void | ) |
| GGML_API int ggml_cpu_has_fma | ( | void | ) |
| GGML_API int ggml_cpu_has_fp16_va | ( | void | ) |
| GGML_API int ggml_cpu_has_gpublas | ( | void | ) |
| GGML_API int ggml_cpu_has_neon | ( | void | ) |
| GGML_API int ggml_cpu_has_sse3 | ( | void | ) |
| GGML_API int ggml_cpu_has_vsx | ( | void | ) |
| GGML_API int ggml_cpu_has_wasm_simd | ( | void | ) |
| GGML_API struct ggml_tensor * ggml_cpy | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a, | ||
| struct ggml_tensor * | b ) |
| GGML_API int64_t ggml_cycles | ( | void | ) |
| GGML_API int64_t ggml_cycles_per_ms | ( | void | ) |
| GGML_API struct ggml_tensor * ggml_diag_mask_inf | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a, | ||
| int | n_past ) |
| GGML_API struct ggml_tensor * ggml_div | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a, | ||
| struct ggml_tensor * | b ) |
| GGML_API struct ggml_tensor * ggml_dup | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a ) |
| GGML_API struct ggml_tensor * ggml_dup_tensor | ( | struct ggml_context * | ctx, |
| const struct ggml_tensor * | src ) |
| GGML_API size_t ggml_element_size | ( | const struct ggml_tensor * | tensor | ) |
| GGML_API struct ggml_tensor * ggml_flash_attn | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | q, | ||
| struct ggml_tensor * | k, | ||
| struct ggml_tensor * | v, | ||
| bool | masked ) |
| GGML_API struct ggml_tensor * ggml_flash_ff | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a, | ||
| struct ggml_tensor * | b0, | ||
| struct ggml_tensor * | b1, | ||
| struct ggml_tensor * | c0, | ||
| struct ggml_tensor * | c1 ) |
| GGML_API float ggml_fp16_to_fp32 | ( | ggml_fp16_t | x | ) |
| GGML_API void ggml_fp16_to_fp32_row | ( | const ggml_fp16_t * | x, |
| float * | y, | ||
| size_t | n ) |
| GGML_API ggml_fp16_t ggml_fp32_to_fp16 | ( | float | x | ) |
| GGML_API void ggml_fp32_to_fp16_row | ( | const float * | x, |
| ggml_fp16_t * | y, | ||
| size_t | n ) |
| GGML_API void ggml_free | ( | struct ggml_context * | ctx | ) |
| GGML_API enum ggml_type ggml_ftype_to_ggml_type | ( | enum ggml_ftype | ftype | ) |
| GGML_API struct ggml_tensor * ggml_gelu | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a ) |
| GGML_API void * ggml_get_data | ( | const struct ggml_tensor * | tensor | ) |
| GGML_API float * ggml_get_data_f32 | ( | const struct ggml_tensor * | tensor | ) |
| GGML_API float ggml_get_f32_1d | ( | const struct ggml_tensor * | tensor, |
| int | i ) |
| GGML_API int32_t ggml_get_i32_1d | ( | const struct ggml_tensor * | tensor, |
| int | i ) |
| GGML_API const char * ggml_get_name | ( | const struct ggml_tensor * | tensor | ) |
| GGML_API struct ggml_tensor * ggml_get_rows | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a, | ||
| struct ggml_tensor * | b ) |
| GGML_API void ggml_graph_compute | ( | struct ggml_context * | ctx, |
| struct ggml_cgraph * | cgraph ) |
| GGML_API void ggml_graph_dump_dot | ( | const struct ggml_cgraph * | gb, |
| const struct ggml_cgraph * | gf, | ||
| const char * | filename ) |
| GGML_API void ggml_graph_print | ( | const struct ggml_cgraph * | cgraph | ) |
| GGML_API void ggml_graph_reset | ( | struct ggml_cgraph * | cgraph | ) |
| GGML_API struct ggml_context * ggml_init | ( | struct ggml_init_params | params | ) |
| quantize_fns_t ggml_internal_get_quantize_fn | ( | size_t | i | ) |
| GGML_API struct ggml_tensor * ggml_map_binary_f32 | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a, | ||
| struct ggml_tensor * | b, | ||
| const ggml_binary_op_f32_t | fun ) |
| GGML_API struct ggml_tensor * ggml_map_unary_f32 | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a, | ||
| const ggml_unary_op_f32_t | fun ) |
| GGML_API struct ggml_tensor * ggml_mean | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a ) |
| GGML_API struct ggml_tensor * ggml_mul | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a, | ||
| struct ggml_tensor * | b ) |
| GGML_API struct ggml_tensor * ggml_mul_mat | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a, | ||
| struct ggml_tensor * | b ) |
| GGML_API size_t ggml_nbytes | ( | const struct ggml_tensor * | tensor | ) |
| GGML_API struct ggml_tensor * ggml_neg | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a ) |
| GGML_API int64_t ggml_nelements | ( | const struct ggml_tensor * | tensor | ) |
| GGML_API struct ggml_tensor * ggml_new_f32 | ( | struct ggml_context * | ctx, |
| float | value ) |
| GGML_API struct ggml_tensor * ggml_new_i32 | ( | struct ggml_context * | ctx, |
| int32_t | value ) |
| GGML_API struct ggml_tensor * ggml_new_tensor | ( | struct ggml_context * | ctx, |
| enum ggml_type | type, | ||
| int | n_dims, | ||
| const int64_t * | ne ) |
| GGML_API struct ggml_tensor * ggml_new_tensor_1d | ( | struct ggml_context * | ctx, |
| enum ggml_type | type, | ||
| int64_t | ne0 ) |
| GGML_API struct ggml_tensor * ggml_new_tensor_2d | ( | struct ggml_context * | ctx, |
| enum ggml_type | type, | ||
| int64_t | ne0, | ||
| int64_t | ne1 ) |
| GGML_API struct ggml_tensor * ggml_new_tensor_3d | ( | struct ggml_context * | ctx, |
| enum ggml_type | type, | ||
| int64_t | ne0, | ||
| int64_t | ne1, | ||
| int64_t | ne2 ) |
| GGML_API struct ggml_tensor * ggml_new_tensor_4d | ( | struct ggml_context * | ctx, |
| enum ggml_type | type, | ||
| int64_t | ne0, | ||
| int64_t | ne1, | ||
| int64_t | ne2, | ||
| int64_t | ne3 ) |
| GGML_API struct ggml_tensor * ggml_norm | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a ) |
| GGML_API enum ggml_opt_result ggml_opt | ( | struct ggml_context * | ctx, |
| struct ggml_opt_params | params, | ||
| struct ggml_tensor * | f ) |
| GGML_API struct ggml_opt_params ggml_opt_default_params | ( | enum ggml_opt_type | type | ) |
| GGML_API struct ggml_tensor * ggml_permute | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a, | ||
| int | axis0, | ||
| int | axis1, | ||
| int | axis2, | ||
| int | axis3 ) |
| GGML_API void ggml_print_object | ( | const struct ggml_object * | obj | ) |
| GGML_API void ggml_print_objects | ( | const struct ggml_context * | ctx | ) |
| GGML_API size_t ggml_quantize_chunk | ( | enum ggml_type | type, |
| const float * | src, | ||
| void * | dst, | ||
| int | start, | ||
| int | n, | ||
| int64_t * | hist ) |
| GGML_API size_t ggml_quantize_q4_0 | ( | const float * | src, |
| void * | dst, | ||
| int | n, | ||
| int | k, | ||
| int64_t * | hist ) |
| GGML_API size_t ggml_quantize_q4_1 | ( | const float * | src, |
| void * | dst, | ||
| int | n, | ||
| int | k, | ||
| int64_t * | hist ) |
| GGML_API size_t ggml_quantize_q4_2 | ( | const float * | src, |
| void * | dst, | ||
| int | n, | ||
| int | k, | ||
| int64_t * | hist ) |
| GGML_API size_t ggml_quantize_q5_0 | ( | const float * | src, |
| void * | dst, | ||
| int | n, | ||
| int | k, | ||
| int64_t * | hist ) |
| GGML_API size_t ggml_quantize_q5_1 | ( | const float * | src, |
| void * | dst, | ||
| int | n, | ||
| int | k, | ||
| int64_t * | hist ) |
| GGML_API size_t ggml_quantize_q8_0 | ( | const float * | src, |
| void * | dst, | ||
| int | n, | ||
| int | k, | ||
| int64_t * | hist ) |
| GGML_API struct ggml_tensor * ggml_relu | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a ) |
| GGML_API struct ggml_tensor * ggml_repeat | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a, | ||
| struct ggml_tensor * | b ) |
| GGML_API struct ggml_tensor * ggml_reshape | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a, | ||
| struct ggml_tensor * | b ) |
| GGML_API struct ggml_tensor * ggml_reshape_2d | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a, | ||
| int64_t | ne0, | ||
| int64_t | ne1 ) |
| GGML_API struct ggml_tensor * ggml_reshape_3d | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a, | ||
| int64_t | ne0, | ||
| int64_t | ne1, | ||
| int64_t | ne2 ) |
| GGML_API struct ggml_tensor * ggml_rms_norm | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a ) |
| GGML_API struct ggml_tensor * ggml_rope | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a, | ||
| int | n_past, | ||
| int | n_dims, | ||
| int | mode ) |
| GGML_API struct ggml_tensor * ggml_scale | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a, | ||
| struct ggml_tensor * | b ) |
| GGML_API struct ggml_tensor * ggml_set_f32 | ( | struct ggml_tensor * | tensor, |
| float | value ) |
| GGML_API void ggml_set_f32_1d | ( | const struct ggml_tensor * | tensor, |
| int | i, | ||
| float | value ) |
| GGML_API struct ggml_tensor * ggml_set_i32 | ( | struct ggml_tensor * | tensor, |
| int32_t | value ) |
| GGML_API void ggml_set_i32_1d | ( | const struct ggml_tensor * | tensor, |
| int | i, | ||
| int32_t | value ) |
| GGML_API void ggml_set_name | ( | struct ggml_tensor * | tensor, |
| const char * | name ) |
| GGML_API void ggml_set_param | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | tensor ) |
| GGML_API size_t ggml_set_scratch | ( | struct ggml_context * | ctx, |
| struct ggml_scratch | scratch ) |
| GGML_API struct ggml_tensor * ggml_set_zero | ( | struct ggml_tensor * | tensor | ) |
| GGML_API struct ggml_tensor * ggml_sgn | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a ) |
| GGML_API struct ggml_tensor * ggml_silu | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a ) |
| GGML_API struct ggml_tensor * ggml_soft_max | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a ) |
| GGML_API struct ggml_tensor * ggml_sqr | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a ) |
| GGML_API struct ggml_tensor * ggml_sqrt | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a ) |
| GGML_API struct ggml_tensor * ggml_step | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a ) |
| GGML_API struct ggml_tensor * ggml_sub | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a, | ||
| struct ggml_tensor * | b ) |
| GGML_API struct ggml_tensor * ggml_sum | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a ) |
| GGML_API void ggml_time_init | ( | void | ) |
| GGML_API int64_t ggml_time_ms | ( | void | ) |
| GGML_API int64_t ggml_time_us | ( | void | ) |
| GGML_API struct ggml_tensor * ggml_transpose | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a ) |
| GGML_API size_t ggml_used_mem | ( | const struct ggml_context * | ctx | ) |
| GGML_API struct ggml_tensor * ggml_view_1d | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a, | ||
| int64_t | ne0, | ||
| size_t | offset ) |
| GGML_API struct ggml_tensor * ggml_view_2d | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a, | ||
| int64_t | ne0, | ||
| int64_t | ne1, | ||
| size_t | nb1, | ||
| size_t | offset ) |
| GGML_API struct ggml_tensor * ggml_view_3d | ( | struct ggml_context * | ctx, |
| struct ggml_tensor * | a, | ||
| int64_t | ne0, | ||
| int64_t | ne1, | ||
| int64_t | ne2, | ||
| size_t | nb1, | ||
| size_t | nb2, | ||
| size_t | offset ) |
| GGML_API struct ggml_tensor * ggml_view_tensor | ( | struct ggml_context * | ctx, |
| const struct ggml_tensor * | src ) |
|
static |