Update gemma.py
eabdullin
This commit is contained in:
parent
7e1c6a62e2
commit
b122b76b26
1 changed files with 1 additions and 1 deletions
|
|
@ -134,7 +134,7 @@ def GemmaModel_fast_forward_inference(
|
|||
position_ids,
|
||||
attention_mask = None,
|
||||
):
|
||||
out_weight = torch.empty_like(self.layers[0].input_layernorm.weight, dtype = torch.float32, device = "cuda")
|
||||
out_weight = torch.empty_like(self.model.layers[0].input_layernorm.weight, dtype = torch.float32, device = "cuda")
|
||||
input_ids = input_ids[:,:self.max_seq_length]
|
||||
hidden_states = self.model.embed_tokens(input_ids)
|
||||
hidden_states = hidden_states.to(self.config.torch_dtype)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue