thank you @valhalla, for your reply, the readme file doesn’t mention xlnet models.
export TRAIN_FILE=/path/to/dataset/wiki.train.raw
export TEST_FILE=/path/to/dataset/wiki.test.raw

python run_language_modeling.py \
    --output_dir=output \
    --model_type=xlnet\
    --model_name_or_path=xlnet \
    --do_train \
    --train_data_file=$TRAIN_FILE \
    --do_eval \
    --eval_data_file=$TEST_FILE 

is there anyway to precise that I want to continue training from the last checkpoint and not do the training from scratch ?
Thanks