Apply suggestions from code review
Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
This commit is contained in:
parent
1dbd16abb9
commit
a90e064262
2 changed files with 2 additions and 2 deletions
|
@ -2681,7 +2681,7 @@ struct server_context {
|
|||
// check if we can batch this slot with the previous one
|
||||
if (!slot_batched) {
|
||||
slot_batched = &slot;
|
||||
} else if (slot_batched && !slot_batched->can_batch_with(slot)) {
|
||||
} else if (!slot_batched->can_batch_with(slot)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
@ -826,7 +826,7 @@ static std::vector<common_lora_adapter_container> parse_lora_request(
|
|||
}
|
||||
|
||||
// set value
|
||||
for (auto entry : data) {
|
||||
for (const auto & entry : data) {
|
||||
int id = json_value(entry, "id", -1);
|
||||
float scale = json_value(entry, "scale", 0.0f);
|
||||
if (0 <= id && id < max_idx) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue