super()._prepare_inputs() inGRPOTrainer's usage #2846
-
I noticed that in the code: prompt_inputs = self.processing_class(
prompts_text, return_tensors="pt", padding=True, padding_side="left", add_special_tokens=False
)
prompt_inputs = super()._prepare_inputs(prompt_inputs) you are using super()._prepare_inputs(prompt_inputs). I want to know what the purpose of this is because when I compare prompt_inputs before and after the processing, they seem identical. |
Beta Was this translation helpful? Give feedback.
Answered by
qgallouedec
Feb 13, 2025
Replies: 1 comment
-
It should move the tensors to the right devices |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ZRui-C
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It should move the tensors to the right devices