Go to the source code of this file.
Enumerations | |
| enum | CKIRV2LowerMode { CK_IR_V2_LOWER_PREFILL = 0 , CK_IR_V2_LOWER_DECODE = 1 , CK_IR_V2_LOWER_BACKWARD = 2 } |
Functions | |
| int | ck_ir_v2_lower_emit_json (const CKIRV2Graph *input, CKIRV2LowerMode mode, const char *path) |
| int | ck_ir_v2_lower_graph (const CKIRV2Graph *input, CKIRV2LowerMode mode, CKIRV2Graph *output, CKMemPlan *plan) |
| int | ck_ir_v2_lower_mode_from_string (const char *name, CKIRV2LowerMode *out_mode) |
| const char * | ck_ir_v2_lower_mode_name (CKIRV2LowerMode mode) |
| enum CKIRV2LowerMode |
| Enumerator | |
|---|---|
| CK_IR_V2_LOWER_PREFILL | |
| CK_IR_V2_LOWER_DECODE | |
| CK_IR_V2_LOWER_BACKWARD | |
Definition at line 11 of file ckernel_ir_v2_lower.h.
| int ck_ir_v2_lower_emit_json | ( | const CKIRV2Graph * | input, |
| CKIRV2LowerMode | mode, | ||
| const char * | path | ||
| ) |
Definition at line 219 of file ckernel_ir_v2_lower.c.
References ck_ir_v2_free(), CK_IR_V2_LOWER_DECODE, ck_ir_v2_lower_graph(), ck_ir_v2_lower_mode_name(), ck_ir_v2_serialize_json_with_plan(), ck_mem_plan_free(), CKIRV2Graph::config, and CKModelConfig::context_window.
Referenced by main().
| int ck_ir_v2_lower_graph | ( | const CKIRV2Graph * | input, |
| CKIRV2LowerMode | mode, | ||
| CKIRV2Graph * | output, | ||
| CKMemPlan * | plan | ||
| ) |
Definition at line 177 of file ckernel_ir_v2_lower.c.
References ck_ir_v2_free(), CK_IR_V2_LOWER_BACKWARD, ck_ir_v2_lower_copy_buffers(), ck_ir_v2_lower_copy_nodes(), CK_IR_V2_LOWER_DECODE, ck_mem_plan_build_inference_with_tokens(), ck_mem_plan_build_training_with_tokens(), CK_MEM_PLAN_DEFAULT_ALIGN, ck_mem_plan_free(), CKIRV2Graph::config, CKIRV2Graph::fused_qkv, CKIRV2Graph::gated_mlp, CKIRV2Graph::has_pos_emb, and CKIRV2Graph::tie_word_embeddings.
Referenced by ck_ir_v2_lower_emit_json().
| int ck_ir_v2_lower_mode_from_string | ( | const char * | name, |
| CKIRV2LowerMode * | out_mode | ||
| ) |
Definition at line 36 of file ckernel_ir_v2_lower.c.
References CK_IR_V2_LOWER_BACKWARD, CK_IR_V2_LOWER_DECODE, and CK_IR_V2_LOWER_PREFILL.
Referenced by ck_ir_v2_lower_node_enabled(), and main().
| const char* ck_ir_v2_lower_mode_name | ( | CKIRV2LowerMode | mode | ) |
Definition at line 22 of file ckernel_ir_v2_lower.c.
References CK_IR_V2_LOWER_BACKWARD, CK_IR_V2_LOWER_DECODE, and CK_IR_V2_LOWER_PREFILL.
Referenced by ck_ir_v2_lower_emit_json(), and main().