Browse Source

gguf-py : fix double call to add_architecture() (#8952)

Signed-off-by: tarilabs <matteo.mortari@gmail.com>
Matteo Mortari 1 năm trước cách đây
mục cha
commit
911b437f22
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      gguf-py/examples/writer.py

+ 0 - 1
gguf-py/examples/writer.py

@@ -15,7 +15,6 @@ def writer_example() -> None:
     # Example usage with a file
     # Example usage with a file
     gguf_writer = GGUFWriter("example.gguf", "llama")
     gguf_writer = GGUFWriter("example.gguf", "llama")
 
 
-    gguf_writer.add_architecture()
     gguf_writer.add_block_count(12)
     gguf_writer.add_block_count(12)
     gguf_writer.add_uint32("answer", 42)  # Write a 32-bit integer
     gguf_writer.add_uint32("answer", 42)  # Write a 32-bit integer
     gguf_writer.add_float32("answer_in_float", 42.0)  # Write a 32-bit float
     gguf_writer.add_float32("answer_in_float", 42.0)  # Write a 32-bit float