Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
garrett4wade committed Aug 28, 2024
1 parent 1a8bd9d commit 8f21464
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions realhf/experiments/common/dpo_exp.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class DPOConfig(CommonExperimentConfig):
:param beta: KL regularization coefficient.
:type beta: float
"""

is_sft_lora: bool = False
sft_lora_path: Optional[str] = None

Expand Down
1 change: 1 addition & 0 deletions realhf/experiments/common/gen_exp.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class GenerationConfig(CommonExperimentConfig):
:param allocation: Configuration for device allocation and parallelism.
:type allocation: MFCConfig
"""

model: ModelTrainEvalConfig = dataclasses.field(
default_factory=ModelTrainEvalConfig
)
Expand Down
1 change: 1 addition & 0 deletions realhf/experiments/common/ppo_exp.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ class PPOConfig(CommonExperimentConfig):
:param ppo: Configuration for the PPO algorithm.
:type ppo: PPOHyperparameters
"""

is_sft_lora: bool = False
sft_lora_path: Optional[str] = None
is_rew_lora: bool = False
Expand Down
1 change: 1 addition & 0 deletions realhf/experiments/common/rw_exp.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class RWConfig(CommonExperimentConfig):
:param dataset: Configuration for the dataset.
:type dataset: PairedComparisonDatasetConfig
"""

is_sft_lora: bool = False
sft_lora_path: Optional[str] = None
model: ModelTrainEvalConfig = dataclasses.field(
Expand Down
1 change: 1 addition & 0 deletions realhf/experiments/common/sft_exp.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class SFTConfig(CommonExperimentConfig):
:param dataset: Configuration for the dataset.
:type dataset: PromptAnswerDatasetConfig
"""

model: ModelTrainEvalConfig = dataclasses.field(
default_factory=ModelTrainEvalConfig
)
Expand Down

0 comments on commit 8f21464

Please sign in to comment.