version bump + some fixes (#792)

This commit is contained in:
Awni Hannun
2024-05-21 20:09:35 -07:00
committed by GitHub
parent 9f671228cd
commit 9fc6efbd90
4 changed files with 9 additions and 5 deletions

View File

@@ -54,6 +54,10 @@ def linear_to_lora_layers(
"""
num_layers = len(model.layers)
if num_lora_layers < 0:
num_lora_layers = num_layers
if num_lora_layers > num_layers:
raise ValueError(
f"Requested {num_lora_layers} LoRA layers "