talk-llama : sync llama.cpp

This commit is contained in:
Georgi Gerganov
2025-12-18 08:20:56 +02:00
parent 698348aadc
commit 6c22e792cb
27 changed files with 3211 additions and 2665 deletions
+6
View File
@@ -1,6 +1,8 @@
#include "llama-hparams.h"
#include "ggml.h"
#include <algorithm>
#include <cassert>
void llama_hparams::set_swa_pattern(uint32_t n_pattern, bool dense_first) {
@@ -229,3 +231,7 @@ bool llama_hparams::is_masked_swa(uint32_t n_swa, llama_swa_type swa_type, llama
return false;
}
bool llama_hparams::use_mrope() const {
return rope_sections[0] > 0 && rope_sections[1] > 0;
}