Skip to content

Commit

Permalink
fix model path
Browse files Browse the repository at this point in the history
  • Loading branch information
VibhuJawa committed May 9, 2024
1 parent 54fc3c9 commit 924734d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,9 @@ def main():
columns_to_keep_list = df.columns.to_list()
columns_to_keep_list.remove("sliced_text")

model_path = "/home/nfs/syurick/LLM_domain_classifier_inference/GoogleDebertaAgree_v3b_bce_maxlen512_bs64_best.pth"
model = DomainModel(Config, model_path=model_path, autocast=args.autocast)
model = DomainModel(
Config, model_path=args.model_file_name, autocast=args.autocast
)
pipe = op.Sequential(
op.Tokenizer(model, cols=["sliced_text"], tokenizer_type="sentencepiece"),
op.Predictor(model, sorted_data_loader=True, batch_size=batch_size),
Expand Down

0 comments on commit 924734d

Please sign in to comment.