#include "checked_float_buffer.h"#include "ckernel_quant.h"#include "ckernel_engine.h"#include <string.h>Go to the source code of this file.
Functions | |
| int | copy_last_row_checked_f32 (const float *input, size_t input_elements, float *output, size_t output_elements, size_t rows, size_t width) |
| static int | embedding_lookup_packed_checked_f32 (const int32_t *ids, size_t ids_elements, const void *table, size_t table_bytes, float *output, size_t output_elements, size_t tokens, size_t vocabulary, size_t width, CKDataType type) |
| int | embedding_lookup_q4_k_checked_f32 (const int32_t *ids, size_t ids_elements, const void *table, size_t table_bytes, float *output, size_t output_elements, size_t tokens, size_t vocabulary, size_t width) |
| int | embedding_lookup_q5_k_checked_f32 (const int32_t *ids, size_t ids_elements, const void *table, size_t table_bytes, float *output, size_t output_elements, size_t tokens, size_t vocabulary, size_t width) |
| int | embedding_lookup_q8_0_checked_f32 (const int32_t *ids, size_t ids_elements, const void *table, size_t table_bytes, float *output, size_t output_elements, size_t tokens, size_t vocabulary, size_t width) |
| int | softcap_logits_checked_f32 (const float *input, size_t input_elements, float *output, size_t output_elements, size_t elements, float cap) |
| int copy_last_row_checked_f32 | ( | const float * | input, |
| size_t | input_elements, | ||
| float * | output, | ||
| size_t | output_elements, | ||
| size_t | rows, | ||
| size_t | width ) |
Definition at line 106 of file packed_text_io_checked.c.
References ck_checked_finite(), ck_checked_overlap(), ck_checked_region(), ck_checked_span(), and extent().
|
static |
Definition at line 7 of file packed_text_io_checked.c.
References ck_checked_region(), ck_checked_span(), CK_DT_Q4_K, CK_DT_Q5_K, CK_DT_Q8_0, ck_dtype_block_bytes(), ck_dtype_block_size(), ck_fp16_to_fp32_soft(), dequant_q4_k_row(), dequant_q5_k_row(), extent(), ids, QK8_0, and QK_K.
Referenced by embedding_lookup_q4_k_checked_f32(), embedding_lookup_q5_k_checked_f32(), and embedding_lookup_q8_0_checked_f32().
| int embedding_lookup_q4_k_checked_f32 | ( | const int32_t * | ids, |
| size_t | ids_elements, | ||
| const void * | table, | ||
| size_t | table_bytes, | ||
| float * | output, | ||
| size_t | output_elements, | ||
| size_t | tokens, | ||
| size_t | vocabulary, | ||
| size_t | width ) |
Definition at line 75 of file packed_text_io_checked.c.
References CK_DT_Q4_K, embedding_lookup_packed_checked_f32(), and ids.
| int embedding_lookup_q5_k_checked_f32 | ( | const int32_t * | ids, |
| size_t | ids_elements, | ||
| const void * | table, | ||
| size_t | table_bytes, | ||
| float * | output, | ||
| size_t | output_elements, | ||
| size_t | tokens, | ||
| size_t | vocabulary, | ||
| size_t | width ) |
Definition at line 84 of file packed_text_io_checked.c.
References CK_DT_Q5_K, embedding_lookup_packed_checked_f32(), and ids.
| int embedding_lookup_q8_0_checked_f32 | ( | const int32_t * | ids, |
| size_t | ids_elements, | ||
| const void * | table, | ||
| size_t | table_bytes, | ||
| float * | output, | ||
| size_t | output_elements, | ||
| size_t | tokens, | ||
| size_t | vocabulary, | ||
| size_t | width ) |
Definition at line 66 of file packed_text_io_checked.c.
References CK_DT_Q8_0, embedding_lookup_packed_checked_f32(), and ids.
| int softcap_logits_checked_f32 | ( | const float * | input, |
| size_t | input_elements, | ||
| float * | output, | ||
| size_t | output_elements, | ||
| size_t | elements, | ||
| float | cap ) |
Definition at line 93 of file packed_text_io_checked.c.
References ck_checked_finite(), ck_checked_overlap(), and ck_checked_region().