Methodforward_with_cfg(self, x, timestep, input_ids, input_img_latents, input_image_sizes, attention_mask, position_ids, cfg_scale,
pretrain/model.py:456
Methodforward_with_separate_cfg(self, x, timestep, cfg_scale, past_key_values, use_kv_cache, offload_model,
src/image_decoder/model.py:368
Methodforward_with_separate_cfg(self, x, timestep, input_ids, input_img_latents, input_image_sizes, attention_mask, position_ids, cfg_scale,
pretrain/model.py:472
Functiongenerate_func(
text, use_cot, cascade_thinking, height, width, guidance_scale, inference_steps, seed, separate_cfg_
app.py:34
Methodgeneration_score_reward(prompts, completions, gt_prompt, clip_score_fn, generate_fuc, **kwargs)
rl-postrain/src/open-r1-multimodal/src/open_r1/vlm_modules/qwen_module.py:202
Methodprepare_model_inputs(self, processing_class, prompts_text, images, return_tensors="pt", padding=True, padding_side="left", add_spe
rl-postrain/src/open-r1-multimodal/src/open_r1/vlm_modules/internvl_module.py:90
Methodprepare_model_inputs(self, processing_class, prompts_text, images, return_tensors="pt", padding=True, padding_side="left", add_spe
rl-postrain/src/open-r1-multimodal/src/open_r1/vlm_modules/qwen_module.py:59