↓ 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
src/image_decoder/modeling_phi3.py:348
↓ 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
pretrain/modeling_phi3.py:348
↓ 4 callersMethod_get_per_token_logps(self, model, input_ids, attention_mask, output_hidden_states=False, **custom_multimodal_inputs)
rl-postrain/src/open-r1-multimodal/src/open_r1/trainer/grpo_trainer.py:554
↓ 4 callersMethodget_mllm_hidden_state(self, user_input, input_images, do_sample, temperature, max_new_tokens, only_understand=False, use_cot=False)
src/mindomni.py:86
↓ 3 callersMethod_get_per_token_logps(
self,
model,
input_ids,
attention_mask,
pixel_values,
image_
rl-postrain/src/open-r1-multimodal/src/open_r1/trainer/vllm_grpo_trainer.py:466
↓ 2 callersFunction_prepare_4d_causal_attention_mask_with_cache_position Creates a causal 4D mask of shape `(batch_size, 1, query_length, key_value_length)` from a 2D mask of shape `(batch_size, key_value_length)`,
src/image_decoder/modeling_phi3.py:61
↓ 2 callersFunction_prepare_4d_causal_attention_mask_with_cache_position Creates a causal 4D mask of shape `(batch_size, 1, query_length, key_value_length)` from a 2D mask of shape `(batch_size, key_value_length)`,
pretrain/modeling_phi3.py:61
↓ 2 callersFunctionbuild_message(user_input, think_content, qwen_prompt, llm_processor, model_llm, use_template, logger)
pretrain/train_helper/validate.py:11
↓ 2 callersFunctiondetection_score(content, sol, iou_threshold=0.5, alpha=0.7, beta=0.0, gamma=0.3)
rl-postrain/src/open-r1-multimodal/src/open_r1/grpo_jsonl.py:431
↓ 2 callersFunctiondetection_score(content, sol, iou_threshold=0.5, alpha=0.7, beta=0.0, gamma=0.3)
rl-postrain/src/open-r1-multimodal/src/open_r1/grpo_ust.py:443
↓ 2 callersMethodforward(self, x, timestep, padding_latent=None, past_key_values=None, return_past_key_values=True, offload_model: boo
src/image_decoder/model.py:321