From 6200b43661fcc79c105b6da729a6b53d4cd0aae2 Mon Sep 17 00:00:00 2001 From: Brian Date: Mon, 17 Jun 2024 15:21:57 +1000 Subject: [PATCH] Apply suggestions from code review Co-authored-by: compilade --- gguf-py/scripts/gguf-dump.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gguf-py/scripts/gguf-dump.py b/gguf-py/scripts/gguf-dump.py index 907ebdef85cb0..92d14d6cd0a69 100755 --- a/gguf-py/scripts/gguf-dump.py +++ b/gguf-py/scripts/gguf-dump.py @@ -225,11 +225,11 @@ def translate_tensor_name(name): def dump_markdown_metadata(reader: GGUFReader, args: argparse.Namespace) -> None: host_endian, file_endian = get_file_host_endian(reader) markdown_content = "" - markdown_content += f'# {args.model} - GGUF Internal File Dump\n' - markdown_content += f'* Endian: {file_endian} endian\n' + markdown_content += f'# {args.model} - GGUF Internal File Dump\n\n' + markdown_content += f'- Endian: {file_endian} endian\n' markdown_content += '\n' markdown_content += '## Key Value Metadata Store\n\n' - markdown_content += f'There is {len(reader.fields)} key/value pair(s) in this file\n' + markdown_content += f'There are {len(reader.fields)} key-value pairs in this file\n' markdown_content += '\n' kv_dump_table: list[dict[str, str | int]] = []