Crystalcareai commited on
Commit
b3f07c3
·
verified ·
1 Parent(s): 8b674a4

Update generate.py

Browse files
Files changed (1) hide show
  1. generate.py +1 -1
generate.py CHANGED
@@ -164,7 +164,7 @@ def generate(
164
 
165
  # Validate stopping criteria
166
  stopping_criteria = validate_stopping_criteria(
167
- max_length, max_new_tokens=None, min_length=min_length, stopping_criteria=self._get_stopping_criteria()
168
  )
169
  # Generate using the custom generate function
170
  generated_token_ids = custom_generate(
 
164
 
165
  # Validate stopping criteria
166
  stopping_criteria = validate_stopping_criteria(
167
+ max_length, max_new_tokens=None, min_length=min_length, stopping_criteria=self._get_stopping_criteria(generation_config=self.config, stopping_criteria=StoppingCriteriaList())
168
  )
169
  # Generate using the custom generate function
170
  generated_token_ids = custom_generate(