cfloressuazo:

    trainer = Trainer(
        model=model,
        args=training_args,
        compute_metrics=compute_metrics,
        train_dataset=train_dataset,
        eval_dataset=test_dataset,
    )



There tokenizer is missing and when you then call trainer.save_model it only saves the model and not the tokenizer as well.
If you take a look at: notebooks/train.py at 87cde801e765caf5936808c61d4edd62cc32abf1 · huggingface/notebooks · GitHub 3
The tokenizer is loaded and passed to the Trainer to save it as well.
Can you share the link where you found this?