Skip to content

Commit fbf4b4f

Browse files
levendleefacebook-github-bot
authored andcommitted
torch.ops.fbgemm.gather_scale_dense_tokens for oss. (#3855)
Summary: Pull Request resolved: #3855 X-link: facebookresearch/FBGEMM#946 Move internal kernel to FBGEMM. Reviewed By: jingsh, jianyuh, xw285cornell Differential Revision: D71559646
1 parent 6e90d5b commit fbf4b4f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fbgemm_gpu/experimental/gemm/triton_gemm/grouped_gemm.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def early_config_prune(configs, named_args, dtsize=None, dtype=None, **kwargs):
128128
prune_configs_by={"early_config_prune": early_config_prune},
129129
)
130130
@triton.jit
131-
def _kernel_grouped_gemm(
131+
def _fbgemm_grouped_gemm(
132132
a_desc_ptr,
133133
b_desc_ptr,
134134
c_ptr,
@@ -271,7 +271,7 @@ def _kernel_grouped_gemm(
271271
},
272272
)
273273
@triton.jit
274-
def _kernel_grouped_gemm_fp8_rowwise(
274+
def _fbgemm_grouped_gemm_fp8_rowwise(
275275
a_desc_ptr,
276276
a_scale_ptr,
277277
b_desc_ptr,
@@ -487,7 +487,7 @@ def grid(META):
487487
if x_scale is not None and w_scale is not None:
488488
assert x_scale.is_contiguous()
489489
assert w_scale.is_contiguous()
490-
_kernel_grouped_gemm_fp8_rowwise[grid](
490+
_fbgemm_grouped_gemm_fp8_rowwise[grid](
491491
desc_x,
492492
x_scale,
493493
desc_w,
@@ -507,7 +507,7 @@ def grid(META):
507507
else:
508508
assert x_scale is None
509509
assert w_scale is None
510-
_kernel_grouped_gemm[grid](
510+
_fbgemm_grouped_gemm[grid](
511511
desc_x,
512512
desc_w,
513513
y,

0 commit comments

Comments
 (0)