mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-19 22:02:06 +00:00
Update server/text_generation_server/adapters/lora.py
This commit is contained in:
parent
98d0093660
commit
600d7e6ece
@ -331,16 +331,13 @@ class BatchLoraWeights(BatchAdapterWeights):
|
|||||||
for idx in segment_indices
|
for idx in segment_indices
|
||||||
if idx in adapter_weights
|
if idx in adapter_weights
|
||||||
}
|
}
|
||||||
use_sgmv = False
|
|
||||||
rank_data = {}
|
|
||||||
|
|
||||||
if not has_sgmv():
|
if not has_sgmv():
|
||||||
return BatchLoraWeights(
|
return BatchLoraWeights(
|
||||||
lora_a=lora_a,
|
lora_a=lora_a,
|
||||||
lora_b=lora_b,
|
lora_b=lora_b,
|
||||||
adapter_index_configs=adapter_index_configs,
|
adapter_index_configs=adapter_index_configs,
|
||||||
rank_data=rank_data,
|
rank_data={},
|
||||||
use_sgmv=use_sgmv,
|
use_sgmv=False,
|
||||||
)
|
)
|
||||||
if prefill or max_rank > BGMV_MAX_RANK:
|
if prefill or max_rank > BGMV_MAX_RANK:
|
||||||
use_sgmv = True
|
use_sgmv = True
|
||||||
|
Loading…
Reference in New Issue
Block a user