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

FEAT: Ascend support #1408

Merged
merged 2 commits into from
May 6, 2024
Merged

FEAT: Ascend support #1408

merged 2 commits into from
May 6, 2024

Conversation

qinxuye
Copy link
Contributor

@qinxuye qinxuye commented Apr 29, 2024

Ascend support is tested.

Chat

Tested Qwen 7b.

image

Specify gpu idx

gpu_idx=3

image

gpu_idx=0,2

image

Some issues

HuggingFace accelerate and timm is imported in OmniLMM, both will cause torch_npu imported which will cause that ASCEND_RT_VISIBLE_DEVICES not work, so I put the imports into the functions.

Cuda

I tested both qwen1.5 and OmniLMM on cuda devices, they work well.

Fixes #1323

@XprobeBot XprobeBot added this to the v0.11.0 milestone Apr 29, 2024
@qinxuye qinxuye mentioned this pull request Apr 29, 2024
@qinxuye qinxuye requested a review from ChengjieLi28 May 6, 2024 03:18
@ChengjieLi28 ChengjieLi28 merged commit f98b8b5 into xorbitsai:main May 6, 2024
11 of 12 checks passed
@qinxuye qinxuye deleted the feat/ascend branch May 6, 2024 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ascend support
3 participants