[Kimi][MM] disable kimi_vit's dynamic torch.compile for TPU (#51196)
Signed-off-by: Linkun Chen <github@lkchen.net>
This commit is contained in:
@@ -61,7 +61,7 @@ def get_rope_shape_decorate(func):
|
||||
|
||||
|
||||
@get_rope_shape_decorate
|
||||
@torch.compile(dynamic=True)
|
||||
@torch.compile(dynamic=True, disable=current_platform.simple_compile_backend == "tpu")
|
||||
def get_rope_shape(org, interpolation_mode, shape):
|
||||
return (
|
||||
F.interpolate(
|
||||
|
||||
Reference in New Issue
Block a user