Add old InternVL2-1B/2B support to the InternVL conversion script #45092#45097
Add old InternVL2-1B/2B support to the InternVL conversion script #45092#45097baonudesifeizhai wants to merge 2 commits intohuggingface:mainfrom
Conversation
ArthurZucker
left a comment
There was a problem hiding this comment.
Happy to have!
Dynamic Weight Loader + attribute map + TokenizersBackend could potentially work OOB as well? if we add the model type to
|
I don't think we can use this to solve the vLLM side issue because it requires recreating the checkpoints |
|
k i will try t dynamic Weight Loader + attribute map + TokenizersBackend...
|
9b9c427 to
d83c6be
Compare
|
PYTHONPATH=/root/zdj/transformers/src and PYTHONPATH=/root/zdj/transformers/src passed on vllm |
|
God ... https://huggingface.co/spaces/transformers-community/circle-ci-viz?pr=45097&sha=c2e006 is that relative? |
c2e0064 to
f38d663
Compare
|
[For maintainers] Suggested jobs to run (before merge) run-slow: auto, internvl |
|
python -m pytest tests/models/multimodal/generation/test_common.py::test_single_image_models -vv -s -x -k "intern_vl-test_case25 or intern_vl-test_case26 or intern_vl-test_case27 or intern_vl-test_case28 or intern_vl-test_case29 or intern_vl-test_case30" passed on vllm side |
|
https://paste.ubuntu.com/p/wJWpJwgvst/ passed python -m pytest tests/models/multimodal/generation/test_common.py::test_single_image_models -vv -s -x -k "intern_vl-test_case25 or intern_vl-test_case26 or intern_vl-test_case27 or intern_vl-test_case28 or intern_vl-test_case29 or intern_vl-test_case30" |
|
View the CircleCI Test Summary for this PR: https://huggingface.co/spaces/transformers-community/circle-ci-viz?pr=45097&sha=da3790 |
|
god will fix it tomorrow... |
What does this PR do?
This PR extends the InternVL conversion script to support the old
OpenGVLab/InternVL2-1BandOpenGVLab/InternVL2-2Bcheckpoints.These checkpoints currently rely on remote code and are problematic for downstream users on Transformers v5. Instead of instantiating the original remote-code models, the converter now reads the original config and weights directly and emits HF-native
InternVLForConditionalGenerationcheckpoints.Fixes # (issue)
#45092
38425
before that : on vllm main branch:
pytest
tests/models/multimodal/generation/test_common.py
-k 'intern_vl2-hf-local and test_multi_image_models' -vv broken;
this branch:
VLLM_TEST_INTERNVL2_HF_MODEL=/tmp/InternVL2-1B-hf /root/venv/bin/python -m pytest
tests/models/multimodal/generation/test_common.py
-k 'intern_vl2-hf-local and test_multi_image_models' -vv passed
Validation
Ran the following with
source ~/venv/bin/activate: