This is so simple I love it
This is lower tringuer matrix with with every token in past multiplied by -1
you multiplay each each by no
-
When
seq_lenis 8: The series is$\frac{1}{2^n}$ where $ n $ ranges from 1 to 8. In LaTeX, this can be written as:$\frac{1}{2^1}, \frac{1}{2^2}, \frac{1}{2^3}, \ldots, \frac{1}{2^8}$ -
When
seq_lenis 16: The series is $ \frac{1}{2^n} $ where $ n $ starts at 0.5 and increases in increments of 0.5 up to 8. In LaTeX, this can be represented as:$\frac{1}{2^{0.5}}, \frac{1}{2^1}, \frac{1}{2^{1.5}}, \ldots, \frac{1}{2^8}$
explained in code if you like me stranger
s = torch.arange(1,nh+1)
p = s/(nh/8)
m = 1/2**p