You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
retrieve training parameters from a lora model? #1733
I've fine-tuned Llama3.2 several times, and one model in particular—the very first one I trained—performs the best. Since it was my first attempt while I was exploring unsloth, I can't seem to recall the training parameters (like batch size, number of epochs, etc.) that I used for this model.
I've checked the LoRA model files, but there doesn't appear to be any metadata or documentation regarding the training setup.
Is there any way to extract or recover these details from the model itself?
Unfortunately not :( I could in theory save them inside the LoRA weights, but unsure if that's a good idea, since it exposes training dynamics - would that be helpful?
Unfortunately for your case, I don't see a way sorry!
in the end i re-did the training and stumbled upon this issue 1756
I don't understand where the problem could be.
I have double checked all the steps, there is no error during fine-tunning process, and my parameters look like this:
The final LoRA adapter only stores the LoRA config (rank, alpha, target modules in adapter_config.json), not the training hyperparameters. However, if your output_dir (by default outputs) still has any checkpoint-* folders from that run, each one contains training_args.bin and trainer_state.json, which hold the batch size, learning rate, epochs and the full loss history:
For future runs it is worth also logging to a tracker (report_to = "wandb" or "tensorboard") so the settings are kept with the run. Closing since there is no way to recover them from the adapter weights alone, but feel free to reopen if you have other questions.
Activity
danielhanchen commentedon Feb 23, 2025
Unfortunately not :( I could in theory save them inside the LoRA weights, but unsure if that's a good idea, since it exposes training dynamics - would that be helpful?
Unfortunately for your case, I don't see a way sorry!
ep0p commentedon Feb 24, 2025
@danielhanchen No problem, thanks a lot for the answer.
in the end i re-did the training and stumbled upon this issue 1756
I don't understand where the problem could be.
I have double checked all the steps, there is no error during fine-tunning process, and my parameters look like this:
Also the loss is decreasing as you can see in the following file with the output of training process
app_redo.txt
danielhanchen commentedon Oct 8, 2026
The final LoRA adapter only stores the LoRA config (rank, alpha, target modules in
adapter_config.json), not the training hyperparameters. However, if youroutput_dir(by defaultoutputs) still has anycheckpoint-*folders from that run, each one containstraining_args.binandtrainer_state.json, which hold the batch size, learning rate, epochs and the full loss history:For future runs it is worth also logging to a tracker (
report_to = "wandb"or"tensorboard") so the settings are kept with the run. Closing since there is no way to recover them from the adapter weights alone, but feel free to reopen if you have other questions.