Git Product home page Git Product logo

Comments (7)

oi02lyl avatar oi02lyl commented on July 20, 2024 3

I see. I tried the CPU version and got the same error. It seems to be related to data augmentation but I am not sure. I tried the baseline version (no DA) and it works fine on CPU:

CUDA_VISIBLE_DEVICES= python train_ditto.py   --task Structured/Beer   --batch_size 32   --max_len 128   --lr 3e-5   --n_epochs 40   --finetuning   --lm distilbert

You might also use this colab notebook to run it on GPUs.

from ditto.

oi02lyl avatar oi02lyl commented on July 20, 2024 1

I see. Will fix the bug of infinite loops. The hyper-parameters are not ideal for this dataset either (I will change the README with an updated set). Meanwhile, you can try this one

CUDA_VISIBLE_DEVICES=0 python train_ditto.py \
  --task Structured/Beer \
  --batch_size 32 \
  --max_len 128 \
  --lr 3e-5 \
  --n_epochs 40 \
  --finetuning \
  --lm roberta \
  --fp16 \
  --da drop_col

which should work better.

from ditto.

cvsekhar avatar cvsekhar commented on July 20, 2024

Screenshot 2020-10-20 184020

from ditto.

cvsekhar avatar cvsekhar commented on July 20, 2024

I have this same error before as well, forgot to capture this

/data/home/vijaya.chennupati/.conda/envs/txtclass/lib/python3.8/site-packages/sklearn/metrics/_classification.py:1221: UndefinedMetricWarning: Precision is ill-defined and being set to 0.0 due to no predicted samples. Use zero_division parameter to control this behavior.
_warn_prf(average, modifier, msg_start, len(result))
accuracy=0.846
precision=0.000
recall=0.000
f1=0.000

from ditto.

cvsekhar avatar cvsekhar commented on July 20, 2024

I am using CPU ... so removed the parameter --fp16 , no luck runs into infinite loop

Screenshot 2020-10-20 190055

from ditto.

cvsekhar avatar cvsekhar commented on July 20, 2024

Will give it a try.

from ditto.

Freedomeri avatar Freedomeri commented on July 20, 2024

Hello, does the latest version fixed this bug?
I also have this problem when I use CPU to train my program...

from ditto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.