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 llama.py

Daniel Hande99c8462508
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.py
index 32f2c6b71c1..64bc6f84f07 100644
--- a/unsloth/models/llama.py
+++ b/unsloth/models/llama.py
@@ -1243,7 +1243,7 @@ class FastLlamaModel:
raise RuntimeError('Unsloth currently does not support multi GPU setups - but we are working on it!')
pass
- if ((post_check - post_check) >= 1).sum() > 1:
+ if ((post_check - pre_check) >= 1).sum() > 1:
raise RuntimeError('Unsloth currently does not support multi GPU setups - but we are working on it!')
import transformers.trainer