Run the text decoding bit.

This commit is contained in:
laurent
2023-07-04 12:03:28 +01:00
parent 950b4af49e
commit aea090401d
2 changed files with 24 additions and 17 deletions

View File

@ -8,6 +8,6 @@ data = torch.load("tiny.en.pt")
weights = {}
for k, v in data["model_state_dict"].items():
weights[k] = v.contiguous()
print(k, v.shape)
print(k, v.shape, v.dtype)
save_file(weights, "tiny.en.safetensors")
print(data["dims"])