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:
co-authored by
yuj
Claude Opus 4.6
parent
efee62efa6
commit
70658bfeb5
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user