Update KDA chunk prefill decay to use exp2 semantics (#43195)

Signed-off-by: zexplorerhj <19794632+zexplorerhj@users.noreply.github.com>
Co-authored-by: zexplorerhj <19794632+zexplorerhj@users.noreply.github.com>
This commit is contained in:
zexplorerhj
2026-05-21 01:16:27 -07:00
committed by GitHub
co-authored by zexplorerhj
parent 0a54df2847
commit b719b1635b
3 changed files with 42 additions and 17 deletions
+2
View File
@@ -15,10 +15,12 @@ from .utils import is_gather_supported
if os.environ.get("FLA_USE_FAST_OPS", "0") == "1":
exp = tldevice.fast_expf
exp2 = tl.exp2
log = tldevice.fast_logf
log2 = tldevice.fast_log2f
else:
exp = tl.exp
exp2 = tl.exp2
log = tl.log
log2 = tl.log2