Skip to content

Conversation

@DongBaiYue
Copy link
Contributor

@DongBaiYue DongBaiYue commented Nov 24, 2025

text_sft_reader默认设置GPU设备,XPU需要传入device参数。

BaseReader:
  def __init__(,device="gpu",)
     self.place = paddle.set_device(device)

@paddle-bot
Copy link

paddle-bot bot commented Nov 24, 2025

Thanks for your contribution!

@DongBaiYue DongBaiYue changed the title device = finetuning_args.device set device = finetuning_args.device Nov 28, 2025
@DongBaiYue DongBaiYue changed the title set device = finetuning_args.device set device = finetuning_args.device to support xpu Nov 28, 2025
Copy link
Contributor

@yongqiangma yongqiangma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@DongBaiYue DongBaiYue merged commit 6357e91 into PaddlePaddle:develop Dec 1, 2025
5 checks passed
@DongBaiYue DongBaiYue deleted the add_device branch December 1, 2025 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants