Gemma support (#474)

* gemma support

* format

* lora support for gemma
This commit is contained in:
Awni Hannun
2024-02-21 08:47:13 -08:00
committed by GitHub
parent cfeef6d9d2
commit ab9172baac
4 changed files with 190 additions and 2 deletions

View File

@@ -233,7 +233,7 @@ def train(
val_info = {
"iteration": it + 1,
"val_loss": val_loss,
"val_time": val_time
"val_time": val_time,
}
training_callback.on_val_loss_report(val_info)

View File

@@ -31,6 +31,7 @@ def linear_to_lora_layers(model: nn.Module, num_lora_layers: int):
"mixtral",
"stablelm_epoch",
"qwen2",
"gemma",
]:
check_lora_layers(len(model.model.layers))