]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
gguf-py : fix double call to add_architecture() (#8952)
authorMatteo Mortari <redacted>
Sat, 10 Aug 2024 05:58:49 +0000 (07:58 +0200)
committerGitHub <redacted>
Sat, 10 Aug 2024 05:58:49 +0000 (08:58 +0300)
Signed-off-by: tarilabs <redacted>
gguf-py/examples/writer.py

index f39eed1afe763f7f9c05293a355be1388bc7ffb6..731873a7d666ca5a58dfb95a42bb809fe92fe747 100755 (executable)
@@ -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