Skip to content

Commit

Permalink
Update test_modeling_flax_common.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hyenal authored and Sebastien Ehrhardt committed May 14, 2024
1 parent d3af86f commit e290c58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_modeling_flax_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def test_equivalence_flax_to_pt(self):
with tempfile.TemporaryDirectory() as tmpdirname:
fx_model.save_pretrained(tmpdirname)
pt_model_loaded = pt_model_class.from_pretrained(
tmpdirname, from_flax=True, attn_implementation="eager"
tmpdirname, from_flax=True, attn_implementation=fx_model.config._attn_implementation
)

# send pytorch model to the correct device
Expand Down

0 comments on commit e290c58

Please sign in to comment.