Skip to content

Commit

Permalink
only test input_embeds, not decoder_input_embeds
Browse files Browse the repository at this point in the history
  • Loading branch information
fxmarty committed Jul 8, 2024
1 parent ae9dd02 commit fc56efc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_modeling_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ def _create_and_check_torch_fx_tracing(self, config, inputs_dict, output_loss=Fa
(past_mask, inputs_to_test[1]["attention_mask"]), dim=1
)

if "inputs_embeds" in inspect.signature(model.forward).parameters:
if "inputs_embeds" in inspect.signature(model.forward).parameters and not model.config.is_encoder_decoder:
inputs_to_test.append(
{
"inputs_embeds": torch.rand(
Expand Down

0 comments on commit fc56efc

Please sign in to comment.