加载好文件和模型后,无法完成chat
FreshW1nd opened this issue · 2 comments
FreshW1nd commented
卡在这里不动了
Generating outputs: 0%| | 0/1 [00:00<?, ?it/s]C:\Users\liufe\anaconda3\envs\chatglm\lib\site-packages\transformers\tokenization_utils_base.py:717: UserWarning: Creating a tensor from a list of numpy.ndarrays is extremely slow. Please consider converting the list to a single numpy.ndarray with numpy.array() before converting to a tensor. (Triggered internally at ..\torch\csrc\utils\tensor_new.cpp:248.)
tensor = as_tensor(value)
shibing624 commented
加载一个小文件试试?
ahaufox commented
加载方式改成auto试试 AutoModel或者AutoModelForCausalLM