Murder accidental tuple in gguf-py/scripts/gguf-dump.py
Co-authored-by: Jared Van Bortel <cebtenzzre@gmail.com>
This commit is contained in:
parent
382f9751fd
commit
7d3580d5b1
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ def dump_metadata_json(reader: GGUFReader, args: argparse.Namespace) -> None:
|
||||||
if itype == GGUFValueType.STRING:
|
if itype == GGUFValueType.STRING:
|
||||||
curr["value"] = [str(bytes(field.parts[idx]), encoding="utf-8") for idx in field.data]
|
curr["value"] = [str(bytes(field.parts[idx]), encoding="utf-8") for idx in field.data]
|
||||||
else:
|
else:
|
||||||
curr["value"] = [pv for idx in field.data for pv in field.parts[idx].tolist()],
|
curr["value"] = [pv for idx in field.data for pv in field.parts[idx].tolist()]
|
||||||
elif field.types[0] == GGUFValueType.STRING:
|
elif field.types[0] == GGUFValueType.STRING:
|
||||||
curr["value"] = str(bytes(field.parts[-1]), encoding="utf-8")
|
curr["value"] = str(bytes(field.parts[-1]), encoding="utf-8")
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue