mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-04 20:52:59 +08:00
14 lines
369 B
Python
14 lines
369 B
Python
from typing import Literal, Optional
|
|
from dataclasses import dataclass, field
|
|
|
|
|
|
@dataclass
|
|
class GeneralArguments:
|
|
r"""
|
|
Arguments pertaining to which stage we are going to perform.
|
|
"""
|
|
stage: Optional[Literal["pt", "sft", "rm", "ppo", "dpo"]] = field(
|
|
default="sft",
|
|
metadata={"help": "Which stage will be performed in training."}
|
|
)
|