Skip to content

Conversation

@marcoStocchi
Copy link
Contributor

  • Added vector of precomputed theta values for inverse real FFT, added irfft_2() which uses the precomputed values.
  • Benchmark tests on AMD Ryzen 7 3700X: approximate performance gain of the irfft threads of 70%.
  • Left original irfft() untouched to ease further tests on different machines.

Some benchmark info:

  • AMD Ryzen 7 3700X 8-Core Processor
  • GCC 14.2.1 20240912 (Red Hat 14.2.1-3) for x86_64-redhat-linux
  • Model: outetts-0.2-0.5B-f16.gguf
  • Wavtk: wavtokenizer-large-75-f16.gguf
  • 5 trials of llama-tts using the original irfft and the irfft2
  • Text prompt: "This is a test made using a standard configuration."
irfft (ms) irfft_2 (ms)
1 529.593 110.258
2 529.553 110.186
3 528.021 111.706
4 528.127 110.320
5 528.475 110.711
avg 528.754 110.636

* tts.cpp : added vector of precomputed theta values for inverse real FFT, added irfft_2() which uses the precomputed values. Benchmark tests on AMD Ryzen 7 3700X: approximate performance gain of the irfft threads of 70%. Left original irfft() untouched to ease further tests on different machines.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant