Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zhihao committed Oct 15, 2024
1 parent a36e9d7 commit cba1396
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/request_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit cba1396

Please sign in to comment.