Coder Social home page Coder Social logo

bert-finetuning-catalyst's People

Contributors

yorko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bert-finetuning-catalyst's Issues

Question about number of clusters

Hey Yorko!

Thank you for the library and the youtube explanations, ran into it while exploring BERT!

Apologize in advance for a beginner question.

I'm trying to run your code on my data. However, it seems that I cannot specify anything but 5 clusters, otherwise the code crashes with

File "/home/svet/gitprojects/bert-finetuning-catalyst/venv/lib/python3.7/site-packages/torch/nn/functional.py", line 2265, in nll_loss
ret = torch._C._nn.nll_loss(input, target, weight, _Reduction.get_enum(reduction), ignore_index)
IndexError: Target 4 is out of bounds.

(I have 4 clusters)

May be I missed something in your explanations but your sdg_id column has > 5 different values, this also confused me.

Would be really grateful if you responed.

Cheers,

'Indexing with integers (to access backend Encoding for a given batch index) is not available when using Python based tokenizers'

Hi,

first of all, thanks for these wonderful repository and tutorial. I have an isse, though. When i run the script i get this error code: 'Indexing with integers (to access backend Encoding for a given batch index) is not available when using Python based tokenizers'

Do you know why it is happening?

To recreate the issue, i did the following:

cloned the repository
python src/train.py

Thanks

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.