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
rope_k_cache
def rope_k_cache[freq_dtype: DType, cache_t: KVCacheT, width: SIMDSize, //, *, interleaved: Bool, has_nope_prefix: Bool = False, rope_prefix_dim: Int = Int(0)](k_cache: cache_t, b_idx: Int, h_idx: Int, s_idx: Int, d_idx: Int, freq_val: SIMD[freq_dtype, width], head_size: Int)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!