From ece20f1d64d714c52e95eae5fdd8aadfa067396f Mon Sep 17 00:00:00 2001 From: Angelos Katharopoulos Date: Thu, 12 Sep 2024 16:05:46 -0700 Subject: [PATCH] Remove tree_map import --- llms/mlx_lm/tuner/trainer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llms/mlx_lm/tuner/trainer.py b/llms/mlx_lm/tuner/trainer.py index dd2a8b67..38619d95 100644 --- a/llms/mlx_lm/tuner/trainer.py +++ b/llms/mlx_lm/tuner/trainer.py @@ -11,7 +11,7 @@ import mlx.core as mx import mlx.nn as nn import numpy as np from mlx.nn.utils import average_gradients -from mlx.utils import tree_flatten, tree_map +from mlx.utils import tree_flatten def grad_checkpoint(layer):