Add test scripts
This commit is contained in:
parent
6c1d57f9cd
commit
8943455447
4 changed files with 60 additions and 0 deletions
10
loadtest.py
Normal file
10
loadtest.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
# /// script
|
||||
# dependencies = ["numpy", "safetensors"]
|
||||
# ///
|
||||
|
||||
from safetensors.numpy import load_file
|
||||
|
||||
arrs = load_file("test.safetensors")
|
||||
for name, arr in arrs.items():
|
||||
print(name, arr.dtype)
|
||||
print(arr)
|
Loading…
Add table
Add a link
Reference in a new issue