mirror of
https://github.com/deepseek-ai/DeepEP.git
synced 2026-11-05 00:47:32 +00:00
[GH-ISSUE #175] Why minimum Byte Size Forced to 2 when calculation hidden bytes for FP8 in get_hidden_bytes() #149
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepEP#149
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 @000945 on GitHub (May 23, 2025).
Original GitHub issue: https://github.com/deepseek-ai/DeepEP/issues/175
in https://github.com/deepseek-ai/DeepEP/blob/main/README.md Interfaces and examples section,
def get_hidden_bytes(x: torch.Tensor) -> int:
t = x[0] if isinstance(x, tuple) else x
return t.size(1) * max(t.element_size(), 2)
FP8 tensors use 1 byte per element, but the function forces a 2-byte minimum,Is there a memory/performance trade-off?
@LyricZhao commented on GitHub (May 27, 2025):
Dispatch can use FP8, but combine always uses BF16 (2 bytes). Using BF16 for combine is important for model performance/precision.