Skip to content

Update onnxruntime-extensions to include the STL regex pre-tokenizer UTF-8 fix - #2875

Open
Wang, Zhenze (zz002) wants to merge 1 commit into
microsoft:mainfrom
zz002:bump-ortx-1136
Open

Wang, Zhenze (zz002) wants to merge 1 commit into
microsoft:mainfrom
zz002:bump-ortx-1136

Conversation

@zz002

Copy link
Copy Markdown

Problem
The pinned onnxruntime-extensions commit, microsoft/onnxruntime-extensions@e2e119c0, fails to encode text with invalid string_view position when a pre-tokenizer Split pattern takes the std::regex fallback and a multi-byte character precedes a match. Laguna-XS 2.1's tokenizer hits this on any prompt with a non-ASCII character before a newline.

Solution
Updates onnxruntime-extensions to microsoft/onnxruntime-extensions@62f2c894, which adds only microsoft/onnxruntime-extensions#1136 on top of the current pin.

Copilot AI balanced review requested due to automatic review settings November 5, 2026 06:14
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI 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.

🟡 Changes recommended

The dependency pin change leaves the required generated cgmanifest stale, so the checked-in inventory no longer matches the onnxruntime-extensions revision fetched by CMake.

1 open issue
What changed in this PR

Updates ONNX Runtime GenAI’s onnxruntime-extensions dependency to include the upstream UTF-8 pre-tokenizer fix, addressing encoding failures when multi-byte characters precede a regex match.

Changes:

  • Advances the pinned commit from e2e119c0 to 62f2c894 to incorporate the fix used by Laguna-XS 2.1’s tokenizer.
File Description
cmake/​deps.txt Updates the onnxruntime-extensions commit pin.

Review effort: Balanced

Comment thread cmake/deps.txt
microsoft_wil;https://github.com/microsoft/wil/archive/refs/tags/v1.0.230629.1.zip;e4a542a323c070376f7c2d1973d0f7ddbc1d2fa5
directx_headers;https://github.com/microsoft/DirectX-Headers/archive/refs/tags/v1.613.1.zip;47653509a3371eabb156360f42faf582f314bf2e
onnxruntime_extensions;https://github.com/microsoft/onnxruntime-extensions.git;e2e119c08b4379d038bcb5c75d9111328a9b86c1
onnxruntime_extensions;https://github.com/microsoft/onnxruntime-extensions.git;62f2c894df545f71071ec13c7aeefc390ca58b45
Wang, Zhenze (zz002) added a commit to ROCm/hip-ep that referenced this pull request Nov 6, 2026
## Summary

Build OGA v0.19.0 with one PR diff instead of v0.17.0 with six. The
remaining patch, microsoft/onnxruntime-genai#2875, updates the
onnxruntime-extensions pin to include
microsoft/onnxruntime-extensions#1136.

## Related issue or design

microsoft/onnxruntime-genai#2875, microsoft/onnxruntime-extensions#1136

## Why

v0.19.0 contains microsoft/onnxruntime-genai#2685, #2691 and #2712, plus
#2672 (which #2705 was extracted from) and #2714 (the runtime #2801
ported onto v0.17.0). Its onnxruntime-extensions pin `e2e119c` already
has `Qwen3_5Tokenizer` (microsoft/onnxruntime-extensions#1142) but not
#1136, and #2792's diff targets the v0.17.0 pin line, so it conflicts on
v0.19.0.

## What

- `OGA_VERSION: "0.19.0"` and `OGA_PR_PATCHES: "2875"` in
`windows-deps.yml`, `linux-build.yml`, `windows-rmt.yml` and
`linux-rmt.yml`; `linux-rmt.yml` now gets the extensions pin too.
- `docs/quick_start.md` and `docs/quick_start_linux.md` follow the new
tag and PR list.
- ONNX Runtime stays at 1.31.0.

## Test plan

- [ ] build-windows / build-linux green: v0.19.0 + #2875 applies and
builds
- [ ] gpu_test OGA benchmark: per-model TTFT / TPS / peak working set
compared with main
- [ ] OGA wheel smoke green

## Notes for reviewers

v0.19.0's `model_benchmark` counts `OgaConfig::Create` in model creation
time; its other output is unchanged.

## Checklist

- [x] The change is focused, or links a design/series explaining its
scope.
- [ ] Relevant tests were added or updated and the results are
documented.
- [x] User-facing or design documentation was updated when needed.
- [ ] Substantial AI assistance is disclosed, and I reviewed and
understand the result.
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.

2 participants