Hey!
if you are using the huggingface trainer you can simply save a model with the command
trainer.save_model(<Path>)
where <Path> is the path as a string where you want to save your model.
Maybe you should do the huggingface course to get more information (Transformer models - Hugging Face Course)