Update src/llama.cpp
This commit is contained in:
parent
ebeba4cf00
commit
c2e2cb99a6
1 changed files with 1 additions and 1 deletions
|
@ -3576,7 +3576,7 @@ namespace GGUFMeta {
|
|||
using llama_buf_map = std::unordered_map<uint32_t, ggml_backend_buffer_t>;
|
||||
|
||||
static size_t llama_model_max_nodes(const llama_model & model) {
|
||||
return std::max(8192, (int)model.tensors_by_name.size()*5);
|
||||
return std::max<size_t>(8192, model.tensors_by_name.size()*5);
|
||||
}
|
||||
|
||||
struct llama_model_loader {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue