convert: fix get block count error for Nemotron 3 Ultra - #27101
Conversation
Signed-off-by: Rock Chen <rockchen.tw@gmail.com>
|
This is specifically for this model only, please don't touch other code. You can fix this in |
This reverts commit ca689cb.
|
@CISC Update: Update: Although Nemotron is a hybrid Mamba-Transformer MoE model, pure Mamba2 model conversions would not run any code in |
* convert: fix get block count error for Nemotron Signed-off-by: Rock Chen <rockchen.tw@gmail.com> * fix this in NemotronHModel.__init__ instead. This reverts commit ca689cb. --------- Signed-off-by: Rock Chen <rockchen.tw@gmail.com>
* convert: fix get block count error for Nemotron Signed-off-by: Rock Chen <rockchen.tw@gmail.com> * fix this in NemotronHModel.__init__ instead. This reverts commit ca689cb. --------- Signed-off-by: Rock Chen <rockchen.tw@gmail.com>
Overview
It shows the below error while converting nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4.
In configuration_nemotron_h.py, it explains
So I followed this instruction in this commit for NemotronH. Note that when layers_block_type isn't available, the script would also try legacy way for backward compatibility.
Requirements
I have read and agree with the contributing guidelines
AI usage disclosure: YES. AI was used for data search and code review.