Skip to content

Commit

Permalink
Merge pull request #76 from SeanLee97/feature/202406
Browse files Browse the repository at this point in the history
remove torch_dtype for AutoModel
  • Loading branch information
SeanLee97 authored May 26, 2024
2 parents 182b9d4 + 6865523 commit a582c12
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 a582c12

Please sign in to comment.