charent/ChatLM-mini-Chinese

运行·pre_train报错,TypeError: Accelerator.__init__() got an unexpected keyword argument 'use_seedable_sampler'

JaymzWang opened this issue · 1 comments

E:\ChatLM-mini-Chinese\ChatLM-mini-Chinese\venv\Scripts\python.exe E:\ChatLM-mini-Chinese\ChatLM-mini-Chinese\pre_train.py
Traceback (most recent call last):
File "E:\ChatLM-mini-Chinese\ChatLM-mini-Chinese\pre_train.py", line 136, in
pre_train(config)
File "E:\ChatLM-mini-Chinese\ChatLM-mini-Chinese\pre_train.py", line 109, in pre_train
trainer = Seq2SeqTrainer(
^^^^^^^^^^^^^^^
File "E:\ChatLM-mini-Chinese\ChatLM-mini-Chinese\venv\Lib\site-packages\transformers\trainer_seq2seq.py", line 56, in init
super().init(
File "E:\ChatLM-mini-Chinese\ChatLM-mini-Chinese\venv\Lib\site-packages\transformers\trainer.py", line 367, in init
self.create_accelerator_and_postprocess()
File "E:\ChatLM-mini-Chinese\ChatLM-mini-Chinese\venv\Lib\site-packages\transformers\trainer.py", line 4127, in create_accelerator_and_postprocess
self.accelerator = Accelerator(
^^^^^^^^^^^^
TypeError: Accelerator.init() got an unexpected keyword argument 'use_seedable_sampler'

Process finished with exit code 1

检查一下你的transformers版本,4.36.04.37.2都没问题,还有accelerate版本。