For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Mojo function
get_identity_rope_coeff
def get_identity_rope_coeff[width: Int, dtype: DType]() -> SIMD[dtype, width]
Returns a SIMD vector representing an identity RoPE coefficient.
Creates a SIMD vector with real parts set to 1 and imaginary parts set to 0, effectively making the RoPE transformation an identity operation.
Parameters:
- width (
Int): Number of elements in the returned SIMD vector. - dtype (
DType): Element type of the returned SIMD vector.
Returns:
SIMD[dtype, width]: A SIMD vector of interleaved 1.0 real and 0.0 imaginary coefficients.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!