Open iamsile opened 1 year ago
您好,这是pytorch tensor的类型,请查阅pytorch教程
@Sleepychord 您好,可能我没有表达清楚,我的意思是torch_image.to(self.dtype).to(self.device),self.dtype的类型此时是什么,是float16,还是float32,你能方便打印看一下嘛?
是因为想支持多种不同类型,所以这里根据self的类型判断。默认应该是fp16
@Sleepychord 您好,我在基于visualglm-6b训练reward model时遇到了一个错误,框架是用的是deepspeed_chat,具体报错如下:
Beginning of Epoch 1/1, Total Micro Batches 30502
Traceback (most recent call last):
File "/xxxxx/deepspeed_chat/training/step2_reward_model_finetuning/main.py", line 472, in
麻烦您帮忙看一下,期待您的回复
您好,我最近在用visualglm做reward model的训练,在修改和查看代码的时候发现modeling_chatglm.py里有一行:torch_image = torch_image.to(self.dtype).to(self.device),请问这个self.dtype具体是指?我在代码里没有找到相关的定义