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 11, 2024
1 parent e8a1073 commit 2ed6a17
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 @@ -3951,7 +3951,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 2ed6a17

Please sign in to comment.