mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-10-24 06:28:07 +08:00
@@ -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)
|
||||
|
||||
|
||||
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user