question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

notebook not working out of the box

See original GitHub issue

I’m trying to just get the included toxicity notebook to work from a fresh clone and am having some issues:

  1. Out of the box, the data & labels directory are pointing to the wrong place and the DataBunch is using filenames that are not part of the repo. These are fixed easily enough.

  2. It would help if there was a pointer to where to get the PyTorch pretrained model uncased_L-12_H-768_A-12. There is a Google download which will not work with the from_pretrained_model cell:

FileNotFoundError: [Errno 2] No such file or directory: '../../bert/bert-models/uncased_L-12_H-768_A-12/pytorch_model.bin'

I have been able to get past this step by instead of using ‘bert-base-uncased’ instead of BERT_PRETRAINED_PATH as the model spec in the tokenizer and from_pretrained_model steps.

  1. Once I get everything loaded, RuntimeError: CUDA out of memory. Tried to allocate 96.00 MiB (GPU 0; 7.43 GiB total capacity; 6.91 GiB already allocated; 10.94 MiB free; 24.36 MiB cached)

This is a standard 8G GPU compute engine instance on GCP. Advice on how to not run out of memory would help the tutorial a lot.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:17 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
DanyalAndrianocommented, Nov 7, 2019

I managed to solve this issue by restarting my jupyter kernel before running the model. I also used the gradient_accumulation = 8 setting + batch_size = 8 to get batches of 64 that fit into my GPU memory. I was able to keep sequence length ar 256 with these settings.

1reaction
oltipcommented, May 31, 2019

Anyway, I solved that ===>maybe others might encounter the same issue. The point was that the pytorch v1.0.1 in windows doesn’t have the distribution stuff. I moved to ubuntu 18.4 and it works.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Won't My Laptop Turn On Even Though It's Plugged In?
Laptop not turning on? If your laptop won't power on, even when it's plugged in could have a faulty power supply, battery, motherboard,...
Read more >
How to set up your new Windows laptop like a pro
How to set up your new Windows laptop like a pro: out-of-the-box tips · 1. Right-click on your desktop and select Display Settings....
Read more >
Notebook cannot power on and shows black screen ... - ASUS
Re-install the battery (for removable battery models) and connect the AC adapter, then try to restart your laptop. Solution #2: (Power light is ......
Read more >
Brand new laptop, running so slow out of the box! HELP! I'm
Please turn the computer off. As you press the power button, immediately keep tapping F2 key.. (Tap, Tap, Tap). This should show the...
Read more >
Troubleshoot errors in OneNote for Windows 10
This article contains troubleshooting tips about errors you could run into while using OneNote for Windows 10. Errors when opening OneNote notebooks.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found