Skip to content

test(lfm2): a paged/flat text mismatch prints raw text and token counts - #381

Merged
Brooooooklyn merged 1 commit into
mainfrom
test/lfm2-parity-token-ids
Nov 13, 2026
Merged

Brooooooklyn merged 1 commit into
mainfrom
test/lfm2-parity-token-ids

Conversation

@Brooooooklyn

Copy link
Copy Markdown
Contributor

lfm2_paged_vs_flat_greedy_token_parity failed once on the CI VM (run 43384271735, PR #380) and passed on rerun of the same commit:

prompt #1 "What is 2 + 3? Answer with just the number."
  FLAT  (32 tokens) "The sum of 2 and 3 is"
  PAGED (32 tokens) ""

A bisect under a local runner simulation could not reproduce it (main → #380 head: 9/9, byte-identical output; 12/12 under a two-process stress), and #380's code does not reach LFM2 (instrumented: 0 portable prefill calls, all 16,001 q checks at offset 0). The failing VM run was 2–6× slower than its siblings from the bridge test on.

The panic message could not tell the two candidate causes apart:

  • NaN logits collapsing to the pad token (a real defect),
  • a thinking block that never closed within 32 tokens (a near-tie on the VM's numerics).

It now prints, for both paths: raw_text, thinking, reasoning_tokens, prompt_tokens, cached_tokens. Test-only change.

🤖 Generated with Claude Code

CI run 43384271735 once printed PAGED 32 tokens with text "" on prompt #1
and passed on rerun; the message could not tell NaN logits collapsing to the
pad token from an unclosed thinking block. It now prints raw_text, thinking,
reasoning_tokens, prompt_tokens and cached_tokens for both paths.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 13, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 053cf482-d6e7-4037-99b7-40cbcf8b1b04

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T08:50:37.053909Z 27b11b8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Brooooooklyn
Brooooooklyn merged commit 41c11d8 into main Nov 13, 2026
10 checks passed
@Brooooooklyn
Brooooooklyn deleted the test/lfm2-parity-token-ids branch November 13, 2026 09:19
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