#include <stdio.h>#include <stdlib.h>#include <stdint.h>#include <string.h>#include <time.h>#include <math.h>#include <limits.h>#include <unistd.h>#include "ckernel_engine.h"Go to the source code of this file.
Macros | |
| #define | _GNU_SOURCE |
| #define | ANSI_BLUE "\033[0;34m" |
| #define | ANSI_BOLD "\033[1m" |
| #define | ANSI_CYAN "\033[0;36m" |
| #define | ANSI_DIM "\033[2m" |
| #define | ANSI_GREEN "\033[0;32m" |
| #define | ANSI_RESET "\033[0m" |
| #define | ANSI_YELLOW "\033[0;33m" |
| #define | CK_BUILD_DATE __DATE__ |
| #define | CK_VERSION "6.0.0" |
Functions | |
| int | main (int argc, char **argv) |
| static CLIArgs | parse_args (int argc, char **argv) |
| static void | print_banner (void) |
| static void | print_help (const char *prog) |
| static void | print_progress (int token_id, float token_per_sec) |
| static void | print_version (void) |
| static char * | read_prompt_file (const char *path) |
| static int | sample_token (float *logits, int vocab_size, float temp, int top_k) |
| static int32_t * | tokenize (const char *text, int *num_tokens) |
| #define _GNU_SOURCE |
Definition at line 26 of file v6.5_cli.c.
| #define ANSI_BLUE "\033[0;34m" |
Definition at line 48 of file v6.5_cli.c.
| #define ANSI_BOLD "\033[1m" |
Definition at line 44 of file v6.5_cli.c.
| #define ANSI_CYAN "\033[0;36m" |
Definition at line 49 of file v6.5_cli.c.
| #define ANSI_DIM "\033[2m" |
Definition at line 45 of file v6.5_cli.c.
| #define ANSI_GREEN "\033[0;32m" |
Definition at line 46 of file v6.5_cli.c.
| #define ANSI_RESET "\033[0m" |
Definition at line 43 of file v6.5_cli.c.
| #define ANSI_YELLOW "\033[0;33m" |
Definition at line 47 of file v6.5_cli.c.
| #define CK_BUILD_DATE __DATE__ |
Definition at line 40 of file v6.5_cli.c.
| #define CK_VERSION "6.0.0" |
Definition at line 39 of file v6.5_cli.c.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 255 of file v6.5_cli.c.
References ANSI_BOLD, ANSI_CYAN, ANSI_RESET, ANSI_YELLOW, parse_args(), print_banner(), and read_prompt_file().
|
static |
Definition at line 113 of file v6.5_cli.c.
References print_banner(), print_help(), and print_version().
Referenced by main().
|
static |
Definition at line 67 of file v6.5_cli.c.
References ANSI_CYAN, ANSI_DIM, ANSI_GREEN, ANSI_RESET, CK_BUILD_DATE, and CK_VERSION.
Referenced by main(), and parse_args().
|
static |
Definition at line 80 of file v6.5_cli.c.
References ANSI_BOLD, and ANSI_RESET.
Referenced by parse_args().
|
static |
Definition at line 244 of file v6.5_cli.c.
References ANSI_DIM, and ANSI_RESET.
|
static |
Definition at line 105 of file v6.5_cli.c.
References ANSI_BOLD, ANSI_RESET, ANSI_YELLOW, CK_BUILD_DATE, and CK_VERSION.
Referenced by parse_args().
|
static |
Definition at line 182 of file v6.5_cli.c.
Referenced by main().
|
static |
Definition at line 215 of file v6.5_cli.c.
References start, and vocab_size.
|
static |
Definition at line 205 of file v6.5_cli.c.
References text.