↓ 6 callersFunctionrepeat_kv This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
cosmos_predict2/_src/reason1/networks/qwen2_vl.py:538
↓ 6 callersFunctionrepeat_kv This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
cosmos_predict2/_src/reason1/networks/qwen2_5_vl.py:705
↓ 5 callersMethod__init__(self, module, module_id, plugin_config, cp_group, grid_shape, in_row_adj_groups, in_col_adj_groups)
cosmos_predict2/_src/predict2/tokenizers/wan2pt1_2d_plugins.py:83
↓ 5 callersFunctionattention_param_checks(
query: Tensor,
key: Tensor,
value: Tensor,
is_causal: bool,
causal_type: CausalType,
)
cosmos_predict2/_src/imaginaire/attention/checks.py:335
↓ 5 callersMethodextrinsic_params_to_matricesConvert (x,y,z,w, tx,ty,tz) to world2cam extrinsic matrix/matrices [R|t]. Args: qxyzw_t (torch.Tensor/np.ndarray [...,7]): Quater
cosmos_predict2/_src/imaginaire/modules/camera.py:431
↓ 4 callersMethodapply_chat_template(
self, messages, add_generation_prompt=False, return_tensors="pt", tokenize=True, add_vision_id=False
cosmos_predict2/_src/reason1/tokenizer/processor.py:93