Skip to content

Commit

Permalink
batched-bench : add tensor_split param
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Jan 5, 2024
1 parent b684502 commit d4fca23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/batched-bench/batched-bench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ int main(int argc, char ** argv) {

llama_model_params model_params = llama_model_default_params();

const std::vector<float> t_split (LLAMA_MAX_DEVICES, 0.0f);

model_params.n_gpu_layers = n_gpu_layers;
model_params.tensor_split = t_split.data();

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

Expand Down

0 comments on commit d4fca23

Please sign in to comment.