[LoRA] Support modules_to_save for sequence classification (#53555)
Signed-off-by: linitra24 <Joy25810@foxmail.com> Signed-off-by: linitra24 <renshuang.zhou@daocloud.io> Co-authored-by: Jee Jee Li <pandaleefree@gmail.com>
This commit is contained in:
@@ -157,6 +157,10 @@ class WorkerLoRAManager:
|
||||
# 3D->2D conversion when running under the universal 2D wrapper.
|
||||
lora.is_3d_lora_weight = lora_request.is_3d_lora_weight
|
||||
|
||||
# Validate classification-head weights.
|
||||
self._adapter_manager._validate_modules_to_save(lora)
|
||||
self._adapter_manager._validate_token_classification_lora(lora)
|
||||
|
||||
except FileNotFoundError as e:
|
||||
# FileNotFoundError should be raised if both
|
||||
# - No adapter found to download from huggingface (or in
|
||||
|
||||
Reference in New Issue
Block a user