Skip to content

Commit 7a76ecd

Browse files
authored
Merge branch 'ggml-org:master' into master
2 parents c760128 + 0033f53 commit 7a76ecd

40 files changed

Lines changed: 1696 additions & 668 deletions

‎common/console.cpp‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -700,13 +700,13 @@ namespace console {
700700
std::vector<std::string> entries;
701701
size_t viewing_idx = SIZE_MAX;
702702
std::string backup_line; // current line before viewing history
703-
void add(const std::string & line) {
703+
void add(std::string_view line) {
704704
if (line.empty()) {
705705
return;
706706
}
707707
// avoid duplicates with the last entry
708708
if (entries.empty() || entries.back() != line) {
709-
entries.push_back(line);
709+
entries.emplace_back(line);
710710
}
711711
// also clear viewing state
712712
end_viewing();
@@ -1031,11 +1031,12 @@ namespace console {
10311031

10321032
if (!end_of_stream && !line.empty()) {
10331033
// remove the trailing newline for history storage
1034+
std::string_view hline = line;
10341035
if (!line.empty() && line.back() == '\n') {
1035-
line.pop_back();
1036+
hline.remove_suffix(1);
10361037
}
10371038
// TODO: maybe support multiline history entries?
1038-
history.add(line);
1039+
history.add(hline);
10391040
}
10401041

10411042
fflush(out);

‎convert_hf_to_gguf.py‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7472,7 +7472,7 @@ def set_vocab(self):
74727472
special_vocab = gguf.SpecialVocab(self.dir_model, load_merges=True)
74737473
special_vocab.add_to_gguf(self.gguf_writer)
74747474
self.gguf_writer.add_add_space_prefix(False)
7475-
self.gguf_writer.add_add_bos_token(False) # already added via the chat template
7475+
self.gguf_writer.add_add_bos_token(True)
74767476

74777477
def set_gguf_parameters(self):
74787478
super().set_gguf_parameters()
@@ -11818,10 +11818,8 @@ class LFM2Model(TextModel):
1181811818
model_arch = gguf.MODEL_ARCH.LFM2
1181911819

1182011820
def _add_feed_forward_length(self):
11821-
ff_dim = self.hparams["block_ff_dim"]
11822-
11821+
ff_dim = self.find_hparam(["block_ff_dim", "intermediate_size"])
1182311822
auto_adjust_ff_dim = self.hparams["block_auto_adjust_ff_dim"]
11824-
ff_dim = self.hparams["block_ff_dim"]
1182511823
ffn_dim_multiplier = self.hparams["block_ffn_dim_multiplier"]
1182611824
multiple_of = self.hparams["block_multiple_of"]
1182711825

‎docs/build.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ cmake --build build --config Release
741741

742742
WebGPU allows cross-platform access to the GPU from supported browsers. We utilize [Emscripten](https://emscripten.org/) to compile ggml's WebGPU backend to WebAssembly. Emscripten does not officially support WebGPU bindings yet, but Dawn currently maintains its own WebGPU bindings called emdawnwebgpu.
743743

744-
Follow the instructions [here](https://dawn.googlesource.com/dawn/+/refs/heads/main/src/emdawnwebgpu/) to download or build the emdawnwebgpu package (Note that it might be safer to build the emdawbwebgpu package locally, so that it stays in sync with the version of Dawn you have installed above). When building using CMake, the path to the emdawnwebgpu port file needs to be set with the flag `EMDAWNWEBGPU_DIR`.
744+
Follow the instructions [here](https://dawn.googlesource.com/dawn/+/refs/heads/main/src/emdawnwebgpu/) to download or build the emdawnwebgpu package (Note that it might be safer to build the emdawnwebgpu package locally, so that it stays in sync with the version of Dawn you have installed above). When building using CMake, the path to the emdawnwebgpu port file needs to be set with the flag `EMDAWNWEBGPU_DIR`.
745745

746746
## IBM Z & LinuxONE
747747

‎docs/multimodal.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ llama-server -hf ggml-org/gemma-3-4b-it-GGUF --no-mmproj-offload
3737
> - PaddleOCR-VL: https://github.com/ggml-org/llama.cpp/pull/18825
3838
> - GLM-OCR: https://github.com/ggml-org/llama.cpp/pull/19677
3939
> - Deepseek-OCR: https://github.com/ggml-org/llama.cpp/pull/17400
40+
> - HunyuanOCR: https://github.com/ggml-org/llama.cpp/pull/21395
4041
4142
## Pre-quantized models
4243

‎docs/ops.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Legend:
6868
| MEAN | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ |
6969
| MUL | ❌ | ✅ | ✅ | ✅ | 🟡 | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ |
7070
| MUL_MAT | 🟡 | 🟡 | 🟡 | 🟡 | 🟡 | 🟡 | 🟡 | 🟡 | 🟡 | 🟡 | 🟡 |
71-
| MUL_MAT_ID | ❌ | 🟡 | ✅ | ✅ | 🟡 | 🟡 | 🟡 | ✅ | ❌ | 🟡 | ❌ |
71+
| MUL_MAT_ID | ❌ | 🟡 | ✅ | ✅ | 🟡 | 🟡 | 🟡 | ✅ | 🟡 | 🟡 | ❌ |
7272
| NEG | ❌ | ✅ | ✅ | 🟡 | ✅ | ❌ | ✅ | 🟡 | ✅ | ❌ | ❌ |
7373
| NORM | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | 🟡 | ❌ | ❌ | ❌ |
7474
| OPT_STEP_ADAMW | ❌ | ❌ | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ |

0 commit comments

Comments
 (0)