Create README.md
Browse files
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 |
+
```
|