Giter VIP home page Giter VIP logo

hypter's People

Stargazers

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

Watchers

 avatar  avatar  avatar

Forkers

dumpmemory

hypter's Issues

model too large for forwarding by gpu in collab?

i met this error when run ./scripts/zest_grouped_bart_large_from_trained.sh
Epoch 0: 0% 0/538 [00:00<?, ?it/s]
Traceback (most recent call last):
File "cli_grouped.py", line 142, in
main()
File "cli_grouped.py", line 139, in main
run(args, logger)
File "/content/drive/MyDrive/hypter/run_grouped.py", line 87, in run
train(args, logger, model, train_data, dev_data, optimizer, scheduler)
File "/content/drive/MyDrive/hypter/run_grouped.py", line 154, in train
is_training=True)
File "/content/drive/MyDrive/hypter/growing_bart.py", line 119, in forward
is_training=is_training
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 1110, in _call_impl
return forward_call(*input, **kwargs)
File "/content/drive/MyDrive/hypter/bart_with_adapter.py", line 298, in forward
use_cache=use_cache,
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 1110, in _call_impl
return forward_call(*input, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/transformers/modeling_bart.py", line 835, in forward
encoder_outputs = self.encoder(input_ids=input_ids, attention_mask=attention_mask)
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 1110, in _call_impl
return forward_call(*input, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/transformers/modeling_bart.py", line 309, in forward
x, attn = encoder_layer(x, attention_mask)
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 1110, in _call_impl
return forward_call(*input, **kwargs)
File "/content/drive/MyDrive/hypter/bart_with_adapter.py", line 138, in forward
query=x, key=x, key_padding_mask=encoder_padding_mask, need_weights=self.output_attentions
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 1110, in _call_impl
return forward_call(*input, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/transformers/modeling_bart.py", line 646, in forward
attn_weights = attn_weights.masked_fill(reshaped, float("-inf"))
RuntimeError: CUDA out of memory. Tried to allocate 256.00 MiB (GPU 0; 14.76 GiB total capacity; 13.24 GiB already allocated; 81.75 MiB free; 13.29 GiB reserved in total by PyTorch)
Is model too large for forwarding by gpu in collab?

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.