Skip to content

Commit

Permalink
Update neox_args.py
Browse files Browse the repository at this point in the history
  • Loading branch information
floatingbigcat authored Sep 25, 2023
1 parent 7682ef4 commit a0657cc
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions megatron/neox_arguments/neox_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,16 +723,7 @@ class NeoXArgsTokenizer(NeoXArgsTemplate):
"""
tokenizer object loaded into memory and accessible by other functions
"""

finetune_groups_key_words = ['image_prefix']
"""
parameter will be putted into fintune groups as long as its name contain one of these keywords
"""

finetune_factor = 1/400
"""
control the learning rate of fintuned groups, whose real_lr=lr*finetune_factor
"""

@dataclass
class NeoXArgsTraining(NeoXArgsTemplate):
Expand Down Expand Up @@ -1141,6 +1132,16 @@ class NeoXArgsTraining(NeoXArgsTemplate):
Resample dataset with different weights for each dataset. eg 1::1 , 1::2
"""

finetune_groups_key_words = ['image_prefix']
"""
parameter will be putted into fintune groups as long as its name contain one of these keywords
"""

finetune_factor = 1/400
"""
control the learning rate of fintuned groups, whose real_lr=lr*finetune_factor
"""

@dataclass
class NeoXArgsTextgen(NeoXArgsTemplate):
"""
Expand Down

0 comments on commit a0657cc

Please sign in to comment.