Skip to content

Commit

Permalink
py : add model class for Chameleon conversion (ggerganov#9683)
Browse files Browse the repository at this point in the history
  • Loading branch information
nopperl authored and dsx1986 committed Oct 29, 2024
1 parent ef40921 commit f4f0ba0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion convert_hf_to_gguf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4162,7 +4162,8 @@ def modify_tensors(self, data_torch: Tensor, name: str, bid: int | None) -> Iter
return super().modify_tensors(data_torch, name, bid)


@Model.register("ChameleonForCausalLM")
@Model.register("ChameleonForConditionalGeneration")
@Model.register("ChameleonForCausalLM") # obsolete
class ChameleonModel(Model):
model_arch = gguf.MODEL_ARCH.CHAMELEON

Expand Down

0 comments on commit f4f0ba0

Please sign in to comment.