C-Kernel-Engine v6 CLI. More...
#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) |
C-Kernel-Engine v6 CLI.
Usage: ./ck-engine-v6 -m <model.gguf> [options] ./ck-engine-v6 -m <model.gguf> -p "Hello world" ./ck-engine-v6 -m <model.gguf> -p @prompt.txt –temp 0.7
Options: -m, –model <file> Model file (GGUF or BUMP) -p, –prompt <text> Prompt (use
Definition in file v6_cli.c.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 255 of file v6_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_cli.c.
References print_banner(), print_help(), and print_version().
Referenced by main().
|
static |
Definition at line 67 of file v6_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_cli.c.
References ANSI_BOLD, and ANSI_RESET.
Referenced by parse_args().
|
static |
|
static |
Definition at line 105 of file v6_cli.c.
References ANSI_BOLD, ANSI_RESET, ANSI_YELLOW, CK_BUILD_DATE, and CK_VERSION.
Referenced by parse_args().
|
static |
|
static |
|
static |