Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the TypeError for XPU Accelerator #5531

Merged
merged 4 commits into from
May 20, 2024

Conversation

shiyang-weng
Copy link
Contributor

@shiyang-weng shiyang-weng commented May 14, 2024

Fixing following error
/datadisk2/wengshiy/llm.devkit/DeepSpeed/deepspeed/runtime/utils.py
return get_accelerator().FloatTensor(float(v)).detach()
TypeError: new(): data must be a sequence (got float)

cuda accelerator modified the interface for fixing warning: 177dc14

@shiyang-weng shiyang-weng changed the title Align with cuda accelerator for fixing TypeError fix the TypeError for xpu accelerator May 14, 2024
@shiyang-weng shiyang-weng changed the title fix the TypeError for xpu accelerator Fix the TypeError for XPU Accelerator May 14, 2024
@loadams
Copy link
Contributor

loadams commented May 15, 2024

thanks @shiyang-weng - lets wait to merge this until the XPU runner is back online though?

@tjruwase tjruwase added this pull request to the merge queue May 20, 2024
Merged via the queue into microsoft:master with commit 1d81967 May 20, 2024
12 checks passed
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.

None yet

3 participants