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 Han6320381fb689
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.py
index 4ffb18f6812..16159b128f2 100644
--- a/unsloth/models/llama.py
+++ b/unsloth/models/llama.py
@@ -1617,7 +1617,8 @@ class FastLlamaModel:
# Log global device type used
global USE_BFLOAT16
USE_BFLOAT16 = True if dtype == torch.bfloat16 else False
-
+ print(USE_BFLOAT16)
+
# RoPE Scaling
model_config = AutoConfig.from_pretrained(model_name, token = token)
model_max_seq_length = model_config.max_position_embeddings