When initializing the pipeline, you’re specifying model='xlnet-base-cased'. You should be specifying the model and tokenizer you defined above.
pipe = pipeline('feature-extraction', model=model, tokenizer=tokenizer)