Go to the source code of this file.
Functions | |
| int | ck_gqa_relative_sink_checked_bf16 (const uint16_t *query, size_t query_elements, const uint16_t *key, size_t key_elements, const uint16_t *value, size_t value_elements, const uint16_t *relative, size_t relative_elements, const uint16_t *sink, size_t sink_elements, uint16_t *output, size_t output_elements, float *scores, size_t score_elements, uint16_t *staged, size_t staged_elements, size_t tokens, size_t heads, size_t kv_heads, size_t dim, size_t capacity, size_t position, size_t relative_extent, size_t window) |
| static int | finite_bits (const uint16_t *input, size_t count) |
| static int | overlap (attention_span first, attention_span second) |
| static float | rounded_bf16 (float value) |
| static int | valid_span (attention_span span) |
| int ck_gqa_relative_sink_checked_bf16 | ( | const uint16_t * | query, |
| size_t | query_elements, | ||
| const uint16_t * | key, | ||
| size_t | key_elements, | ||
| const uint16_t * | value, | ||
| size_t | value_elements, | ||
| const uint16_t * | relative, | ||
| size_t | relative_elements, | ||
| const uint16_t * | sink, | ||
| size_t | sink_elements, | ||
| uint16_t * | output, | ||
| size_t | output_elements, | ||
| float * | scores, | ||
| size_t | score_elements, | ||
| uint16_t * | staged, | ||
| size_t | staged_elements, | ||
| size_t | tokens, | ||
| size_t | heads, | ||
| size_t | kv_heads, | ||
| size_t | dim, | ||
| size_t | capacity, | ||
| size_t | position, | ||
| size_t | relative_extent, | ||
| size_t | window ) |
Definition at line 43 of file gqa_relative_sink_bf16_checked.c.
References bf16_to_float(), ck_checked_span(), count, dot(), finite_bits(), float_to_bf16(), overlap(), rounded_bf16(), score, start, and valid_span().
|
static |
Definition at line 31 of file gqa_relative_sink_bf16_checked.c.
References count.
Referenced by ck_gqa_relative_sink_checked_bf16().
|
static |
Definition at line 25 of file gqa_relative_sink_bf16_checked.c.
Referenced by ck_gqa_relative_sink_checked_bf16().
|
inlinestatic |
Definition at line 38 of file gqa_relative_sink_bf16_checked.c.
References bf16_to_float(), and float_to_bf16().
Referenced by ck_gqa_relative_sink_checked_bf16().
|
static |
Definition at line 19 of file gqa_relative_sink_bf16_checked.c.
References start.
Referenced by ck_gqa_relative_sink_checked_bf16().