Skip to content

Commit 1f10c50

Browse files
authored
add add_classifier_output_labels
1 parent 7f37b6c commit 1f10c50

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gguf-py/gguf/gguf_writer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -935,6 +935,9 @@ def add_eot_token_id(self, id: int) -> None:
935935
def add_eom_token_id(self, id: int) -> None:
936936
self.add_uint32(Keys.Tokenizer.EOM_ID, id)
937937

938+
def add_classifier_output_labels(self, labels: Sequence[str]) -> None:
939+
self.add_array(Keys.Classifier.OUTPUT_LABELS.format(arch=self.arch), labels)
940+
938941
# for vision models
939942

940943
def add_clip_has_vision_encoder(self, value: bool) -> None:

0 commit comments

Comments
 (0)