---
id: pr-flashinfer-754
repo: flashinfer-ai/flashinfer
pr: 754
title: Change `apply_rope_with_cos_sin_cache` to accept `cos_sin_cache`
author: ByronHsu
date: '2025-01-27'
url: https://github.com/flashinfer-ai/flashinfer/pull/754
source_category: upstream-code
architectures:
- sm100
tags:
- gemm
techniques: []
hardware_features: []
kernel_types:
- gemm
languages:
- cuda-cpp
captured_at: '2026-04-17'
status: merged
merge_sha: 4f1f08989c71f92df181e346548c2ca48ae6daf5
inclusion_reason: kernel file changes
changed_paths:
- benchmarks/bench_rope.py
- csrc/flashinfer_ops.cu
- csrc/flashinfer_rope_ops.cu
- csrc/rope.cu
- flashinfer/rope.py
- include/flashinfer/pos_enc.cuh
- include/flashinfer/utils.cuh
- tests/rope_reference.py
- tests/test_rope.py
head_ref_oid: d3dea0e4ce2cdf9380e97238b49d401f58b1a4fa
artifact_dir: evidence/pull-bundles/flashinfer/gh-754
---
# Change `apply_rope_with_cos_sin_cache` to accept `cos_sin_cache`

- Repository: `flashinfer-ai/flashinfer`
- PR: [754](https://github.com/flashinfer-ai/flashinfer/pull/754)
- Decision: `kernel file changes`
- Reason: kernel file changes

## Changed Paths

- `benchmarks/bench_rope.py`
- `csrc/flashinfer_ops.cu`
- `csrc/flashinfer_rope_ops.cu`
- `csrc/rope.cu`
- `flashinfer/rope.py`
- `include/flashinfer/pos_enc.cuh`
- `include/flashinfer/utils.cuh`
- `tests/rope_reference.py`
- `tests/test_rope.py`

## Evidence Bundle

`evidence/pull-bundles/flashinfer/gh-754`
