Skip to content

Commit

Permalink
fix: Make tests pass again
Browse files Browse the repository at this point in the history
Signed-off-by: Nikos Livathinos <[email protected]>
  • Loading branch information
nikos-livathinos committed Jan 27, 2025
1 parent 14e71a7 commit 43ead93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docling_ibm_models/code_formula_model/models/sam_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ def forward(

new_input_embeds.append(cur_input_embeds)

next_inputs_embeds = torch.stack(new_input_embeds, dim=0)
inputs_embeds = torch.stack(new_input_embeds, dim=0) # type: ignore

return super(SamOPTModel, self).forward(
input_ids=None,
attention_mask=attention_mask,
past_key_values=past_key_values,
inputs_embeds=next_inputs_embeds,
inputs_embeds=inputs_embeds,
use_cache=use_cache,
output_attentions=output_attentions,
output_hidden_states=output_hidden_states,
Expand Down

0 comments on commit 43ead93

Please sign in to comment.