Skip to content

fix(fp8): preserve FP32 bias range - #3726

Merged
Qubitium merged 1 commit into
mainfrom
codex/fix-fp8-bias-range
Nov 9, 2026
Merged

Qubitium merged 1 commit into
mainfrom
codex/fix-fp8-bias-range

Conversation

@Qubitium

@Qubitium Qubitium commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

Problem

FP8 packing and buffer allocation always narrowed bias to FP16, losing small FP32 values and turning large finite values into infinity.

Fix

Preserve FP32 bias storage and keep it wide during reload.

Validation

  • python -m pytest tests/test_fp8_bias_range.py -q

GPU or MLX-only cases remain platform-gated on hosts without that runtime.

Comment thread tests/test_fp8_bias_range.py Fixed
Comment thread tests/test_fp8_bias_range.py Fixed
Comment thread tests/test_fp8_bias_range.py Fixed
Comment thread tests/test_fp8_bias_range.py Fixed
Comment thread tests/test_fp8_bias_range.py Fixed
Comment thread tests/test_fp8_bias_range.py Fixed
Comment thread tests/test_fp8_bias_range.py Fixed
Comment thread tests/test_fp8_bias_range.py Fixed
@Qubitium
Qubitium force-pushed the codex/fix-fp8-bias-range branch from 371015a to ae7d4b1 Compare November 9, 2026 17:48
@Qubitium
Qubitium force-pushed the codex/fix-fp8-bias-range branch from ae7d4b1 to 29ab6cb Compare November 9, 2026 18:30
@Qubitium
Qubitium merged commit f644563 into main Nov 9, 2026
6 checks passed
@Qubitium
Qubitium deleted the codex/fix-fp8-bias-range branch November 9, 2026 18:38
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