https://github.com/Raumberg/myllm/blob/main/myllm/algorithms/dft.py