Skip to content

Commit

Permalink
llama : fix llama_split_mode enum values in main_gpu document (ggerga…
Browse files Browse the repository at this point in the history
…nov#9057)

LLAMA_SPLIT_* were renamed to LLAMA_SPLIT_MODE_* in ggerganov#5697.
  • Loading branch information
kou authored and dsx1986 committed Oct 29, 2024
1 parent f5c83df commit 3db47c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/llama.h
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,9 @@ extern "C" {
enum llama_split_mode split_mode; // how to split the model across multiple GPUs

// main_gpu interpretation depends on split_mode:
// LLAMA_SPLIT_NONE: the GPU that is used for the entire model
// LLAMA_SPLIT_ROW: the GPU that is used for small tensors and intermediate results
// LLAMA_SPLIT_LAYER: ignored
// LLAMA_SPLIT_MODE_NONE: the GPU that is used for the entire model
// LLAMA_SPLIT_MODE_ROW: the GPU that is used for small tensors and intermediate results
// LLAMA_SPLIT_MODE_LAYER: ignored
int32_t main_gpu;

// proportion of the model (layers or rows) to offload to each GPU, size: llama_max_devices()
Expand Down

0 comments on commit 3db47c2

Please sign in to comment.