LoRA: add training callbacks (#414)

* LoRA: add training callbacks

* LoRA: add trained tokens print & callback
This commit is contained in:
Madroid Ma
2024-02-16 22:04:57 +08:00
committed by GitHub
parent 726b1ddec0
commit 0ba466369f
2 changed files with 32 additions and 6 deletions

View File

@@ -7,7 +7,6 @@ import mlx.optimizers as optim
import numpy as np
from mlx.utils import tree_flatten
from .tuner.lora import LoRALinear
from .tuner.trainer import TrainingArgs, evaluate, train
from .tuner.utils import linear_to_lora_layers
from .utils import generate, load