Skip to content

fix: correct dtype in quantize_k_cache docstring - #143

Open
yurekami wants to merge 1 commit into
deepseek-ai:mainfrom
yurekami:fix/quant-docstring-dtype
Open

fix: correct dtype in quantize_k_cache docstring#143
yurekami wants to merge 1 commit into
deepseek-ai:mainfrom
yurekami:fix/quant-docstring-dtype

Conversation

@yurekami

Copy link
Copy Markdown

Summary

  • Fix incorrect dtype in quantize_k_cache docstring
  • Changed uint8_t to float8_e4m3fn to match the actual implementation

Details

The docstring claimed the return tensor has dtype uint8_t, but the code actually creates a tensor with torch.float8_e4m3fn dtype (line 20).

Test plan

  • Visual inspection of docstring accuracy

🤖 Generated with Claude Code

The docstring incorrectly stated the return dtype as uint8_t,
but the actual implementation returns torch.float8_e4m3fn.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.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.

1 participant