mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-08 08:54:42 +00:00
convert : fix Nemotron-H LoRA GGUF conversion (#27356)
* convert: fix Nemotron-H LoRA GGUF conversion * Removed redundant JSON import.
This commit is contained in:
parent
fe235f4343
commit
bcb6084a4e
1 changed files with 4 additions and 0 deletions
|
|
@ -302,6 +302,10 @@ class NemotronHModel(GraniteHybridModel):
|
|||
)
|
||||
if not keep:
|
||||
return None
|
||||
# PEFT names adapter tensors using model.layers.*, while Nemotron-H checkpoints
|
||||
# and the GGUF tensor map use backbone.layers.*
|
||||
if name.startswith("model.layers.") and ".mixer." in name:
|
||||
name = name.replace("model.layers.", "backbone.layers.", 1)
|
||||
return super().filter_tensors((name, gen))
|
||||
|
||||
def prepare_metadata(self, vocab_only: bool):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue