提问人:fluxrep 提问时间:10/4/2023 更新时间:10/4/2023 访问量:29
tensorflow/transformers 包导致的致命 Python 错误
Fatal Python error stemming from tensorflow/transformers packages
问:
我一直收到一个致命的 Python 错误:非法指令。该错误似乎源于 tensorflow 和 transformers.py。 我有python 3.9,tensorflow 2.14.0和transformers 4.33.2。我的操作系统是 Mac。
错误消息很长,但这里有几行:
`Fatal Python error: Illegal instruction.
Main thread:
Current thread 0x0000000202868280 (most recent call first):
File "<frozen importlib._bootstrap>", line 228 in _call_with_frames_removed
File "<frozen importlib._bootstrap_external>", line 1173 in create_module
File "<frozen importlib._bootstrap>", line 565 in module_from_spec
File "<frozen importlib._bootstrap>", line 666 in _load_unlocked
File "<frozen importlib._bootstrap>", line 986 in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1007 in _find_and_load
File "<frozen importlib._bootstrap>", line 228 in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1058 in _handle_fromlist
(Then it leads to specific files that produce these messages such as transformers/image_transforms.py)`
我尝试增加递归限制,例如.sys.setrecursionlimit(100000)
仍然崩溃并重新启动我的内核。sys.settrace
答: 暂无答案
上一个:无法创建输出文件
评论