ipex-llm icon indicating copy to clipboard operation
ipex-llm copied to clipboard

Unable to run the finetuning sample with transformers==4.36.0 version.

Open xiangyang-95 opened this issue 1 year ago • 3 comments

Due to the requirements from mixtral that needs transformers==4.36.0, I tried to run the finetuning example but hit into error when I am trying this.

xiangyang-95 avatar Jan 26 '24 06:01 xiangyang-95

This is the error present: SafetensorError('device xpu is invalid')

xiangyang-95 avatar Jan 26 '24 11:01 xiangyang-95

Hi @xiangyang-95 , could you please share us your detailed code / error message and your pip list so that we maybe can reproduce your errors : )

rnwang04 avatar Jan 29 '24 01:01 rnwang04

By the way, based on my experience, if you want to finetune mixtral, it would be better to use transformers==4.36.1 to avoid error in saving checkpoint.

rnwang04 avatar Jan 29 '24 01:01 rnwang04

Able to finetune after upgrading to transformers==4.36.1

xiangyang-95 avatar Mar 12 '24 02:03 xiangyang-95