mirror of
https://github.com/deepseek-ai/DeepSeek-V3.git
synced 2026-11-05 00:47:48 +00:00
[GH-ISSUE #579] Issue: Incorrect comment in linear function #308
Labels
No labels
closed-as-stale
enhancement
question
spam
stale
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepSeek-V3#308
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @maxiao001 on GitHub (Feb 5, 2025).
Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-V3/issues/579
The comment in the
linearfunction regardingweight.element_size()contains inaccuracies:This comment has two problems:
Incorrect "quantized" condition:
element_size() > 1indicates that theweighttensor is not quantized. Quantized tensors have an element size of 1, while higher precision formats like float32 and bfloat16 have element sizes greater than 1.Misleading "dequantized version" phrase: The code does not perform any dequantization when
weight.element_size() > 1. It directly uses the originalweighttensor.Proposed solution:
Change the comment to accurately reflect the code's logic. A more accurate comment would be:
This revised comment clarifies that no dequantization is performed and the original higher-precision weights are used directly when
element_size() > 1.@github-actions[bot] commented on GitHub (Mar 8, 2025):
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this issue is still relevant, please leave a comment to keep it open. Thank you for your contributions!
@github-actions[bot] commented on GitHub (Mar 23, 2025):
false