Skip to content

[Feat]Add Chunk size#892

Open
qyh111 wants to merge 2 commits intoModelEngine-Group:developfrom
qyh111:dev_chunk_size
Open

[Feat]Add Chunk size#892
qyh111 wants to merge 2 commits intoModelEngine-Group:developfrom
qyh111:dev_chunk_size

Conversation

@qyh111
Copy link
Copy Markdown
Contributor

@qyh111 qyh111 commented Apr 3, 2026

Purpose

Modifications

Test

image image

external_hit_tokens = 0
if external_hit_blocks > 0:
remainder = num_computed_tokens % self.chunk_size
external_hit_tokens = external_hit_blocks * self.chunk_size - remainder
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should this be external_hit_tokens = (external_hit_blocks - remainder) * self.chunk_size?

@qyh111 qyh111 force-pushed the dev_chunk_size branch 2 times, most recently from 63f01f5 to 660a8db Compare April 3, 2026 09:07
external_hit_tokens = 0
if external_hit_blocks > 0:
remainder = num_computed_tokens % self.chunk_size
external_hit_tokens = external_hit_blocks * self.chunk_size - remainder
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does this imply that because the initial chunk in UCM may contain blocks already present in HBM, we must deduct that overlap to accurately compute the number of external hit tokens?

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.

3 participants