From: Incarnas Date: Mon, 18 May 2026 04:37:12 +0000 (-0700) Subject: update bid to match each layers MTP source (#23237) X-Git-Tag: upstream/0.0.10438~1232 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=1867a0c6923eaebb7a53965f6cdbc0ace55142a3;p=pkg%2Fggml%2Fsources%2Fllama.cpp update bid to match each layers MTP source (#23237) * update bid to match each layers MTP source * Update conversion/qwen.py Co-authored-by: Sigbjørn Skjæret --------- Co-authored-by: Sigbjørn Skjæret --- diff --git a/conversion/qwen.py b/conversion/qwen.py index 4b8640426..45d1f98c2 100644 --- a/conversion/qwen.py +++ b/conversion/qwen.py @@ -600,6 +600,7 @@ class _Qwen35MtpMixin: if name.find("layers.") != -1: assert bid is not None name = name.replace(f"mtp.layers.{bid}", f"model.layers.{bid + n_layer}") + bid = bid + n_layer else: remapper = { "mtp.fc": "model.layers.{bid}.eh_proj",