Closed CheaSim closed 2 years ago
https://github.com/yixinL7/BRIO/blob/a32b78e87fb8282847ee8c1e17856c8dad8d906c/main.py#L287
It should be like.
dct = tok.batch_encode_plus(slines, max_length=args.total_len, return_tensors="pt", padding="max_length", truncation=True)
Changed! Thanks for the advice!
https://github.com/yixinL7/BRIO/blob/a32b78e87fb8282847ee8c1e17856c8dad8d906c/main.py#L287
It should be like.