py : restore tensor_fields

This commit is contained in:
Georgi Gerganov
2026-02-22 10:54:14 +02:00
parent 12c719b3f1
commit f2ac3ef57e
+2
View File
@@ -168,6 +168,8 @@ class GGUFReader:
tensor_count, kv_count = temp_counts
offs = self._build_fields(offs, kv_count)
# Build Tensor Info Fields
offs, tensors_fields = self._build_tensor_info(offs, tensor_count)
new_align = self.fields.get('general.alignment')
if new_align is not None:
if new_align.types != [GGUFValueType.UINT32]: