feat: update compatibility for transformers>=4.57.1 and vLLM 0.14#61
Open
avinsongw wants to merge 1 commit intogenlm:mainfrom
Open
feat: update compatibility for transformers>=4.57.1 and vLLM 0.14#61avinsongw wants to merge 1 commit intogenlm:mainfrom
avinsongw wants to merge 1 commit intogenlm:mainfrom
Conversation
- Update pyproject.toml dependency versions: - transformers>=4.57.1 (was >=4.36.0) - vllm>=0.11.0 (was >=0.6.6,<=0.10.0) - Fix deprecated DynamicCache.from_legacy_cache() in hf.py: - Use DynamicCache(pasts) directly instead - Major refactor of vllm.py for V1 engine compatibility: - Remove PassThroughLogitsProcessor (V1 doesn't support per-request logits processors) - Use max_logprobs parameter to get full vocabulary logprobs - Update Counter import path (vllm.utils.counter) - Remove deprecated disable_async_output_proc and disable_log_requests params - Update tokenizer access for V1 API (async_llm_engine.tokenizer) - Update cleanup method (async_engine.shutdown()) - Update tests/conftest.py for vLLM V1 compatibility: - Add max_logprobs to ReferenceVirtualLM - Update tokenizer access - Simplify cleanup Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
DynamicCache.from_legacy_cache()API in HuggingFace backendChanges
pyproject.toml
transformers>=4.57.1(was>=4.36.0)vllm>=0.11.0(was>=0.6.6,<=0.10.0)genlm/backend/llm/hf.py
DynamicCache.from_legacy_cache(pasts)withDynamicCache(pasts)genlm/backend/llm/vllm.py
PassThroughLogitsProcessorclass (V1 doesn't support per-request logits processors)max_logprobsparameter to get full vocabulary logprobs insteadCounterimport path (vllm.utils.counter)disable_async_output_procanddisable_log_requestsparamsasync_llm_engine.tokenizer)async_engine.shutdown())tests/conftest.py
max_logprobstoReferenceVirtualLMfor V1 compatibilityTest plan
🤖 Generated with Claude Code