Skip to content

Commit

Permalink
remove some warning
Browse files Browse the repository at this point in the history
  • Loading branch information
AllentDan committed May 15, 2024
1 parent f1966a9 commit f4c901f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lmdeploy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,5 @@ def _get_and_verify_max_len(
f'User-specified max_model_len ({max_model_len}) is greater '
'than the derived max_model_len '
f'({max_len_key}={derived_max_model_len} or model_max_length='
f"{model_max_length} in model's config.json). This may lead "
'to incorrect model outputs or CUDA errors. Make sure the '
'value is correct and within the model context size.')
f"{model_max_length} in model's config.json).")
return int(max_model_len)

0 comments on commit f4c901f

Please sign in to comment.