Skip to content

Commit d4fca23

Browse files
committed
batched-bench : add tensor_split param
1 parent b684502 commit d4fca23

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/batched-bench/batched-bench.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ int main(int argc, char ** argv) {
8888

8989
llama_model_params model_params = llama_model_default_params();
9090

91+
const std::vector<float> t_split (LLAMA_MAX_DEVICES, 0.0f);
92+
9193
model_params.n_gpu_layers = n_gpu_layers;
94+
model_params.tensor_split = t_split.data();
9295

9396
llama_model * model = llama_load_model_from_file(params.model.c_str(), model_params);
9497

0 commit comments

Comments
 (0)