Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

llama-tts : precompute irFFT theta #12514

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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