Skip to content

Preserve backbone precision and extend smoke coverage - #4

Merged
ZhiningLiu1998 merged 5 commits into
mainfrom
codex/infra-execution-smoke-pr
Oct 15, 2026
Merged

ZhiningLiu1998 merged 5 commits into
mainfrom
codex/infra-execution-smoke-pr

Conversation

@AngeLouCN

@AngeLouCN AngeLouCN commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

Ordinary decision scoring retains unused generation caches and casts the entire sequence of hidden states to FP32, although the pointer head reads only selected vectors. Route text, media and prefix execution through BackboneAdapter.forward, retain the backbone's native hidden-state dtype, and cast only the vectors needed by the pointer head. Ordinary scoring defaults to use_cache=False; explicit prefix reuse continues to request a cache.

Extend the backbone smoke CLI with separate frozen-weight precision and decision-mode options. Handle tokenizers that reuse existing delimiter tokens without requiring jevany_token_schema metadata, reject incompatible direct-token training flags, and use a tiny GLM fixture with dimensions previously verified for BF16 SDPA on A100.

Validation on the restored two-commit branch:

  • CPU regression: python -m pytest tests -m 'not server' -q -ra --strict-config --strict-markers — 432 passed, 37 skipped, 7 deselected.
  • python -m build --no-isolation — source distribution and wheel both built successfully.
  • Optional CUDA checks are skipped in the CPU suite; no new GPU run was performed for this revision.

Base: main at 625aed9.

Candidate-token latency optimization and its accuracy/latency results are reviewed separately in #9.

@AngeLouCN
AngeLouCN force-pushed the codex/infra-execution-smoke-pr branch from cd4e17b to 3d48583 Compare September 30, 2026 20:38
@ZhiningLiu1998
ZhiningLiu1998 marked this pull request as ready for review October 1, 2026 01:02
@AngeLouCN
AngeLouCN force-pushed the codex/infra-execution-smoke-pr branch from 3d48583 to 77db932 Compare October 1, 2026 06:41
@AngeLouCN AngeLouCN changed the title Preserve backbone precision and extend smoke coverage Optimize candidate-token readout and preserve backbone execution Oct 1, 2026
Route text, media and prefix forwards through the existing adapter contract. Keep sequence hidden states in their native dtype and cast only the pointer readout vectors. Validate cache behavior and exact BF16 output/gradient parity; the CPU regression suite passes 303 tests.
Handle existing delimiter token schemas, expose frozen-weight precision and direct-token smoke, and reject incompatible direct-mode flags. Use tiny GLM dimensions validated for BF16 SDPA training and checkpoint reload on A100.
@AngeLouCN AngeLouCN changed the title Optimize candidate-token readout and preserve backbone execution Preserve backbone precision and extend smoke coverage Oct 1, 2026
@AngeLouCN
AngeLouCN force-pushed the codex/infra-execution-smoke-pr branch from 77db932 to 95139d2 Compare October 1, 2026 07:00

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Human-Review. See the maintained PR review summary for evidence.

@github-actions

github-actions Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Waiting for review

  • Waiting for CI evidence for this exact PR head and base.

Waiting for review; no approval is submitted.

AI semantic review has not completed.

  • CI ci.yml: pending (run) — CI is still running
  • CI pages.yml: pending (run) — CI is still running

Reviewed head 60421e11920c5531aa24f2e6188c6e733606e0fa; base 6099473d6fa0b02aa3dd00d3cff78c6afaf15326.
CPU CI does not verify production-model quality, CUDA or multi-GPU performance.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Human-Review. See the maintained PR review summary for evidence.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Human-Review. See the maintained PR review summary for evidence.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Human-Review. See the maintained PR review summary for evidence.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Human-Review. See the maintained PR review summary for evidence.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Human-Review. See the maintained PR review summary for evidence.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Human-Review. See the maintained PR review summary for evidence.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Human-Review. See the maintained PR review summary for evidence.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Human-Review. See the maintained PR review summary for evidence.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Human-Review. See the maintained PR review summary for evidence.

@ZhiningLiu1998

Copy link
Copy Markdown
Collaborator

@copilot resolve the merge conflicts in this pull request

Copilot AI and others added 2 commits October 9, 2026 03:16
Co-authored-by: ZhiningLiu1998 <26108487+ZhiningLiu1998@users.noreply.github.com>
Co-authored-by: ZhiningLiu1998 <26108487+ZhiningLiu1998@users.noreply.github.com>

Copilot AI commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Resolved — I merged main into this branch and fixed the remaining conflict in jevany/model.py in commit b1f568f.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Human-Review. See the maintained PR review summary for evidence.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Human-Review. See the maintained PR review summary for evidence.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Human-Review. See the maintained PR review summary for evidence.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Human-Review. See the maintained PR review summary for evidence.

@ZhiningLiu1998

Copy link
Copy Markdown
Collaborator

This now conflicts with #14 in jevany/model.py. Please rebase the adapter-forward changes while preserving the FP32 hidden()/hidden_batch() contract and selected-vector device transfers from #14, then rerun backbone and prefix-cache tests.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Human-Review. See the maintained PR review summary for evidence.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Human-Review. See the maintained PR review summary for evidence.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Human-Review. See the maintained PR review summary for evidence.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Human-Review. See the maintained PR review summary for evidence.

Reconcile the adapter-forward extension with current selected-vector
readout. Retain public FP32 hidden-state helpers and route CUDA graph
forwards through the adapter, with precision and smoke regressions.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Human-Review. See the maintained PR review summary for evidence.

@ZhiningLiu1998 ZhiningLiu1998 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reconciled the adapter forward hook with the current FP32 public hidden-state and selected-vector contracts, including CUDA graph capture. The 228 focused checks pass (28 CUDA-dependent cases skipped locally), and both full CPU CI jobs and the site checks pass on this revision.

@ZhiningLiu1998
ZhiningLiu1998 merged commit 64fd1f3 into main Oct 15, 2026
6 checks passed
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.

3 participants