Giter Site home page Giter Site logo

Comments (9)

thomwolf avatar thomwolf commented on May 1, 2024 1

It seems like a failed resource allocation.
Maybe you don't have enough RAM or your GPU is too small ?

from transformers.

thomwolf avatar thomwolf commented on May 1, 2024

Your log is very hard to read. Can you format it cleanly?

from transformers.

SparkJiao avatar SparkJiao commented on May 1, 2024

I'm so sorry
The first error log is as follows:

/opt/conda/conda-bld/pytorch_1532584813488/work/aten/src/THC/THCTensorIndex.cu:362: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2, IndexIsMajor = true]: block: [11,0,0], thread: [95,0,0] Assertion \`srcIndex < srcSelectDimSize\` failed.

And then the Traceback finally points to line 1026 torch/nn/functional.py in linear:
output = input.matmul(weight.t())
It seems that somewhere crashed while using torch.index_select() , do you think it is because my sentence is too long? I will check other aspects, thank you very much

from transformers.

SparkJiao avatar SparkJiao commented on May 1, 2024

My GPU has 12400 MB and I think that's enough, may be I should use 'yield' to input the data one by one? I will load less data to try, thanks u a lot!

from transformers.

thomwolf avatar thomwolf commented on May 1, 2024

Ok feel free to re-open the issue if you still have troubles.

from transformers.

zyfedward avatar zyfedward commented on May 1, 2024

Hi @SparkJiao

I met the same issue here, how did you resolve this?

from transformers.

nv-quan avatar nv-quan commented on May 1, 2024

I have the same issue, did you resolve this? @zyfedward @SparkJiao

from transformers.

LysandreJik avatar LysandreJik commented on May 1, 2024

@nv-quan, do you mind opening a new issue with the template so that we may help?

from transformers.

SparkJiao avatar SparkJiao commented on May 1, 2024

I have forgot how to reproduce the problem but the index_select error usually happened due to wrong index. You can use a smaller batch size and run the script on CPU to check the full traceback since the traceback while using GPU is delayed.

from transformers.

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.