Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Feb 13, 2024
1 parent f7e4069 commit 295c190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimum_benchmark/backends/pytorch/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def __init__(self, config: PyTorchConfig):
self.pretrained_model.generation_config.cache_implementation = self.config.cache_implementation

# Eval mode
if self.config.eval_mode and self.config.library == "diffusers":
if self.config.eval_mode and self.config.library != "diffusers":
LOGGER.info("\t+ Turning on model's eval mode")
self.pretrained_model.eval()

Expand Down

0 comments on commit 295c190

Please sign in to comment.