Skip to content

Commit

Permalink
test file with duplicate keys in header
Browse files Browse the repository at this point in the history
  • Loading branch information
by321 committed Dec 12, 2023
1 parent 96ddd58 commit 1c957b5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions safetensors_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def close_file(self):
self.f=None
self.filename=""

#test file: duplicate_keys_in_header.safetensors
def _CheckDuplicateHeaderKeys(self):
def parse_object_pairs(pairs):
return [k for k,_ in pairs]
Expand Down
Binary file added test/duplicate_keys_in_header.safetensors
Binary file not shown.

0 comments on commit 1c957b5

Please sign in to comment.