[Bugfix][Minor] Fix potential NameError in mamba backend selector and misc typos (#35886)

Signed-off-by: Li <chuali@amd.com>
This commit is contained in:
Chuan (Richard) Li
2026-03-26 08:59:24 -07:00
committed by GitHub
parent e054f152fa
commit cb2263218e
4 changed files with 8 additions and 5 deletions

View File

@@ -369,7 +369,7 @@ class KimiK25ForConditionalGeneration(
target_dtype = next(self.vision_tower.parameters()).dtype
pixel_values = pixel_values.to(target_dtype)
assert isinstance(grid_thws, torch.Tensor), (
f"expect grid_thws to be a tensor, get {type(grid_thws)}"
f"expect grid_thws to be a tensor, got {type(grid_thws)}"
)
# In some cases (e.g. with merger), grid_thws has an extra middle dimension
grid_thws = grid_thws.reshape(-1, grid_thws.shape[-1])