Format by black

This commit is contained in:
Sergey Borisov 2023-08-11 03:20:56 +03:00
parent 56023bc725
commit c0c2ab3dcf
2 changed files with 2 additions and 1 deletions

View File

@ -393,6 +393,7 @@ class FullLayer(LoRALayerBase):
self.weight = self.weight.to(device=device, dtype=dtype)
class IA3Layer(LoRALayerBase):
# weight: torch.Tensor
# on_input: torch.Tensor

View File

@ -13,7 +13,7 @@ def lora_token_vector_length(checkpoint: dict) -> int:
lora_token_vector_length = None
if "." not in key:
return lora_token_vector_length # wrong key format
return lora_token_vector_length # wrong key format
model_key, lora_key = key.split(".", 1)
# check lora/locon