vllm-project/vllm

[Transformers v5] MiniCPMV cannot apply processor

Chiusa

#38.385 aperta il 27 mar 2026

 (8 commenti) (0 reazioni) (1 assegnatario)Python (16.816 fork)batch import
good first issuehelp wanted

Metriche repository

Star
 (80.034 stelle)
Metriche merge PR
 (Merge medio 3g 17h) (993 PR mergiate in 30 g)

Descrizione

This is a sub-issue forming part of the work in https://github.com/vllm-project/vllm/issues/38379, please read the description of this issue before beginning to work on this one.

Which test is failing?

If the model is relevant enough for us to keep supporting, this should be upstreamed to Transformers.

$ pytest tests/lora/test_minicpmv_tp.py::test_minicpmv_lora
...
ValueError: Failed to apply MiniCPMVProcessor on data={'text': '(<image>./</image>)', 'images': [<PIL.Image.Image image mode=RGB size=448x4032 at 0x7F7695579D60>]} with kwargs={'truncation': False, 'return_tensors': 'pt'}

How to configure my environment?

It's very important that you install both vLLM and Transformers from source so that your test results reflect the current state of both libraries.

# Or your fork
git clone https://github.com/huggingface/transformers.git
git clone https://github.com/vllm-project/vllm.git

cd vllm
VLLM_USE_PRECOMPILED=1 uv pip install -e .
uv pip install -e ../transformers

Guida contributor