Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Train model on custom dataset from file does not work #625

Open
DavidHerel opened this issue Mar 8, 2022 · 1 comment
Open

Train model on custom dataset from file does not work #625

DavidHerel opened this issue Mar 8, 2022 · 1 comment

Comments

@DavidHerel
Copy link

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
@VijayKalmath
Copy link
Contributor

@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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants