Skip to content

Commit

Permalink
gguf-py : fix double call to add_architecture() (#8952)
Browse files Browse the repository at this point in the history
Signed-off-by: tarilabs <[email protected]>
  • Loading branch information
tarilabs authored Aug 10, 2024
1 parent b72942f commit 911b437
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion gguf-py/examples/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ def writer_example() -> None:
# Example usage with a file
gguf_writer = GGUFWriter("example.gguf", "llama")

gguf_writer.add_architecture()
gguf_writer.add_block_count(12)
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
Expand Down

0 comments on commit 911b437

Please sign in to comment.