Skip to content

Commit

Permalink
remove bellm
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanLee97 committed Feb 23, 2024
1 parent 019df4a commit 3abf3cf
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions angle_emb/train_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
help='Specify pretrained model path to load pretrained model, default None')
parser.add_argument('--pretrained_lora_path', type=str, default=None,
help='Specify pretrained lora path to load lora, default None')
parser.add_argument('--bellm_class_name', type=str, default=None,
help='Specify bellm class name, default None')
parser.add_argument('--train_name_or_path', type=str, required=True,
help='Specify huggingface datasets name or local file path for train set, required')
parser.add_argument('--train_subset_name', type=str, default=None,
Expand Down Expand Up @@ -134,11 +132,8 @@ def main():
'r': args.lora_r,
'lora_alpha': args.lora_alpha,
'lora_dropout': args.lora_dropout,
'target_modules': ['fc2', 'Wqkv', 'fc1'] if 'BePhi2Model' == args.bellm_class_name else None,
},
load_kbit=args.load_kbit,
bellm_class_name=args.bellm_class_name,
kbit_kwargs={'use_gradient_checkpointing': False} if 'BePhi2Model' == args.bellm_class_name else None,
torch_dtype=args.torch_dtype)

if args.start_bilayer_index is not None:
Expand Down

0 comments on commit 3abf3cf

Please sign in to comment.