Class RotaryEmbedding
java.lang.Object
io.github.kirstenali.deepj.transformer.embeddings.RotaryEmbedding
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyBackward(Tensor t, int seqLen, int nHeads) applyInference(Tensor input, int length, int heads, int offset) Continuing positions for rolling inference; persistent rotary tables never grow.intheadDim()
-
Constructor Details
-
RotaryEmbedding
public RotaryEmbedding(int headDim, int maxSeqLen)
-
-
Method Details
-
apply
-
apply
-
applyBackward
-
applyInference
Continuing positions for rolling inference; persistent rotary tables never grow. -
headDim
public int headDim()
-