Skip to content

Commit

Permalink
Update optimum/exporters/neuron/convert.py
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Benayoun <[email protected]>
  • Loading branch information
JingyaHuang and michaelbenayoun authored Mar 27, 2024
1 parent cb90a0a commit b7c0e4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimum/exporters/neuron/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ def export_neuronx(
# diffusers specific
compiler_args = add_stable_diffusion_compiler_args(config, compiler_args)

if config.dynamic_batch_size is True and not inline_weights_to_neff:
if config.dynamic_batch_size and not inline_weights_to_neff:
logger.warning(
"Dynamic batching is not yet compatible with the weights/neff non-inlined model. `inline_weights_to_neff` is set to True. If you still want to separate the neff and weights, please set `dynamic_batch_size=False`."
)
Expand Down

0 comments on commit b7c0e4b

Please sign in to comment.