Skip to content

Commit ba2a04d

Browse files
committed
Fix failures in test_long_context.
The problem comes from new added field and the test didn't explicitly set the field but using position information.
1 parent 0ea0d0d commit ba2a04d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/lora/test_long_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def _create_lora_request(lora_id, long_context_infos):
2929
context_len = long_context_infos[lora_id]["context_length"]
3030
scaling_factor = context_len_to_scaling_factor[context_len]
3131
return LoRARequest(context_len, lora_id,
32-
long_context_infos[lora_id]["lora"],
32+
long_context_infos[lora_id]["lora"], None,
3333
4096 * scaling_factor)
3434

3535

vllm/lora/request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __post_init__(self):
3838
self.lora_path = self.lora_local_path or ""
3939

4040
# Ensure lora_path is not empty
41-
assert self.lora_path, "lora_path can not be empty"
41+
assert self.lora_path, "lora_path cannot be empty"
4242

4343
@property
4444
def adapter_id(self):

0 commit comments

Comments
 (0)