Skip to content

Upgrade llguidance to 1.7.6 - #31484

Merged
merrymercy merged 1 commit into
mainfrom
upgrade-llguidance-1.7.6
Jul 17, 2026
Merged

merrymercy merged 1 commit into
mainfrom
upgrade-llguidance-1.7.6

Conversation

@merrymercy

@merrymercy merrymercy commented Jul 16, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

Upgrade the pinned llguidance dependency from 0.7.11 to 1.7.6 and adapt the llguidance grammar backend to the updated API.

Modifications

  • Bump llguidance>=0.7.11,<0.8.0 to llguidance>=1.7.6,<2.0.0 across all pyproject variants (main, cpu, npu, other, xpu, and the AMD wheel).
  • llguidance_backend.py:
    • Use the new plural eos_tokens property (a set of stop tokens) in place of the removed single eos_token attribute, and check membership against that set in accept_token.
    • Thread model EOS token ids through to from_tokenizer via its new eos_token argument, normalizing either a single int or an iterable of ints.
    • Add an eos_token_ids parameter to GuidanceBackend.
  • base_grammar_backend.py: pass n_vocab and eos_token_ids through to GuidanceBackend.
  • send_one.py: use a concrete JSON object schema instead of the removed $$ANY$$ sentinel.
  • Update the grammar backend unit test for the new GuidanceBackend call signature.

Checklist

  • Verified on an internal setup with the llguidance backend and constrained JSON decoding.

Original commits

  • `13821f693`

CI States

Latest PR Test (Base): ✅ Run #29545774330
Latest PR Test (Extra): ❌ Run #29545774113

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@merrymercy

Copy link
Copy Markdown
Collaborator Author

/tag-and-rerun-ci

@github-actions github-actions Bot added dependencies Pull requests that update a dependency file npu run-ci CI: run the baseline test suite on this PR labels Jul 16, 2026
@merrymercy

Copy link
Copy Markdown
Collaborator Author

/rerun-test test/registered/unit/constrained/test_base_grammar_backend.py test/registered/constrained_decoding/test_constrained_decoding.py test/registered/openai_server/features/test_json_mode.py test/registered/openai_server/features/test_openai_server_ebnf.py

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Rebase Required Before Re-run

A major update has landed on main. Your PR is diverged relative to required base commit 059ac7efe8.

Re-run was not dispatched. What to do:

  • Rebase your branch onto the latest main and push again
  • Follow issue #21065 for context
  • CI-fix PRs may request the bypass-maintenance label to skip this check

Bump the pinned llguidance dependency from 0.7.11 to 1.7.6 across all
pyproject variants and adapt the llguidance backend to the new API:

- Use the new plural eos_tokens property (a set of stop tokens) instead
  of the single eos_token attribute.
- Thread model EOS token ids through to from_tokenizer via the new
  eos_token argument, normalizing a single int or an iterable of ints.
- Pass n_vocab and eos_token_ids to GuidanceBackend from
  create_grammar_backend.
- Use a concrete JSON object schema in send_one.py instead of the
  removed $$ANY$$ sentinel.
@merrymercy
merrymercy force-pushed the upgrade-llguidance-1.7.6 branch from be8b6a6 to 649511d Compare July 17, 2026 00:48
@merrymercy

Copy link
Copy Markdown
Collaborator Author

/rerun-test test/registered/unit/constrained/test_base_grammar_backend.py test/registered/constrained_decoding/test_constrained_decoding.py test/registered/openai_server/features/test_json_mode.py test/registered/openai_server/features/test_openai_server_ebnf.py

@github-actions

github-actions Bot commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

Results for /rerun-test test/registered/unit/constrained/test_base_grammar_backend.py test/registered/constrained_decoding/test_constrained_decoding.py test/registered/openai_server/features/test_json_mode.py test/registered/openai_server/features/test_openai_server_ebnf.py:

🚀 ubuntu-latest (1 test): ✅ View workflow run

cd test/ && python3 registered/unit/constrained/test_base_grammar_backend.py

🚀 1-gpu-5090 (3 tests): ✅ View workflow run

cd test/ && python3 registered/constrained_decoding/test_constrained_decoding.py
cd test/ && python3 registered/openai_server/features/test_json_mode.py
cd test/ && python3 registered/openai_server/features/test_openai_server_ebnf.py

@merrymercy
merrymercy merged commit c95026a into main Jul 17, 2026
686 of 810 checks passed
@merrymercy
merrymercy deleted the upgrade-llguidance-1.7.6 branch July 17, 2026 23:31
Zhylkaaa pushed a commit to Zhylkaaa/sglang that referenced this pull request Jul 29, 2026
Chronostasys pushed a commit to MindLab-Research/sglang that referenced this pull request Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file npu run-ci CI: run the baseline test suite on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant