Repository navigation
Upgrade llguidance to 1.7.6 - #31484
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
/tag-and-rerun-ci |
|
/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 |
|
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.
be8b6a6 to
649511d
Compare
|
/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 |
|
Results for 🚀 🚀 |
Motivation
Upgrade the pinned
llguidancedependency from0.7.11to1.7.6and adapt the llguidance grammar backend to the updated API.Modifications
llguidance>=0.7.11,<0.8.0tollguidance>=1.7.6,<2.0.0across allpyprojectvariants (main, cpu, npu, other, xpu, and the AMD wheel).llguidance_backend.py:eos_tokensproperty (a set of stop tokens) in place of the removed singleeos_tokenattribute, and check membership against that set inaccept_token.from_tokenizervia its neweos_tokenargument, normalizing either a single int or an iterable of ints.eos_token_idsparameter toGuidanceBackend.base_grammar_backend.py: passn_vocabandeos_token_idsthrough toGuidanceBackend.send_one.py: use a concrete JSON object schema instead of the removed$$ANY$$sentinel.GuidanceBackendcall signature.Checklist
Original commits
CI States
Latest PR Test (Base): ✅ Run #29545774330
Latest PR Test (Extra): ❌ Run #29545774113