
    h                     L    S SK JrJr  S SKJr  S SKJr  \ " S S\5      5       rg)    )	dataclassfield)Optional)TrainingArgumentsc                     ^  \ rS rSr% Sr\" SSS0S9r\\S'   \" SSS	0S9r	\\S
'   \" SSS0S9r
\\S'   \" SSS0S9r\\   \S'   \" SSS0S9r\\   \S'   \" SSS0S9r\\   \S'   \" SSS0S9r\\   \S'   \" SSS0S9r\\S'   \" SSS0S9r\\S'   \" SSS0S9r\\S '   \" SSS!0S9r\\   \S"'   U 4S# jrS$rU =r$ )%	PRMConfig   a  
Configuration class for the [`PRMTrainer`].

This class includes only the parameters that are specific to PRM training. For a full list of training arguments,
please refer to the [`~transformers.TrainingArguments`] documentation. Note that default values in this class may
differ from those in [`~transformers.TrainingArguments`].

Using [`~transformers.HfArgumentParser`] we can turn this class into
[argparse](https://docs.python.org/3/library/argparse#module-argparse) arguments that can be specified on the
command line.

Parameters:
    max_length (`int` or `None`, *optional*, defaults to `1024`):
        Maximum length of the sequences (prompt + completion) used for truncation.
    max_prompt_length (`int` or `None`, *optional*, defaults to `512`):
        Maximum length of the prompt used for truncation.
    max_completion_length (`int` or `None`, *optional*, defaults to `None`):
        Maximum length of the completion used for truncation. The completion is the concatenation of the steps.
    disable_dropout (`bool`, *optional*, defaults to `True`):
        Whether to disable dropout in the model.
    step_separator (`str`, *optional*, defaults to `"\n"`):
        Separator used to separate each step of the reasoning process.
    train_on_last_step_only (`bool`, *optional*, defaults to `False`):
        Whether to train only on the last step.
    dataset_num_proc (`int`, *optional*, defaults to `None`):
        Number of processes to use for processing the dataset.
gh㈵>helpz$The initial learning rate for AdamW.)defaultmetadatalearning_rate
   zLog every X updates steps. Should be an integer or a float in range `[0,1)`. If smaller than 1, will be interpreted as ratio of total training steps.logging_stepsTzZIf True, use gradient checkpointing to save memory at the expense of slower backward pass.gradient_checkpointingNzWhether to use bf16 (mixed) precision instead of 32-bit. Requires Ampere or higher NVIDIA architecture or Intel XPU or using CPU (use_cpu) or Ascend NPU. If not set, it defaults to `True` if `fp16` is not set.bf16i   zJMaximum length of the sequences (prompt + completion) used for truncation.
max_lengthi   z1Maximum length of the prompt used for truncation.max_prompt_lengthzgMaximum length of the completion used for truncation. The completion is the concatenation of the steps.max_completion_lengthz<Whether to disable dropout in the model and reference model.disable_dropout
z>Separator used to separate each step of the reasoning process.step_separatorFz'Whether to train only on the last step.train_on_last_step_onlyz6Number of processes to use for processing the dataset.dataset_num_procc                    > U R                   c  U R                  (       + OU R                   U l         [        TU ]  5         g )N)r   fp16super__post_init__)self	__class__s    P/home/james-whalen/.local/lib/python3.13/site-packages/trl/trainer/prm_config.pyr   PRMConfig.__post_init__n   s*    '+yy'8Odii	    )r   )__name__
__module____qualname____firstlineno____doc__r   r   float__annotations__r   r   boolr   r   r   intr   r   r   r   strr   r   r   __static_attributes____classcell__)r   s   @r    r   r      s   : !@AM5  ! D
M5  $)p
$D  ! !
D(4.  !&fg!J  (-MN(x}  ,1 
,8C=  "XYOT   Z[NC  %*CD%T  ',RS'hsm 
   r"   r   N)dataclassesr   r   typingr   transformersr   r    r"   r    <module>r3      s/    )  * [ ! [  [ r"   