↓ 2 callersFunctionapply_ropeApply rotary embeddings matching diffusers apply_rotary_emb exactly. x: [B, H, S, D], cos/sin: [S, D]
cake-core/src/models/flux/flux2_model.rs:90
↓ 2 callersFunctionattention(q: &Tensor, k: &Tensor, v: &Tensor, pe_cos: &Tensor, pe_sin: &Tensor, backend: &dyn ComputeBackend)
cake-core/src/models/flux/flux2_model.rs:127
↓ 2 callersMethodcausal_conv1d_stepApply causal depthwise conv1d + SiLU on a single new token, updating conv_state in-place. x: (batch, 1, channels), conv_state: (batch, channels, kerne
cake-core/src/models/qwen3_5/linear_attention.rs:189