Skip to content

Commit 7ad5a50

Browse files
committed
fix: update global variable syntax since its not support from torch 3.2.0
Signed-off-by: Mehant Kammakomati <mehant.kammakomati2@ibm.com>
1 parent 1a8ee37 commit 7ad5a50

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/fused-ops-and-kernels/src/fms_acceleration_foak/kernels/unsloth/cross_entropy_loss.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def _cross_entropy_backward(
187187
pass
188188

189189

190-
MAX_FUSED_SIZE: tl.constexpr = 65536 # 2**16
190+
MAX_FUSED_SIZE = tl.constexpr(65536) # 2**16
191191

192192
class Fast_CrossEntropyLoss(torch.autograd.Function):
193193
@staticmethod

plugins/fused-ops-and-kernels/src/fms_acceleration_foak/kernels/unsloth/rope_embedding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import torch
1818
from .utils import calculate_settings
1919

20-
ROPE_GROUP_SIZE: tl.constexpr = 4
20+
ROPE_GROUP_SIZE = tl.constexpr(4)
2121

2222
@triton.heuristics({"BACKWARD_PASS": lambda args: args["BACKWARD_PASS"],})
2323
@triton.jit

0 commit comments

Comments
 (0)