diff --git a/optimum/exporters/tasks.py b/optimum/exporters/tasks.py index 4dc5ce8ae33..3a9a751950e 100644 --- a/optimum/exporters/tasks.py +++ b/optimum/exporters/tasks.py @@ -1533,7 +1533,7 @@ def infer_library_from_model( library_name = "transformers" if library_name is None: - ValueError( + raise ValueError( "The library_name could not be automatically inferred. If using the command-line, please provide the argument --library (transformers,diffusers,timm)!" )