Is there a way to save the training log as a txt file with mlx_lm #939
-
For example, This is the command that I use
Here, the loss is printed at the terminal itself. If there could be a way to save it to a txt file as well, or plot a graph after the training, it would be easier to monitor the training. |
Beta Was this translation helpful? Give feedback.
Answered by
awni
Aug 16, 2024
Replies: 1 comment 2 replies
-
You could always pipe it to a file or use mlx_lm.lora <...> | tee results.txt Another option is to use the API instead of the CLI and pass custom callback (which you could use for example to send results to a wandb instance). Here's the call back base class. This notebook has an example of using the API. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Satyam7166-tech
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could always pipe it to a file or use
tee
to have it in a file and on std out.Another option is to use the API instead of the CLI and pass custom callback (which you could use for example to send results to a wandb instance). Here's the call back base class. This notebook has an example of using the API.