gguf-py: fix gguf-py/examples/writer.py #8952
gguf-py: fix examples/reader.py
886f44de
tarilabs
changed the title gguf-py: fix gguf-py/examples/reader.py gguf-py: fix gguf-py/examples/writer.py 1 year ago
compilade
approved these changes
on 2024-08-10
ggerganov
merged
911b437f
into master 1 year ago
Assignees
No one assigned
Double-call to
add_architecture()
in example results in ValueError.Example is instantiating
GGUFWriter
in example:https://github.com/ggerganov/llama.cpp/blob/3071c0a5f218f107dabd13b73f6090af683ef5ec/gguf-py/examples/writer.py#L16-L18
But constructor already has the
add_architecture()
call here:https://github.com/ggerganov/llama.cpp/blob/3071c0a5f218f107dabd13b73f6090af683ef5ec/gguf-py/gguf/gguf_writer.py#L108
Before (today)
After