Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

accurate_accumulation

Daniel Hanaacc8e227b76
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py
index af1d35bd9fb..1f2f9018d62 100644
--- a/unsloth/models/_utils.py
+++ b/unsloth/models/_utils.py
@@ -1183,6 +1183,7 @@ def unsloth_compile_transformers(
manual_replacements = True,
fast_lora_forwards = True,
fast_residual_stream = True,
+ accurate_accumulation = True,
epilogue_fusion = True,
max_autotune = False,
shape_padding = True,
@@ -1229,6 +1230,7 @@ def unsloth_compile_transformers(
manual_replacements = manual_replacements,
fast_lora_forwards = fast_lora_forwards,
fast_residual_stream = fast_residual_stream,
+ accurate_accumulation = accurate_accumulation,
epilogue_fusion = epilogue_fusion,
max_autotune = max_autotune,
shape_padding = shape_padding,
diff --git a/unsloth/models/loader.py b/unsloth/models/loader.py
index 824986dc1e3..2fe037eb340 100644
--- a/unsloth/models/loader.py
+++ b/unsloth/models/loader.py
@@ -472,6 +472,7 @@ class FastVisionModel(FastBaseVisionModel):
manual_replacements = True,
fast_lora_forwards = False,
fast_residual_stream = False,
+ accurate_accumulation = True,
epilogue_fusion = True,
max_autotune = False,
shape_padding = True,