1. An error about transformers under jupyter notebook: unable to import pipeline pipeline
https://blog.csdn.net/qq_42658739/article/details/114239961?spm=1001.2014.3001.5502
Analysis: Do not use the new version of transformers, generally use 3.4.0 or 3.0.2, because of the combination of online comments and my trial , There is no problem with these two.
2. Error loading model:
Remember, after downloading the pre-trained model, you must first change the file name. Otherwise, there will be an error.
3. General routines for model loading:
- When loading the token and model, if it is the tf storage file ckpt, declare from_tf=True.