[CI] Bump Transformers version to 5.19.0 (#60381)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Harry Mellor
2026-10-07 10:01:41 -07:00
committed by GitHub
co-authored by Claude Opus 5.5
parent d64a18832b
commit a8260cbc5c
12 changed files with 17 additions and 23 deletions
@@ -9,20 +9,11 @@ import textwrap
import pytest
import torch
from tests.models.registry import HF_EXAMPLE_MODELS
MODEL = os.environ.get("EG2_MODEL_PATH")
needs_model = pytest.mark.skipif(not MODEL, reason="EG2_MODEL_PATH not set")
TEXT_COS, MM_COS = 0.999, 0.999
@pytest.fixture
def needs_hf_embedding_gemma2():
"""Skip when the installed transformers has no `embedding_gemma2` module."""
model_info = HF_EXAMPLE_MODELS.get_hf_info("EmbeddingGemma2Model")
model_info.check_transformers_version(on_fail="skip")
def _cos(a, b):
return torch.nn.functional.cosine_similarity(
torch.tensor(a, dtype=torch.float32),
@@ -248,7 +239,7 @@ def test_tower_skip(vllm_runner, monkeypatch):
)
def test_encoder_contract(needs_hf_embedding_gemma2):
def test_encoder_contract():
from vllm.model_executor.models.embedding_gemma2 import EmbeddingGemma2Model
from vllm.model_executor.models.gemma4_mm import (
Gemma4ForConditionalGeneration as G,
@@ -432,7 +423,7 @@ def test_video_loader_duplicate_expansion_e2e(vllm_runner, st_model):
assert len(out[0]) == 768
def test_video_loader_indices(needs_hf_embedding_gemma2):
def test_video_loader_indices():
from transformers.models.embedding_gemma2.video_processing_embedding_gemma2 import (
EmbeddingGemma2VideoProcessor,
)
@@ -517,7 +508,7 @@ def test_video_loader_indices(needs_hf_embedding_gemma2):
assert v_4h == h_4h, f"1fps/4h mismatch: {v_4h[-2:]} vs {h_4h[-2:]}"
def test_video_loader_duplicate_expansion(needs_hf_embedding_gemma2):
def test_video_loader_duplicate_expansion():
from transformers.models.embedding_gemma2.video_processing_embedding_gemma2 import (
EmbeddingGemma2VideoProcessor,
)
-1
View File
@@ -583,7 +583,6 @@ _EMBEDDING_EXAMPLE_MODELS = {
),
"EmbeddingGemma2Model": _HfExamplesInfo(
"google/embeddinggemma-2",
min_transformers_version="5.19.0",
is_available_online=False,
),
"Gemma2Model": _HfExamplesInfo("BAAI/bge-multilingual-gemma2"),