parakeet : update parakeet test models generation

This commit updates the parakeet test models to ensure that the random
values generated for mel filters are not negative. This will otherwise
cause a debug assertion and fail the parakeet-test.

Refs: https://github.com/ggml-org/whisper.cpp/actions/runs/30547589734/job/90887624319?pr=3962
This commit is contained in:
Daniel Bevenius
2026-07-31 07:47:05 +02:00
parent 2f1f1a86eb
commit 0aec3b24eb
3 changed files with 2 additions and 1 deletions
Binary file not shown.
Binary file not shown.
+2 -1
View File
@@ -86,7 +86,8 @@ def generate(output_path, n_fft_override=None):
fout.write(struct.pack("i", n_mels)) fout.write(struct.pack("i", n_mels))
fout.write(struct.pack("i", n_freqs)) fout.write(struct.pack("i", n_freqs))
f32(n_mels, n_freqs).tofile(fout) # Mel filter must be non-negative.
np.abs(f32(n_mels, n_freqs)).tofile(fout)
fout.write(struct.pack("i", n_fft)) fout.write(struct.pack("i", n_fft))
f32(n_fft).tofile(fout) f32(n_fft).tofile(fout)