Skip to content

Commit 1542d94

Browse files
author
Varun Sundar Rabindranath
committed
avoid updates to punica base
Signed-off-by: Varun Sundar Rabindranath <[email protected]>
1 parent 881a179 commit 1542d94

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

vllm/lora/punica_wrapper/punica_base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def __init__(self, max_num_batched_tokens: int, max_batches: int,
168168
self.is_prefill = False
169169
self.no_lora = False
170170

171-
def update_base_metadata(
171+
def _update_base_metadata(
172172
self,
173173
mapping: "LoRAMapping",
174174
lora_index_to_id: List[Optional[int]],
@@ -329,9 +329,9 @@ def update_metadata(
329329
long_lora_context: Optional["LongContextLoRAContext"] = None,
330330
**kwargs):
331331

332-
self.update_base_metadata(mapping, lora_index_to_id, max_loras,
333-
vocab_size, extra_vocab_size,
334-
long_lora_context)
332+
self._update_base_metadata(mapping, lora_index_to_id, max_loras,
333+
vocab_size, extra_vocab_size,
334+
long_lora_context)
335335
if mapping.is_prefill:
336336
# Update metadata required for prefill-related operators.
337337
self._update_prefill_metada(self.token_lora_indices)

vllm/lora/punica_wrapper/punica_gpu.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ def update_metadata(
112112

113113
if env.VLLM_USE_V1:
114114
self.is_prefill = mapping.is_prefill
115-
self.update_base_metadata(mapping, lora_index_to_id, max_loras,
116-
vocab_size, extra_vocab_size,
117-
long_lora_context)
115+
self._update_base_metadata(mapping, lora_index_to_id, max_loras,
116+
vocab_size, extra_vocab_size,
117+
long_lora_context)
118118
self._v1_prepare_metadata_tensors(self.token_lora_indices,
119119
self.sampler_indices)
120120
else:

0 commit comments

Comments
 (0)