Skip to content

[ascend] fix paged prefill#4254

Merged
lvhan028 merged 3 commits intoInternLM:mainfrom
tangzhiyi11:ascend_paged_prefill
Jan 7, 2026
Merged

[ascend] fix paged prefill#4254
lvhan028 merged 3 commits intoInternLM:mainfrom
tangzhiyi11:ascend_paged_prefill

Conversation

@tangzhiyi11
Copy link
Contributor

Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily receiving feedbacks. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.

Motivation

Please describe the motivation of this PR and the goal you want to achieve through this PR.

Modification

Please briefly describe what modification is made in this PR.

BC-breaking (Optional)

Does the modification introduce changes that break the backward-compatibility of the downstream repositories?
If so, please describe how it breaks the compatibility and how the downstream projects should modify their code to keep compatibility with this PR.

Use cases (Optional)

If this PR introduces a new feature, it is better to list some use cases here, and update the documentation.

Checklist

  1. Pre-commit or other linting tools are used to fix the potential lint issues.
  2. The modification is covered by complete unit tests. If not, please add more unit tests to ensure the correctness.
  3. If the modification has a dependency on downstream projects of a newer version, this PR should be tested with all supported versions of downstream projects.
  4. The documentation has been modified accordingly, like docstring or example tutorials.

@tangzhiyi11 tangzhiyi11 force-pushed the ascend_paged_prefill branch from ce9ea22 to 420a13b Compare January 5, 2026 06:34
record_file, total_layers)

if not step_context.is_decoding and not is_unpaged_prefill:
kv_seqlens_cpu = kv_seqlens_cpu.repeat_interleave(q_seqlens_cpu, 0)
Copy link
Collaborator

Choose a reason for hiding this comment

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

How about putting it in function get_cpu_seqlens?

@tangzhiyi11 tangzhiyi11 force-pushed the ascend_paged_prefill branch 4 times, most recently from f65e491 to a47a9a3 Compare January 6, 2026 12:12
@tangzhiyi11 tangzhiyi11 force-pushed the ascend_paged_prefill branch from a47a9a3 to db3efdf Compare January 7, 2026 02:03
@jinminxi104 jinminxi104 self-requested a review January 7, 2026 06:12
@lvhan028 lvhan028 merged commit 36d6286 into InternLM:main Jan 7, 2026
5 checks passed
43758726 pushed a commit to 43758726/lmdeploy that referenced this pull request Jan 7, 2026
* [ascend] fix paged prefill

* update

* update
lvhan028 pushed a commit that referenced this pull request Jan 8, 2026
* [Fix] fix quant calibration dataset

* [Fix] fix bug and grammar, and merge main

* [Fix] change processor to tokenizer

* [Fix] fix changes in .github/md-link-config.json

* fix: get rid of buggy timm-1.0.23 (#4260)

* [ascend] fix paged prefill (#4254)

* [ascend] fix paged prefill

* update

* update

* Adapt to dlsime v0.0.2 (#4242)

* init

* revert pre-commit

* add await

* lint

* update docker install.sh (dlslime==0.0.1.post10)=>(dlslime==0.0.2)

* fix type hint of endpoint_info in base

* update docker install.sh (dlslime==0.0.2)=>(dlslime==0.0.2.post1)

* Fix ascend/maca/camb runtime_requirements (#4262)

* fix reqs

* fix reqs

* [Fix] fix load local dataset cache bug

* Revert "[Fix] fix load local dataset cache bug"

This reverts commit be3f2cc8338ff6e8d4f00ff2239d3360254fdba8.

* [Fix] delete load local dataset

* [Fix] fix get_dataset function args explain

---------

Co-authored-by: windreamer <windreamer@gmail.com>
Co-authored-by: tangzhiyi11 <tangzhiyi11@users.noreply.github.com>
Co-authored-by: JimyMa <33408125+JimyMa@users.noreply.github.com>
Co-authored-by: jinminxi104 <jinminxi104@hotmail.com>
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.

4 participants