shethjenil commited on
Commit
14a1f59
·
verified ·
1 Parent(s): 639433f

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -0
README.md ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ ```python
2
+ import onnx
3
+ import torch
4
+ from safetensors.torch import save_file
5
+ from huggingface_hub import hf_hub_download
6
+ save_file({initializer.name : torch.tensor(onnx.numpy_helper.to_array(initializer)) for initializer in onnx.load(hf_hub_download("KittenML/kitten-tts-nano-0.8-int8","kitten_tts_nano_v0_8.onnx")).graph.initializer}, "model.safetensors")
7
+
8
+ ```