From 2181a64ba934bd68171bb83b60d65970ab6d5686 Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Tue, 7 Jan 2025 00:45:22 -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 1c58e34b6f..824a3ccf15 100644 --- a/unsloth/models/llama.py +++ b/unsloth/models/llama.py @@ -789,11 +789,13 @@ def LlamaModel_fast_forward( if transformers_version > "4.47.1" and hasattr(self, "rotary_emb"): # Transformers main has made it mandatory to pass position_embeddings # https://github.com/huggingface/transformers/pull/34858 + print("***") position_embeddings = self.rotary_emb(hidden_states, position_ids, self.config.max_position_embeddings) else: position_embeddings = None # Go through every layer! + print("START", hidden_states.dtype) for idx, decoder_layer in enumerate(self.layers): if output_hidden_states: all_hidden_states += (hidden_states,)