just add the tokenizer and related files from pretrained model’s directory to our model directory. it worked