From dbcf225c32a3f934ad415495352bc71e5588e839 Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Tue, 24 Sep 2024 17:00:23 -0700 Subject: [PATCH] Update layernorm.py --- unsloth/kernels/layernorm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unsloth/kernels/layernorm.py b/unsloth/kernels/layernorm.py index 058ec6a168..7939613804 100644 --- a/unsloth/kernels/layernorm.py +++ b/unsloth/kernels/layernorm.py @@ -178,7 +178,7 @@ def test_layernorm( YY = torch.randn((bsz, seqlen, dim), dtype = dtype, device = "cuda", requires_grad = True) Y.backward(YY) correct_grad = X.grad.clone() - from unsloth.kernels import fast_layernorm + # from unsloth.kernels import fast_layernorm Y = fast_layernorm(layernorm, XX) Y.backward(YY) assert(torch.dist(correct_grad, XX.grad).item() <= 0.1)