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.

Fix typo

Daniel Han37365b6ba94f
diff --git a/unsloth/models/mistral.py b/unsloth/models/mistral.py
index 7eb651cd337..9a91a8fc1f3 100644
--- a/unsloth/models/mistral.py
+++ b/unsloth/models/mistral.py
@@ -165,7 +165,7 @@ def MistralForCausalLM_fast_forward(
else:
# Fix from https://github.com/Rypo
causal_mask = xformers.attn_bias.BlockDiagonalCausalMask\
- .from_seqlens([qlen]*bsz)\
+ .from_seqlens([q_len]*bsz)\
.make_local_attention(window_size = sliding_window)
pass