Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
72d30108
Unverified
Commit
72d30108
authored
Sep 10, 2025
by
danielafrimi
Committed by
GitHub
Sep 10, 2025
Browse files
Support for NemotronH Nano VLM (#23644)
Signed-off-by:
Daniel Afrimi
<
danielafrimi8@gmail.com
>
parent
8b83b937
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1400 additions
and
1 deletion
+1400
-1
tests/models/registry.py
tests/models/registry.py
+3
-0
vllm/config/__init__.py
vllm/config/__init__.py
+1
-1
vllm/model_executor/models/nano_nemotron_vl.py
vllm/model_executor/models/nano_nemotron_vl.py
+1395
-0
vllm/model_executor/models/registry.py
vllm/model_executor/models/registry.py
+1
-0
No files found.
tests/models/registry.py
View file @
72d30108
...
...
@@ -515,6 +515,9 @@ _MULTIMODAL_EXAMPLE_MODELS = {
trust_remote_code
=
True
),
"Llama_Nemotron_Nano_VL"
:
_HfExamplesInfo
(
"nvidia/Llama-3.1-Nemotron-Nano-VL-8B-V1"
,
# noqa: E501
trust_remote_code
=
True
),
"NemotronH_Nano_VL"
:
_HfExamplesInfo
(
"nano_vl_dummy"
,
is_available_online
=
False
,
trust_remote_code
=
True
),
"Ovis"
:
_HfExamplesInfo
(
"AIDC-AI/Ovis2-1B"
,
trust_remote_code
=
True
,
max_transformers_version
=
"4.53"
,
transformers_version_reason
=
"HF model is not compatible"
,
# noqa: E501
...
...
vllm/config/__init__.py
View file @
72d30108
...
...
@@ -1552,7 +1552,7 @@ class ModelConfig:
for
bc
in
block_configs
[
start
:
end
])
else
:
# Hybrid model Jamba
layers_block_type_value
=
getattr
(
self
.
hf_config
,
layers_block_type_value
=
getattr
(
self
.
hf_
text_
config
,
"layers_block_type"
,
None
)
if
layers_block_type_value
is
not
None
:
if
hasattr
(
self
.
hf_text_config
,
...
...
vllm/model_executor/models/nano_nemotron_vl.py
0 → 100644
View file @
72d30108
This diff is collapsed.
Click to expand it.
vllm/model_executor/models/registry.py
View file @
72d30108
...
...
@@ -223,6 +223,7 @@ _MULTIMODAL_MODELS = {
"GraniteSpeechForConditionalGeneration"
:
(
"granite_speech"
,
"GraniteSpeechForConditionalGeneration"
),
# noqa: E501
"H2OVLChatModel"
:
(
"h2ovl"
,
"H2OVLChatModel"
),
"InternVLChatModel"
:
(
"internvl"
,
"InternVLChatModel"
),
"NemotronH_Nano_VL"
:
(
"nano_nemotron_vl"
,
"NemotronH_Nano_VL"
),
"InternS1ForConditionalGeneration"
:
(
"interns1"
,
"InternS1ForConditionalGeneration"
),
# noqa: E501
"InternVLForConditionalGeneration"
:
(
"interns1"
,
"InternS1ForConditionalGeneration"
),
# noqa: E501
"Idefics3ForConditionalGeneration"
:(
"idefics3"
,
"Idefics3ForConditionalGeneration"
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment