Skip to content

details of model_dir

jidasheng edited this page Dec 6, 2019 · 2 revisions
  • when training is finished, several files will be generated in the model_dir directory

    file description
    arguments.json the arguments for training
    loss.csv the training records
    model.pth the PyTorch model file, generated by torch.save()
    tags.json the tag set
    vocab.json the vocabulary
  • only three files(model.pth, tags.json, vocab.json) are needed when predicting

    • you can remove arguments.json and loss.csv before you release your model
Clone this wiki locally