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.

joeyNMT 1.1/Google Colab - uses device:cpu instead of GPU

See original GitHub issue

Problem When training using Masakhane custom data notebook, and pip installing joeyNMT, !cd joeynmt; python3 -m joeynmt train configs/transformer_$src$tgt.yaml uses CPU instead of GPU.

This occurs if I use version 1.1, but NOT if I pip install 1.0 specifically.

  • If I use joeynmt==1.0 when pip installing, I get device:cuda
  • If I use joeynmt when pip installing, it installs 1.1, and I get device:cpu

System (please complete the following information):

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bricksdontcommented, Jan 19, 2021

There is a deprecation warning about a specific class in torchtext:

/net/cephfs/scratch/mathmu/amit/venvs/joey3/lib/python3.7/site-packages/torchtext/data/field.py:150: UserWarning: Field class will be retired in the 0.8.0 release and moved to torchtext.legacy. Please see 0.7.0 release notes for further information.
  warnings.warn('{} class will be retired in the 0.8.0 release and moved to torchtext.legacy. Please see 0.7.0 release notes for further information.'.format(self.__class__.__name__), UserWarning)

Is this perhaps a problem when updating the requirements to torchtext==0.8.1 ?

1reaction
turkicinterlinguacommented, Jan 18, 2021

same issue! It has something to do with the torch version I believe but not sure yet

Read more comments on GitHub >

github_iconTop Results From Across the Web

joeynmt - bytemeta
joeynmt repo issues. ... Joey NMT for paper Correct Me If You Can ... joeyNMT 1.1/Google Colab - uses device:cpu instead of GPU....
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