From 904ec69799e9682a5c3a973c07da1aa95bf0805c Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Tue, 7 Jan 2025 00:38:04 -0800 Subject: [PATCH] Update llama.py --- unsloth/models/llama.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unsloth/models/llama.py b/unsloth/models/llama.py index 0765e42892..fe9eacd242 100644 --- a/unsloth/models/llama.py +++ b/unsloth/models/llama.py @@ -866,7 +866,9 @@ def LlamaModel_fast_forward( elif IS_COHERE: hidden_states = self.norm(hidden_states) else: + print(0, hidden_states.dtype) hidden_states = fast_rms_layernorm(self.norm, hidden_states, gemma = IS_GEMMA) + print(1, hidden_states.dtype) pass if output_hidden_states: all_hidden_states += (hidden_states,)