Skip to content

Commit

Permalink
fw bw fw bw ist the right order
Browse files Browse the repository at this point in the history
  • Loading branch information
t-vi committed Dec 18, 2024
1 parent 6f5ab69 commit 891bf84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notebooks/liger_kernel.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,10 @@
"\n",
"jm = thunder.jit(m, executors=(liger_ex,), transforms=(MergeRopeTransform(),))\n",
"res = jm(inp, inp_pos)\n",
"ref = m(inp, inp_pos)\n",
"\n",
"go = torch.randn_like(res)\n",
"(grad_res,) = torch.autograd.grad(res, jm.get_parameter(\"transformer.wte.weight\"), go)\n",
"ref = m(inp, inp_pos)\n",
"(grad_ref,) = torch.autograd.grad(ref, m.get_parameter(\"transformer.wte.weight\"), go)\n",
"\n",
"assert_close(res, ref)\n",
Expand Down

0 comments on commit 891bf84

Please sign in to comment.