Skip to content

Commit

Permalink
fix(convert_hf_to_gguf): Use LlamaModel as base for GraniteModel
Browse files Browse the repository at this point in the history
The defaults in LlamaModel are needed for Granite as well

Branch: GraniteLM

Signed-off-by: Gabe Goodhart <[email protected]>
  • Loading branch information
gabe-l-hart committed Sep 16, 2024
1 parent e73d795 commit 8086380
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion convert_hf_to_gguf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4081,7 +4081,7 @@ def prepare_tensors(self):


@Model.register("GraniteForCausalLM")
class GraniteModel(Model):
class GraniteModel(LlamaModel):
"""Conversion for IBM's GraniteForCausalLM"""
model_arch = gguf.MODEL_ARCH.GRANITE

Expand Down

0 comments on commit 8086380

Please sign in to comment.