diff --git a/examples/text-generation/run_lm_eval.py b/examples/text-generation/run_lm_eval.py index 8d61118890..b086c80b92 100644 --- a/examples/text-generation/run_lm_eval.py +++ b/examples/text-generation/run_lm_eval.py @@ -75,7 +75,7 @@ def __init__(self, tokenizer, model, args, options): self.options = options self._device = args.device self.model_inputs = {"use_cache": self.options.use_cache} - if self.model.config.model_type == "llama" or "falcon": + if self.model.config.model_type in ["llama", "falcon"]: self.model_inputs.update( { "reuse_cache": self.options.reuse_cache,