Skip to content

Commit

Permalink
remove torch_dtype
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanLee97 committed May 25, 2024
1 parent 182b9d4 commit 6865523
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions angle_emb/angle.py
Original file line number Diff line number Diff line change
Expand Up @@ -1313,8 +1313,7 @@ def __init__(self,
logger.info(f'Load pretrained model from {pretrained_model_path}')
self.backbone = AutoModel.from_pretrained(
pretrained_model_path or model_name_or_path,
trust_remote_code=True,
torch_dtype=torch_dtype or "auto")
trust_remote_code=True)

if train_mode and self.apply_lora:
self.backbone.print_trainable_parameters()
Expand Down

0 comments on commit 6865523

Please sign in to comment.