fix: add missing f-string prefixes in warning and assert messages (#22067)

Co-authored-by: yuj <yuj@ztjzsoft.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ricardo-M-L
2026-04-04 17:20:16 -07:00
committed by GitHub
co-authored by yuj Claude Opus 4.6
parent efee62efa6
commit 70658bfeb5
2 changed files with 2 additions and 2 deletions
@@ -1201,7 +1201,7 @@ class MambaPoolHost(HostKVCache):
"page_first",
"page_first_direct",
"layer_first",
], "Unsupported layout: {layout}"
], f"Unsupported layout: {layout}"
self.layout = layout
self.pin_memory = pin_memory
+1 -1
View File
@@ -529,7 +529,7 @@ class Phi4MMForCausalLM(nn.Module):
param = params_dict.get(name)
if param is None:
if "lora" not in name:
logger.warning("Warning: {name} not found in model parameters")
logger.warning(f"Warning: {name} not found in model parameters")
continue
weight_loader = getattr(param, "weight_loader", default_weight_loader)
weight_loader(param, loaded_weight)