Update gemma.py
This commit is contained in:
parent
7e33aa2520
commit
35adcbf83c
1 changed files with 4 additions and 4 deletions
|
|
@ -237,10 +237,10 @@ def GemmaModel_fast_forward(
|
|||
position_ids = None
|
||||
pass
|
||||
|
||||
if position_ids is not None:
|
||||
if position_ids.shape[0] != batch_size:
|
||||
position_ids = position_ids.repeat((batch_size, 1))
|
||||
pass
|
||||
# if position_ids is not None:
|
||||
# if position_ids.shape[0] != batch_size:
|
||||
# position_ids = position_ids.repeat((batch_size, 1))
|
||||
# pass
|
||||
|
||||
# embed positions
|
||||
if inputs_embeds is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue