Giter Site home page Giter Site logo

Comments (10)

GanjinZero avatar GanjinZero commented on May 28, 2024

What is your batch size; att_dim; entity type count?
please try batch size=1, lower your att_dim to 192/128/64.
If your entity type is too much (over 50), it is hard to use triaffine based model.

from triaffine-nested-ner.

yaswanth-iitkgp avatar yaswanth-iitkgp commented on May 28, 2024

Thanks a lot for your quick reply,

I used the same batch size i.e 1. entity type count is 86. I used att_dim = 320 (same as yours).
I'll check reducing it down. Because my entity type count is 86, I cannot use this model at all ?? or is there any other recommendation ?

from triaffine-nested-ner.

GanjinZero avatar GanjinZero commented on May 28, 2024

Maybe try att_dim=128/64 and apply fp16/bf16 for training.

from triaffine-nested-ner.

yaswanth-iitkgp avatar yaswanth-iitkgp commented on May 28, 2024

sure I'll try with 128 att_dim, and how to apply fp16/bf16 ?

from triaffine-nested-ner.

GanjinZero avatar GanjinZero commented on May 28, 2024

Please refer to this https://pytorch.org/blog/accelerating-training-on-nvidia-gpus-with-pytorch-automatic-mixed-precision

Our code does not implement it

from triaffine-nested-ner.

yaswanth-iitkgp avatar yaswanth-iitkgp commented on May 28, 2024

thanks for that. I am able to train the model with att_dim = 128 (consuming only 13gb) , 192(also requires more than 45gb GPU). I haven't implemented that fp16/bf16 assuming it is only for improving performance of gpu.

My dataset is a low resourse dataset so it doesn't have pos, ltokens, rtokens and relations.
can I know if it can be a cause for reduction in fscore ?? I still got a decent score of 65

from triaffine-nested-ner.

GanjinZero avatar GanjinZero commented on May 28, 2024

Without pos Lorien rtoken will reduce your performance, for ace dateset it will downgrade 1-2 f point approximately.

from triaffine-nested-ner.

yaswanth-iitkgp avatar yaswanth-iitkgp commented on May 28, 2024

Thank you so much for your quick responses and your help. I really appreciate it. I just have 1 last question , does the size of att_dim affect the f1score ?? or is it just for performance of GPU ?

from triaffine-nested-ner.

GanjinZero avatar GanjinZero commented on May 28, 2024

I think it does effect F1, while we do not experiment it.

from triaffine-nested-ner.

yaswanth-iitkgp avatar yaswanth-iitkgp commented on May 28, 2024

ok thank you very much for you informative answers and help

from triaffine-nested-ner.

Related Issues (7)

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.