Skip to content

Fix eager eval token ID fallbacks - #22633

Merged
rascani merged 3 commits into
pytorch:mainfrom
fatih-uzlmz:codex/fix-eager-eval-token-fallback
Sep 10, 2026
Merged

rascani merged 3 commits into
pytorch:mainfrom
fatih-uzlmz:codex/fix-eager-eval-token-fallback

Conversation

@fatih-uzlmz

@fatih-uzlmz fatih-uzlmz commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • treat None-valued BOS and EOT token IDs as unavailable
  • fall back from BOS to EOT to EOS while preserving valid token ID 0
  • add focused regression coverage for present, zero-valued, None-valued, and missing optional IDs

Test plan

  • python3 -m py_compile examples/models/llama/evaluate/eager_eval.py examples/models/llama/tests/test_eager_eval.py
  • focused six-case fallback matrix: passed
  • git diff --check

Fixes #22518

cc @mergennachin @iseeyuan @lucylq @helunwencser @tarun292 @kimishpatel @jackzhxng @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils @Sebastian-Larsson @robell @rascani

@pytorch-bot

pytorch-bot Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/22633

Note: Links to docs will display an error until the docs builds have been completed.

⚠️ 1 Awaiting Approval

As of commit 90e1aa9 with merge base fd985d5 (image):

AWAITING APPROVAL - The following workflow needs approval before CI can run:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 9, 2026
@linux-foundation-easycla

linux-foundation-easycla Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: fatih-uzlmz / name: fatih (f997e77)

@fatih-uzlmz

Copy link
Copy Markdown
Contributor Author

@pytorchbot label "release notes: llm"

@pytorch-bot pytorch-bot Bot added the release notes: llm Changes to llm utilities label Sep 9, 2026
@gggekov gggekov added partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm ciflow/trunk labels Sep 9, 2026
@pytorch-bot

pytorch-bot Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

Workflows were awaiting approval. CI has now been triggered for the ciflow labels on this PR.

@rascani rascani 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.

Generally LGTM, just one nit.

@fatih-uzlmz

Copy link
Copy Markdown
Contributor Author

Hey @rascani, it looks like the workflows for the latest commit needs maintainer approval. Whenever you have a chance, could you please approve them to run? Thank you!

@rascani
rascani merged commit 9ad8f1f into pytorch:main Sep 10, 2026
91 checks passed
@nil-is-all nil-is-all added module: examples Issues related to demos under examples/ module: arm Issues related to arm backend labels Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. module: arm Issues related to arm backend module: examples Issues related to demos under examples/ partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm release notes: llm Changes to llm utilities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Export Issue with SmolLM2 [ARM Example]

4 participants