Update gemma2.py
This commit is contained in:
parent
bc3690a755
commit
e16fcd7d94
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ if HAS_FLASH_ATTENTION_SOFTCAPPING:
|
|||
# [TODO] We must randomnly use torch.compile?
|
||||
# I checked the gradients and formulas and I'm sure it's correct.
|
||||
# I'm stumped :(
|
||||
@torch.compile(fullgraph = True, dynamic = True, options = torch_compile_options)
|
||||
@torch.compile(fullgraph = False, dynamic = True, options = torch_compile_options)
|
||||
def fast_rms_layernorm_gemma2_compiled(layernorm, X, gemma = True):
|
||||
old_dtype = X.dtype
|
||||
X = X.float()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue