Skip to content

Commit

Permalink
fix: JinaBertForMaskedLM registration
Browse files Browse the repository at this point in the history
  • Loading branch information
JoanFM committed Apr 23, 2024
1 parent 71ff763 commit e946cb0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions convert-hf-to-gguf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2715,7 +2715,7 @@ def write_tensors(self):
self.gguf_writer.add_tensor(new_name, data)


@Model.register("JinaBertModel")
@Model.register("JinaBertModel", "JinaBertForMaskedLM")
class JinaBertModel(BertModel):
model_arch = gguf.MODEL_ARCH.JINA_BERT

Expand All @@ -2742,7 +2742,6 @@ def set_vocab(self, *args, **kwargs):
self.gguf_writer.add_add_eos_token(True)


JinaBertForMaskedML = JinaBertModel

###### CONVERSION LOGIC ######

Expand Down

0 comments on commit e946cb0

Please sign in to comment.