Skip to content

Conversation

LouisCastricato
Copy link
Contributor

Add how to save files. See here. #179

@PhungVanDuy
Copy link
Collaborator

I have added the save hf function already here: https://github.com/CarperAI/trlx/blob/main/trlx/trainer/accelerate_base_trainer.py#L202, you can mention this one in read me as well as save_best function and load hf.

@LouisCastricato
Copy link
Contributor Author

So its jus trainer.save?

@PhungVanDuy
Copy link
Collaborator

PhungVanDuy commented Jan 10, 2023

So its jus trainer.save?

Yes. It will save the hf format as well as the accelerate state.

@LouisCastricato LouisCastricato merged commit 24b041a into main Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants