Open liweizheng0528 opened 3 months ago
File "/ft/train.py", line 168, in
response = predict(messages, model, tokenizer)
File "/ft/train.py", line 70, in predict
model_inputs = tokenizer([text], return_tensors="pt").to(device)
File "/root/miniconda3/lib/python3.8/site-packages/transformers/tokenization_utils_base.py", line 803, in to
self.data = {k: v.to(device=device) for k, v in self.data.items() if v is not None}
File "/root/miniconda3/lib/python3.8/site-packages/transformers/tokenization_utils_base.py", line 803, in
请问这个是什么原因