Skip to content

lite#974

Open
qyh111 wants to merge 1 commit into
ModelEngine-Group:developfrom
qyh111:dev_lite
Open

lite#974
qyh111 wants to merge 1 commit into
ModelEngine-Group:developfrom
qyh111:dev_lite

Conversation

@qyh111

@qyh111 qyh111 commented May 23, 2026

Copy link
Copy Markdown
Contributor

Purpose

Modifications

Test

Comment thread ucm/integration/vllm/ucm_connector.py
Comment thread ucm/integration/vllm/ucm_connector.py
Comment thread ucm/integration/vllm/ucm_connector.py Outdated
token_processed=0,
)

self.total_block_nums += req_blocks_num

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.

⚠️ Warning: self.total_block_nums is only incremented when a new request is added to requests_meta. If a request already exists (e.g., after a chunked prefill), this counter won't be updated. This could lead to inconsistent statistics. Consider either incrementing for all requests or clarifying the intended behavior.

return 0, False

def update_state_after_alloc(
self, request: "Request", blocks: "KVCacheBlocks", num_external_tokens: int

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.

💡 Suggestion: The stub methods (update_state_after_alloc, start_load_kv, wait_for_layer_load, save_kv_layer, wait_for_save) should have docstrings explaining that they are intentionally empty for the lite connector, or raise NotImplementedError if they are not meant to be called.

def wait_for_save(self):
pass

def generate_hash(

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.

⚠️ Warning: The generate_hash method uses self.request_hasher which could raise exceptions. There's no error handling here. If the hasher fails, the exception will propagate up and could crash the request processing. Consider adding a try-except block or documenting the expected behavior.

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.

2 participants