← Back to C-Kernel-Engine Docs Doxygen Source Documentation
CKModelConfig Struct Reference

#include <ck_model_api.h>

Data Fields

size_t activation_bytes
 
int context_window
 
int embed_dim
 
int head_dim
 
int hidden_size
 
int intermediate_size
 
int max_seq_len
 
const char * model_family
 
const char * model_name
 
int num_heads
 
int num_kv_heads
 
int num_layers
 
float rms_norm_eps
 
float rope_theta
 
size_t total_bytes
 
int vocab_size
 
size_t weight_bytes
 

Detailed Description

Minimal HF-style model config extracted from config.json.

Design note:

  • The long-term IR structure follows a "header / block / footer" pattern, inspired by the Antsand HMVC website generator:
    • header: one-time ops before the decoder stack (embeddings, pos-enc, etc.)
    • block : per-layer ops (RMSNorm, attention, MLP/SwiGLU, residual adds)
    • footer: one-time ops after the stack (final norm, LM head / weight-tying, loss)
  • In code this will eventually become a double-array layout (layers x ops) for the block section, plus separate header/footer op lists. The current CKIRGraph is the primitive building block for that higher-level IR.

This header focuses on the basic decoder-only transformer parameters and node-level IR that higher layers (codegen, memory planner, etc.) will build on.

Definition at line 32 of file ck_model_api.h.

Field Documentation

◆ activation_bytes

size_t CKModelConfig::activation_bytes

Definition at line 43 of file ck_model_api.h.

◆ context_window

◆ embed_dim

int CKModelConfig::embed_dim

Definition at line 33 of file ck_model_api.h.

Referenced by main(), and run_benchmark().

◆ head_dim

int CKModelConfig::head_dim

Definition at line 36 of file ck_model_api.h.

◆ hidden_size

◆ intermediate_size

◆ max_seq_len

int CKModelConfig::max_seq_len

Definition at line 40 of file ck_model_api.h.

Referenced by main().

◆ model_family

const char* CKModelConfig::model_family

Definition at line 45 of file ck_model_api.h.

Referenced by main().

◆ model_name

const char* CKModelConfig::model_name

Definition at line 44 of file ck_model_api.h.

Referenced by main(), and run_benchmark().

◆ num_heads

◆ num_kv_heads

◆ num_layers

◆ rms_norm_eps

◆ rope_theta

◆ total_bytes

size_t CKModelConfig::total_bytes

Definition at line 41 of file ck_model_api.h.

Referenced by main().

◆ vocab_size

◆ weight_bytes

size_t CKModelConfig::weight_bytes

Definition at line 42 of file ck_model_api.h.

Referenced by load_weights_from_bump(), and main().


The documentation for this struct was generated from the following files: