From: Avi Lumelsky Date: Sun, 18 Jun 2023 10:32:09 +0000 (+0300) Subject: whisper : removed duplicate lines in convert-pt-to-ggml.py (#256) X-Git-Tag: upstream/0.0.1642~1403 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=7e8b307fe6e20346f6fa3ded55dd8b7ed6dd3a20;p=pkg%2Fggml%2Fsources%2Fggml whisper : removed duplicate lines in convert-pt-to-ggml.py (#256) Deleted 2 lines of .astype(float32) conversion to the model weights (No real impact, just for cleaner code) --- diff --git a/examples/whisper/convert-pt-to-ggml.py b/examples/whisper/convert-pt-to-ggml.py index 749f99c8..07752e75 100644 --- a/examples/whisper/convert-pt-to-ggml.py +++ b/examples/whisper/convert-pt-to-ggml.py @@ -297,8 +297,6 @@ for name in list_vars.keys(): name == "encoder.conv2.bias" or \ name == "encoder.positional_embedding" or \ name == "decoder.positional_embedding": - ftype = 0 - data = data.astype(np.float32) print(" Converting to float32") data = data.astype(np.float32) ftype = 0