Skip to content

Teach regression fixtures for deferred zero points, scale folds and generation padding - #6456

Merged
Qubitium merged 1 commit into
mainfrom
regression-fixtures-nov30
Nov 30, 2026
Merged

Qubitium merged 1 commit into
mainfrom
regression-fixtures-nov30

Conversation

@Qubitium

Copy link
Copy Markdown
Collaborator

Summary

The Nov 28–30 audit found repeated fixes where the fixture omitted a distinction the next consumer relied on. This updates the regression-test-design skill and links each recipe to the landed fixes and test suites.

What Changed

  • Vary legacy packed width and placement independently, then inspect the final kernel's zero points and first forward. The proposed ownership change is tracked separately in Give the HF bridge an explicit per-layer handoff for deferred GPTQ zero points #6455.
  • Compare AWQ fold consumers against observed native readers, including a same-width non-reader. Pair valid low-precision SmoothQuant rounding with an isolated corrupted logit that preserves argmax.
  • Give the tokenizer and generation sidecar different pad IDs. Exercise explicit null, missing metadata and caller overrides through normal and quantization-config loads.

Tests

  • Ran ten existing CPU cases on 1c51b32a. All passed without skips. The change adds guidance, so no new runtime test was needed.
  • Parsed skill and agent YAML, resolved 43 relative Markdown links and both new section anchors. bash format/check.sh and git diff --cached --check passed.
Fixture Historical failure Audited revision
Aligned legacy layer and two pad policies At 97ef5679 the aligned tensor was deferred and both declared pad IDs became 0. 3 passed
Indexed and sliding Dots 3 Note At 1d4420a0 the neutral fold gave relative L2 errors of 0.0660 and 0.0040. 2 passed
Same-width DeepSeek V4 non-reader and SmoothQuant drift controls Checked on the audited revision only. 5 passed

CPU command from tests/ with Transformers 5.23.0 and Torch 2.15.0:

PYTHONPATH=.. HF_HUB_OFFLINE=1 python -m pytest -q -ra \
  test_deferred_qzeros_dispatch_6396.py::test_matching_width_legacy_layer_keeps_its_qzeros_buffer \
  module_tree/test_dots3_note_awq_relationships.py::test_awq_input_layernorm_fold_covers_every_native_reader \
  module_tree/test_deepseek_v4_local_port.py::test_awq_input_layernorm_fold_skips_width_matched_non_readers \
  test_smoothquant_bf16_bound_6349.py::test_isolated_logit_drift_is_rejected_by_the_row_peak_check \
  test_smoothquant_fp16_bound_6371.py::test_fp16_rounding_drift_past_the_strict_bound_is_accepted \
  test_generation_pad_token_id_quantize_config_6402.py::test_quantize_config_load_preserves_the_declared_generation_pad

Scope and review

Reviewed the two Markdown files against the fixes and the existing skill. Runtime behavior, model definitions, kernel accuracy and performance are outside this documentation change. Native GPU and mixed-map cases were not run.

Link to Devin session: https://app.devin.ai/sessions/5d63561b21544920b3caa93a7aa6a8db
Open in Devin Desktop: https://app.devin.ai/desktop/session/5d63561b21544920b3caa93a7aa6a8db?variant=devin
Requested by: @Qubitium

@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access that start with 'Devin'.

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration
devin-ai-integration Bot marked this pull request as ready for review November 30, 2026 01:23

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Devin Review

🟢 Devin Review found nothing to fix · View findings

@Qubitium
Qubitium merged commit 8d52eb9 into main Nov 30, 2026
6 checks passed
@Qubitium
Qubitium deleted the regression-fixtures-nov30 branch November 30, 2026 02:33
Qubitium added a commit that referenced this pull request Nov 30, 2026
…re the log (#6468)

Delete the 13 references/2026-11-*-regressions.md files of the
regression-test-design skill (including the one #6456 added) and the links to
them from that skill, awq-model-onboarding and model-porting. The skills'
guidance is unchanged.

Co-authored-by: Claude Opus 5.5 <[email protected]>
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