Clean up remaining Punica C information (#7027)

This commit is contained in:
Jee Jee Li
2024-08-05 06:37:08 +08:00
committed by GitHub
parent 16a1cc9bb2
commit f80ab3521c
5 changed files with 3 additions and 15 deletions

View File

@@ -1304,7 +1304,7 @@ class LoRAConfig:
long_lora_scaling_factors: Optional[Tuple[float]] = None
def __post_init__(self):
# Keep this in sync with csrc/punica/bgmv/bgmv_config.h
# TODO: Increase the range of rank
possible_max_ranks = (8, 16, 32, 64)
possible_lora_extra_vocab_size = (0, 256, 512)
if self.max_lora_rank not in possible_max_ranks: