Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
by321 authored Dec 11, 2023
1 parent f1ee506 commit 2cbc403
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ This is a light-weight utility program for [safetensors files](https://github.co
extractdata extract one tensor and save to file
extracthdr extract file header and save to output file
header print file header
listkeys print header key names (except \_\_metadata\_\_) as a Python list
metadata print only \_\_metadata\_\_ in file header
writemd read \_\_metadata\_\_ from json and write to safetensors file
listkeys print header key names (except __metadata__) as a Python list
metadata print only __metadata__ in file header
writemd read __metadata__ from json and write to safetensors file


The most useful thing is probably the read and write metadata commands. To read metadata:
Expand Down

0 comments on commit 2cbc403

Please sign in to comment.