From cba139688201e64e8d71d52d717831aa4de05619 Mon Sep 17 00:00:00 2001 From: zhihao Date: Tue, 15 Oct 2024 20:40:57 +0000 Subject: [PATCH] lint --- src/runtime/request_manager.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/request_manager.cc b/src/runtime/request_manager.cc index c318f667c4..5fbee65e6d 100644 --- a/src/runtime/request_manager.cc +++ b/src/runtime/request_manager.cc @@ -273,7 +273,7 @@ RequestManager::RequestGuid request.max_new_tokens = request_.max_new_tokens; // both unset if (request.max_length == -1 && request.max_new_tokens == -1) { - request.max_length = get_max_sequence_length()-1; + request.max_length = get_max_sequence_length() - 1; } // both set if (request.max_length != -1 && request.max_new_tokens != -1) { @@ -385,7 +385,7 @@ RequestManager::RequestGuid assert(false); } if (request.max_length == -1) { - request.max_length = get_max_sequence_length() -1; + request.max_length = get_max_sequence_length() - 1; } request.peft_model_id = request_.peft_model_id; request.req_type = RequestType::REQ_FINETUNING;