Why run_clm keep asking to download pytest
why run_clm keep asking to download pytest and when it download can not read all utils. please let me know how to fixmodel, self.optimizer = self.accelerator.prepare(self.model, self.optimizer)File “/opt/conda/lib/python3.10/site-packages/accelerate/accelerator.py”, line 1182, in prepareresult = tuple(File “/opt/conda/lib/python3.10/site-packages/accelerate/accelerator.py”, line 1183, inself._prepare_one(obj, first_pass=True, device_placement=d) for obj, d in zip(args, device_placement)File “/opt/conda/lib/python3.10/site-packages/accelerate/accelerator.py”, line 1022, in _prepare_onereturn self.prepare_model(obj, device_placement=device_placement)File “/opt/conda/lib/python3.10/site-packages/accelerate/accelerator.py”, line 1308, in prepare_modelmodel.forward = MethodType(torch.cuda.amp.autocast(dtype=torch.float16)(model.forward.func), model)AttributeError: ‘function’ object has no attribute ‘func’. Did you mean: ‘doc’?
2023-06-13T09:51:35Z
Thats not quite whats happening here. Whats the model you are using? This means Accelerate is having trouble wrapping the forward function for mixed precision
2023-06-15T07:23:01Z
fixed this issue with using 4.29.0 transformer. thanks
2023-06-15T16:22:03Z
gkgkska:thanksIt’d be helpful to know what your model was though, so we can try and fix the problem