From f4c901ffe288ce07677fc058053c76f98884f72b Mon Sep 17 00:00:00 2001 From: AllentDan Date: Wed, 15 May 2024 09:23:59 +0800 Subject: [PATCH] remove some warning --- lmdeploy/utils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lmdeploy/utils.py b/lmdeploy/utils.py index 2895b772ae..fa20debdaf 100644 --- a/lmdeploy/utils.py +++ b/lmdeploy/utils.py @@ -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)