]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
llama : fix llama_split_mode enum values in main_gpu document (#9057)
authorSutou Kouhei <redacted>
Fri, 30 Aug 2024 18:08:10 +0000 (03:08 +0900)
committerGitHub <redacted>
Fri, 30 Aug 2024 18:08:10 +0000 (20:08 +0200)
LLAMA_SPLIT_* were renamed to LLAMA_SPLIT_MODE_* in #5697.

include/llama.h

index c3bda9e02bb2163ea0a2c06132da2d4cbbc7e0cd..f2e701602bb00defb493560b7332aab74d0f8504 100644 (file)
@@ -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()