#include <stdio.h>#include <stdlib.h>#include <stdint.h>#include <string.h>#include <time.h>#include <dlfcn.h>#include <pthread.h>#include <unistd.h>#include "tokenizer/tokenizer.h"Go to the source code of this file.
Typedefs | |
| typedef int(* | decode_t) (int32_t token, float *logits_out) |
| typedef int(* | embed_t) (const int32_t *tokens, int num_tokens) |
| typedef int(* | forward_t) (float *logits_out) |
| typedef int(* | get_int_t) (void) |
| typedef void *(* | get_ptr_t) (void) |
| typedef int(* | init_t) (const char *weights_path) |
| typedef int(* | kv_enable_t) (int capacity) |
| typedef int(* | sample_argmax_t) (void) |
| typedef void(* | void_func_t) (void) |
Functions | |
| void * | engine_thread_func (void *arg) |
| int | main (int argc, char **argv) |
| typedef int(* decode_t) (int32_t token, float *logits_out) |
Definition at line 17 of file ck_cli_v5.c.
| typedef int(* embed_t) (const int32_t *tokens, int num_tokens) |
Definition at line 14 of file ck_cli_v5.c.
| typedef int(* forward_t) (float *logits_out) |
Definition at line 15 of file ck_cli_v5.c.
| typedef int(* get_int_t) (void) |
Definition at line 19 of file ck_cli_v5.c.
| typedef void *(* get_ptr_t) (void) |
Definition at line 20 of file ck_cli_v5.c.
| typedef int(* init_t) (const char *weights_path) |
Definition at line 13 of file ck_cli_v5.c.
| typedef int(* kv_enable_t) (int capacity) |
Definition at line 16 of file ck_cli_v5.c.
| typedef int(* sample_argmax_t) (void) |
Definition at line 18 of file ck_cli_v5.c.
| typedef void(* void_func_t) (void) |
Definition at line 21 of file ck_cli_v5.c.
| void * engine_thread_func | ( | void * | arg | ) |
Definition at line 53 of file ck_cli_v5.c.
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 110 of file ck_cli_v5.c.
References CK_TOKENIZER_BPE, ck_tokenizer_create(), ck_tokenizer_encode(), ck_tokenizer_id_to_token(), ck_tokenizer_load_binary(), engine_thread_func(), and ids.
Referenced by farskip_swiglu_shared_combine_bf16_row_range().