Skip to content

storage_tokens_processed undercounts by tensor_parallel factor#402

Open
FileSystemGuy wants to merge 1 commit into
mainfrom
FileSystemGuy-kvcache-storage_tokens_processed
Open

storage_tokens_processed undercounts by tensor_parallel factor#402
FileSystemGuy wants to merge 1 commit into
mainfrom
FileSystemGuy-kvcache-storage_tokens_processed

Conversation

@FileSystemGuy
Copy link
Copy Markdown
Contributor

num_tokens = entry_size / self.model_config.kv_cache_size_per_token — entry_size is the TP-sharded per-rank size (1/tensor_parallel of the full entry), but kv_cache_size_per_token is the full unsharded value. Dividing a sharded byte count by an unsharded per-token size undercounts storage_tokens_processed by a factor of tensor_parallel for every NVMe read when tensor_parallel > 1.

@FileSystemGuy FileSystemGuy requested a review from a team June 2, 2026 15:53
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

@FileSystemGuy
Copy link
Copy Markdown
Contributor Author

Please review: @russfellows

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.

3 participants