Saving model to a fixed name folder

How do I save my model to a custom named folder instead of timestamp using train.persist

hey @Hakim, you can use the --fixed-model-name argument of the rasa train command if you want to name the model before saving it:

for your refrence:

I hope that helps :slight_smile:

1 Like

Thank you @JiteshGaikwad for the reply. But I am trying to do it inside a python file. Do you have any idea how to approach it?

found the solution. Just need to do-

model_directory = trainer.persist(model_path,fixed_model_name = 'test')

Hi @JiteshGaikwad can we use --fixed-model-name parameter in model/train api