我无法导入 Transformer 类的管道函数,因为我的 jupyter 内核一直死机。尝试使用 Transformer-4.15.0 和 4.16.2。有人遇到过这个问题吗?
我尝试将类导入到新笔记本中,如图所示,它不断杀死内核。
python jupyter-notebook jupyter-lab huggingface-transformers
huggingface-transformers ×1
jupyter-lab ×1
jupyter-notebook ×1
python ×1