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 fix

model, self.optimizer = self.accelerator.prepare(self.model, self.optimizer)

File “/opt/conda/lib/python3.10/site-packages/accelerate/accelerator.py”, line 1182, in prepare
result = tuple(
File “/opt/conda/lib/python3.10/site-packages/accelerate/accelerator.py”, line 1183, in
self._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_one
return self.prepare_model(obj, device_placement=device_placement)
File “/opt/conda/lib/python3.10/site-packages/accelerate/accelerator.py”, line 1308, in prepare_model
model.forward = MethodType(torch.cuda.amp.autocast(dtype=torch.float16)(model.forward.func), model)
AttributeError: ‘function’ object has no attribute ‘func’. Did you mean: ‘doc’?

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

fixed this issue with using 4.29.0 transformer. thanks

It’d be helpful to know what your model was though, so we can try and fix the problem