Skip to content

Commit

Permalink
revert the flag
Browse files Browse the repository at this point in the history
  • Loading branch information
JingyaHuang committed Jan 15, 2025
1 parent a271839 commit 581e13d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion optimum/exporters/neuron/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,8 @@ def export_neuronx(
compiler_args.extend(["--optlevel", optlevel])
logger.info(f"Using Neuron: --optlevel {optlevel}")

compiler_args.extend(["--model-type", "transformer"])
if getattr(config._config, "is_encoder_decoder", False):
compiler_args.extend(["--model-type", "transformer"])

compiler_args = add_stable_diffusion_compiler_args(config, compiler_args) # diffusers specific

Expand Down

0 comments on commit 581e13d

Please sign in to comment.