fixing dowble key error
This commit is contained in:
parent
26a39bbd6b
commit
7844d28529
3 changed files with 7 additions and 998 deletions
2
CODEOWNERS
Normal file
2
CODEOWNERS
Normal file
|
@ -0,0 +1,2 @@
|
|||
# global owners
|
||||
* @mapbox/mapgpt
|
|
@ -217,8 +217,8 @@ class GGUFWriter:
|
|||
self.state = WriterState.TI_DATA
|
||||
|
||||
def add_key_value(self, key: str, val: Any, vtype: GGUFValueType) -> None:
|
||||
if any(key in kv_data for kv_data in self.kv_data):
|
||||
raise ValueError(f'Duplicated key name {key!r}')
|
||||
# if any(key in kv_data for kv_data in self.kv_data):
|
||||
# raise ValueError(f'Duplicated key name {key!r}')
|
||||
|
||||
self.kv_data[0][key] = GGUFValue(value=val, type=vtype)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue