Comments (9)
It seems like a failed resource allocation.
Maybe you don't have enough RAM or your GPU is too small ?
from transformers.
Your log is very hard to read. Can you format it cleanly?
from transformers.
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.
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.
Ok feel free to re-open the issue if you still have troubles.
from transformers.
Hi @SparkJiao
I met the same issue here, how did you resolve this?
from transformers.
I have the same issue, did you resolve this? @zyfedward @SparkJiao
from transformers.
@nv-quan, do you mind opening a new issue with the template so that we may help?
from transformers.
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)
- `generate` method does not work with `use_cache=False` in `Llama-2` model with `model.config._attn_implementation = "eager"` HOT 3
- add `stream` to pipeline parameters HOT 5
- Trainer/accelerate doesn't save model when using FSDP with SHARDED_STATE_DICT
- In attempting to install Apple's new OpenELM, huggingface's transformers appears to want us to ask for permission from FaceBook/Meta? HOT 6
- What should I do if I want to get a past dev version like v4.9.0.dev0 HOT 4
- Why is DeformableDetrForObjectDetection slower with bfloat16 than float32? HOT 8
- RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn HOT 5
- listing train_dataloader sampler throws out of memory error HOT 1
- Observing weird downwards jump in loss after checkpoint reloading in a DDP setting
- GPTNeoX with use_cache=False uses significantly more memory than use_cache=True
- Removing model layers throws an index error. HOT 1
- cannot load model back due to [does not appear to have a file named config.json] HOT 5
- Inference bug of the MoE GPTQ models HOT 1
- Crash when trying to import pipeline when using TPUv2 in GoogleColab HOT 2
- Question about iterable inputs for Pipeline HOT 1
- [Question]: Can I obtain the probability from generated text? HOT 2
- [BUG] DataCollatorForSeq2Seq with PaddingStrategy.MAX_LENGTH may not pad labels HOT 3
- KeyError: 'shortest_edge' when loading Kosmos-2 model from local files HOT 1
- Llama Attention Call should not pass **kwargs HOT 1
- CLIPTokenizer not in ClipModel HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from transformers.