TextAttack icon indicating copy to clipboard operation
TextAttack copied to clipboard

Train model on custom dataset from file does not work

Open DavidHerel opened this issue 2 years ago • 1 comments

Describe the bug Train model on custom dataset returns failure.

To Reproduce Steps to reproduce the behavior:

  1. Run following command !textattack train --model distilbert-base-uncased --dataset-from-file <*.py> --model-num-labels 2 --model-max-length 64 --per-device-train-batch-size 128 --num-epochs 3

Expected behavior Expected to train the model from the custom dataset

Screenshots or Traceback image

System Information (please complete the following information):

  • OS: Windows
  • Textattack version: latest

DavidHerel avatar Mar 08 '22 15:03 DavidHerel

@DavidHerel I don't think the library currently supports training using --dataset-from-file , only attack that's why you are hitting the error.

@jxmorris12 Can you confirm that we currently do not support training using dataset from file ? If so , should we mark this as an enhancement ?

VijayKalmath avatar Jun 22 '22 19:06 VijayKalmath