[EXPERIMENT][WIP][OpenVINO] Add support for nvidia/Nemotron-Labs-Diffusion-VLM-8B#7
Open
mlukasze wants to merge 2 commits into
Open
[EXPERIMENT][WIP][OpenVINO] Add support for nvidia/Nemotron-Labs-Diffusion-VLM-8B#7mlukasze wants to merge 2 commits into
mlukasze wants to merge 2 commits into
Conversation
…s_diffusion) - Register NemotronOpenVINOConfig for nemotron_labs_diffusion - Load remote-code checkpoint via AutoModel during OV export - Tested export and OV generation on CPU Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…usion-VLM-8B Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.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.
What does this PR do?
nvidia/Nemotron-Labs-Diffusion-VLM-8B(nemotron_labs_diffusion_vlm)OVModelForVisualCausalLM.from_pretrained(..., trust_remote_code=True)can load the exported IRInstallation instructions
pip install -U "transformers>=5.0.0" openvino pip install -e .[openvino]Exporting cmd-line
optimum-cli export openvino \ --model nvidia/Nemotron-Labs-Diffusion-VLM-8B \ --task image-text-to-text \ --weight-format int4 \ --trust-remote-code \ ov_modelInference script
Testing
tests/openvino/test_nemotron_labs_diffusion_vlm.pydocs/source/openvino/export.mdx,docs/source/openvino/models.mdxGPU.0compile OK,GPU.1compile/load OKKnown limitations
dlm_paradigm=bidirectional) rather than standard autoregressive decodinguse_cache=False, so generation-oriented flows remain model-specifictrust_remote_code=Trueis required for config/processor/chat-template handling