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.

Update flex_attention.py

Daniel Hanb3f1a866f4b7
diff --git a/unsloth/kernels/flex_attention.py b/unsloth/kernels/flex_attention.py
index 7deb9a96d36..887ffca1b71 100644
--- a/unsloth/kernels/flex_attention.py
+++ b/unsloth/kernels/flex_attention.py
@@ -15,6 +15,7 @@
import torch
from functools import lru_cache
from transformers.models.llama.modeling_llama import logger
+import os
torch_compile_options = {
"epilogue_fusion" : True,