Delete fp16
Browse files- fp16/halve.py +0 -17
- fp16/kokoro-v0_19-half.pth +0 -3
fp16/halve.py
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 1 |
-
from hashlib import sha256
|
| 2 |
-
from pathlib import Path
|
| 3 |
-
import torch
|
| 4 |
-
|
| 5 |
-
path = Path(__file__).parent.parent / 'kokoro-v0_19.pth'
|
| 6 |
-
assert path.exists(), f'No model pth found at {path}'
|
| 7 |
-
|
| 8 |
-
net = torch.load(path, map_location='cpu', weights_only=True)['net']
|
| 9 |
-
for a in net:
|
| 10 |
-
for b in net[a]:
|
| 11 |
-
net[a][b] = net[a][b].half()
|
| 12 |
-
|
| 13 |
-
torch.save(dict(net=net), 'kokoro-v0_19-half.pth')
|
| 14 |
-
with open('kokoro-v0_19-half.pth', 'rb') as rb:
|
| 15 |
-
h = sha256(rb.read()).hexdigest()
|
| 16 |
-
|
| 17 |
-
assert h == '70cbf37f84610967f2ca72dadb95456fdd8b6c72cdd6dc7372c50f525889ff0c', h
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fp16/kokoro-v0_19-half.pth
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:70cbf37f84610967f2ca72dadb95456fdd8b6c72cdd6dc7372c50f525889ff0c
|
| 3 |
-
size 163731194
|
|
|
|
|
|
|
|
|
|
|
|