Skip to content

Commit

Permalink
fix(decoder): specify libraryname to suppress warning (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
dacorvo authored Apr 16, 2024
1 parent c3daf50 commit 516c511
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion optimum/neuron/modeling_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@


def get_exporter(config, task):
return TasksManager.get_exporter_config_constructor(model_type=config.model_type, exporter="neuron", task=task)()
return TasksManager.get_exporter_config_constructor(
model_type=config.model_type, exporter="neuron", task=task, library_name="transformers"
)()


# Note: with python 3.9, functools.cache would be more suited
Expand Down

0 comments on commit 516c511

Please sign in to comment.