pythonbert-language-modelhuggingface-transformersray-tune

What does 'output_dir' mean in transformers.TrainingArguments?


On the huggingface site documentation, it says 'The output directory where the model predictions and checkpoints will be written'. I don't quite understand what it means. Do I have to create any file for that?


Solution

  • The trainer of the Huggingface models can save many things. Most importantly:

    All these are stored in files in the output_dir directory. You do not have to create the directory in advance, but the path to the directory at least should exist.