Skip to content

Conversation

@ttanzhiqiang
Copy link
Contributor

This PR add custom ascendc kernel vocabparallelembedding support in vllm-ascend, related CMakeLists and setuptools is also added in this PR.

pytest -s benchmarks/ops/ben_vocabparallelembedding.py
截屏2025-05-08 18 12 23

pytest -s tests/ops/test_vocabparallelembedding.py
截屏2025-05-08 18 13 31

Signed-off-by: ttanzhiqiang <389825161@qq.com>
Signed-off-by: ttanzhiqiang <389825161@qq.com>
Signed-off-by: ttanzhiqiang <389825161@qq.com>
Signed-off-by: ttanzhiqiang <389825161@qq.com>
Signed-off-by: ttanzhiqiang <389825161@qq.com>
Signed-off-by: ttanzhiqiang <389825161@qq.com>
ttanzhiqiang and others added 5 commits May 8, 2025 19:04
Signed-off-by: ttanzhiqiang <389825161@qq.com>
Signed-off-by: ttanzhiqiang <389825161@qq.com>
Signed-off-by: ttanzhiqiang <389825161@qq.com>
Signed-off-by: ttanzhiqiang <389825161@qq.com>
@ttanzhiqiang
Copy link
Contributor Author

@wangxiyuan @ganyi1996ppo

@wangxiyuan
Copy link
Collaborator

@ganyi1996ppo can you take a deep review for the custom ops change?

@ganyi1996ppo
Copy link
Collaborator

sure, I'll take a look

@ttanzhiqiang
Copy link
Contributor Author

@wangxiyuan @ganyi1996ppo

ttanzhiqiang and others added 4 commits May 29, 2025 11:55
Signed-off-by: ttanzhiqiang <389825161@qq.com>
Signed-off-by: ttanzhiqiang <389825161@qq.com>
Signed-off-by: ttanzhiqiang <389825161@qq.com>
@ttanzhiqiang
Copy link
Contributor Author

@wangxiyuan @ganyi1996ppo

Signed-off-by: ttanzhiqiang <389825161@qq.com>
@ttanzhiqiang
Copy link
Contributor Author

update @ganyi1996ppo

@wangxiyuan wangxiyuan mentioned this pull request Jun 4, 2025
76 tasks
@shiyuan680
Copy link
Contributor

i met such problem
20250606-170747(WeLinkPC)
npu0
input_shape torch.Size([410])
org_start: 0
org_end: 76032
padding: 0
added_start:152064
added_end:152064
npu1
input_shape torch.Size([410])
org_start: 76032
org_end: 152064
padding: 0
added_start:: 152064
added_end:152064

@ttanzhiqiang
Copy link
Contributor Author

i met such problem 20250606-170747(WeLinkPC) npu0 input_shape torch.Size([410]) org_start: 0 org_end: 76032 padding: 0 added_start:152064 added_end:152064 npu1 input_shape torch.Size([410]) org_start: 76032 org_end: 152064 padding: 0 added_start:: 152064 added_end:152064

ok i will try it

Signed-off-by: ttanzhiqiang <389825161@qq.com>
@ttanzhiqiang
Copy link
Contributor Author

i met such problem 20250606-170747(WeLinkPC) npu0 input_shape torch.Size([410]) org_start: 0 org_end: 76032 padding: 0 added_start:152064 added_end:152064 npu1 input_shape torch.Size([410]) org_start: 76032 org_end: 152064 padding: 0 added_start:: 152064 added_end:152064

@shiyuan680
update TORCH_CHECK
TORCH_CHECK(input.dim() >= 1, "input must have at least 1 dimension");
TORCH_CHECK(org_vocab_start_index >= 0, "org_vocab_start_index must be non-negative");
TORCH_CHECK(org_vocab_end_index >= org_vocab_start_index, "org_vocab_end_index must be greater than org_vocab_start_index");
TORCH_CHECK(num_org_vocab_padding >= 0, "num_org_vocab_padding must be non-negative");
TORCH_CHECK(added_vocab_start_index >= org_vocab_end_index, "added_vocab_start_index must be greater than org_vocab_end_index");
TORCH_CHECK(added_vocab_end_index >= added_vocab_start_index, "added_vocab_end_index must be greater than added_vocab_start_index");

Modify tests/ops/test_vocabparallelembedding.py and benchmarks/ops/ben_vocabparallelembedding.py
test_case = {
"org_start": 0,
"org_end": 76032,
"padding": 0,
"added_start": 152064,
"added_end": 152064,
}

@ApsarasX ApsarasX added the ready read for review label Jun 9, 2025
@wangxiyuan
Copy link
Collaborator

No feedback for long time. I'll merge this first.

@wangxiyuan wangxiyuan merged commit 2498d29 into vllm-project:main Jun 12, 2025
24 checks passed
momo609 pushed a commit to momo609/vllm-ascend that referenced this pull request Jun 17, 2025
This PR add custom ascendc kernel vocabparallelembedding support in
vllm-ascend, related CMakeLists and setuptools is also added in this PR.

pytest -s benchmarks/ops/ben_vocabparallelembedding.py
pytest -s tests/ops/test_vocabparallelembedding.py

---------

Signed-off-by: ttanzhiqiang <389825161@qq.com>
momo609 pushed a commit to momo609/vllm-ascend that referenced this pull request Jun 17, 2025
This PR add custom ascendc kernel vocabparallelembedding support in
vllm-ascend, related CMakeLists and setuptools is also added in this PR.

pytest -s benchmarks/ops/ben_vocabparallelembedding.py
pytest -s tests/ops/test_vocabparallelembedding.py

---------

Signed-off-by: ttanzhiqiang <389825161@qq.com>
Signed-off-by: wangxiaoxin (A) <wangxiaoxin7@huawei.com>
momo609 pushed a commit to momo609/vllm-ascend that referenced this pull request Jun 17, 2025
This PR add custom ascendc kernel vocabparallelembedding support in
vllm-ascend, related CMakeLists and setuptools is also added in this PR.

pytest -s benchmarks/ops/ben_vocabparallelembedding.py
pytest -s tests/ops/test_vocabparallelembedding.py

---------

Signed-off-by: ttanzhiqiang <389825161@qq.com>
Signed-off-by: wangxiaoxin (A) <wangxiaoxin7@huawei.com>
shiyuan680 pushed a commit to raindaywhu/vllm-ascend that referenced this pull request Jul 7, 2025
This PR add custom ascendc kernel vocabparallelembedding support in
vllm-ascend, related CMakeLists and setuptools is also added in this PR.

pytest -s benchmarks/ops/ben_vocabparallelembedding.py
pytest -s tests/ops/test_vocabparallelembedding.py

---------

Signed-off-by: ttanzhiqiang <389825161@qq.com>
chopper0126 pushed a commit to chopper0126/vllm-ascend that referenced this pull request Oct 16, 2025
This PR add custom ascendc kernel vocabparallelembedding support in
vllm-ascend, related CMakeLists and setuptools is also added in this PR.

pytest -s benchmarks/ops/ben_vocabparallelembedding.py
pytest -s tests/ops/test_vocabparallelembedding.py

---------

Signed-off-by: ttanzhiqiang <389825161@qq.com>
Angazenn pushed a commit to Angazenn/vllm-ascend that referenced this pull request Oct 21, 2025
This PR add custom ascendc kernel vocabparallelembedding support in
vllm-ascend, related CMakeLists and setuptools is also added in this PR.

pytest -s benchmarks/ops/ben_vocabparallelembedding.py
pytest -s tests/ops/test_vocabparallelembedding.py

---------

Signed-off-by: ttanzhiqiang <389825161@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module:tests ready read for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants