llama.cpp/gguf-py/scripts
Brian c3776cacab
gguf_dump.py: fix markddown kv array print (#8588)
* gguf_dump.py: fix markddown kv array print

* Update gguf-py/scripts/gguf_dump.py

Co-authored-by: compilade <git@compilade.net>

* gguf_dump.py: refactor kv array string handling

* gguf_dump.py: escape backticks inside of strings

* gguf_dump.py: inline code markdown escape handler added

>>> escape_markdown_inline_code("hello world")
'`hello world`'
>>> escape_markdown_inline_code("hello ` world")
'``hello ` world``'

* gguf_dump.py: handle edge case about backticks on start or end of a string

---------

Co-authored-by: compilade <git@compilade.net>
2024-07-20 17:35:25 +10:00
..
__init__.py py : type-check all Python scripts with Pyright (#8341) 2024-07-07 15:04:39 -04:00
gguf_convert_endian.py py : switch to snake_case (#8305) 2024-07-05 07:53:33 +03:00
gguf_dump.py gguf_dump.py: fix markddown kv array print (#8588) 2024-07-20 17:35:25 +10:00
gguf_hash.py gguf_hash.py: Add sha256 (#8470) 2024-07-14 16:47:14 +10:00
gguf_new_metadata.py py : type-check all Python scripts with Pyright (#8341) 2024-07-07 15:04:39 -04:00
gguf_set_metadata.py py : switch to snake_case (#8305) 2024-07-05 07:53:33 +03:00