Skip to main content

Mojo function

rope_ragged

rope_ragged[dtype: DType, x_layout: Layout, freq_dtype: DType, input_row_offsets_layout: Layout, start_pos_layout: Layout, freqs_cis_layout: Layout, *, interleaved: Bool, target: StringSlice[StaticConstantOrigin], output_fn: fn[width: Int, alignment: Int](idx: IndexList[3], val: SIMD[dtype, width]) capturing -> None, mrope_section: Optional[IntTuple] = None](x: LayoutTensor[dtype, x_layout, MutAnyOrigin], input_row_offsets: LayoutTensor[DType.uint32, input_row_offsets_layout, MutAnyOrigin], start_pos: LayoutTensor[DType.uint32, start_pos_layout, MutAnyOrigin], freqs_cis: LayoutTensor[freq_dtype, freqs_cis_layout, MutAnyOrigin], context: Optional[DeviceContext], position_ids: OptionalReg[LayoutTensor[DType.uint32, Layout.row_major(-1, -1), MutAnyOrigin]] = None)

Was this page helpful?