[CI] Ignore ruff D209, rejoin the docstrings it split, and silence incompatible-rule warnings (#57212)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
1085b64425
commit
651a88c09a
@@ -452,8 +452,7 @@ def test_deepseek_v4_image_blocks_become_placeholders():
|
||||
|
||||
def test_deepseek_v4_image_sentinel_ids_match_tokenizer():
|
||||
"""The borrowed sentinel ids must line up with the reserved
|
||||
``<|place_holder_mm_span_XXXX|>`` tokens in the tokenizer.
|
||||
"""
|
||||
``<|place_holder_mm_span_XXXX|>`` tokens in the tokenizer."""
|
||||
from vllm.models.deepseek_v4.common.mm_preprocess import (
|
||||
IMAGE_SENTINEL_BASE_ID,
|
||||
IMAGE_SENTINEL_TOKEN_NAMES,
|
||||
|
||||
@@ -51,8 +51,7 @@ def _check_consistency(target: TokenizerLike, expected: TokenizerLike):
|
||||
def test_thread_pool_tokenizer_pickle(model_id: str):
|
||||
"""Regression test for issue #45433: the thread-pool tokenizer wrapper
|
||||
reconstructs through maybe_make_thread_pool on unpickling, which used to
|
||||
fall off the end and return None.
|
||||
"""
|
||||
fall off the end and return None."""
|
||||
reference_tokenizer = AutoTokenizer.from_pretrained(model_id)
|
||||
|
||||
pooled_tokenizer = maybe_make_thread_pool(deepcopy(reference_tokenizer))
|
||||
|
||||
Reference in New Issue
Block a user