Tiny fix DeepseekScalingRotaryEmbedding always use forward_native (#5406)
This commit is contained in:
@@ -649,7 +649,7 @@ class DeepseekScalingRotaryEmbedding(RotaryEmbedding):
|
||||
return self.forward_native(*args, **kwargs)
|
||||
|
||||
def forward(self, *args, **kwargs):
|
||||
if torch._dynamo.is_compiling:
|
||||
if torch.compiler.is_compiling():
|
||||
return self.forward_native(*args, **kwargs)
|
||||
if _is_cuda_available:
|
||||
return self.forward_cuda(*args, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user