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.

Hi @Naplessss , While using this demo, in Block `Infer from ckpt`, a `KeyError: 'unimol'` was raised.

See original GitHub issue

Hi @Naplessss , While using this demo, in Block Infer from ckpt, a KeyError: 'unimol' was raised.

  File "/opt/anaconda3/envs/unimol/lib/python3.9/site-packages/torch/multiprocessing/spawn.py", line 69, in _wrap
    fn(i, *args)
  File "/opt/anaconda3/envs/unimol/lib/python3.9/site-packages/unicore/distributed/utils.py", line 164, in distributed_main
    main(args, **kwargs)
  File "/root/Uni-Mol/unimol/infer.py", line 47, in main
    task = tasks.setup_task(args)
  File "/opt/anaconda3/envs/unimol/lib/python3.9/site-packages/unicore/tasks/__init__.py", line 22, in setup_task
    return TASK_REGISTRY[args.task].setup_task(args, **kwargs)
KeyError: 'unimol'

This is the whole stack.

And I also print the TASK_REGISTRY in unicore/tasks/__init__.py. well, during running, that variable is {}. Could you please tell me what happens, and how to solve this problem?

_Originally posted by @zhoubay in https://github.com/dptech-corp/Uni-Mol/issues/56#issuecomment-1287846430_

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
yuanbatoucommented, Oct 24, 2022

I set CUDA_VISIBLE_DEVICE to one GPU and can run this example. Hope it helps.

0reactions
zhoubaycommented, Oct 24, 2022

I set CUDA_VISIBLE_DEVICE to one GPU and can run this example. Hope it helps.

It works when I add a line in infer.py: os.environ['CUDA_VISIBLE_DEVICES']="0"

Thank you very much!

Read more comments on GitHub >

github_iconTop Results From Across the Web

KeyError: 'this' , why this error happened? - Stack Overflow
KeyError is one of the simpler problems to debug in Python. A small amount of debugging on your part will almost always resolve...
Read more >
Quote :: Checkpoint Therapeutics, Inc. (CKPT)
Stock Quote. Checkpoint Therapeutics Inc. NASDAQ Capital Market: CKPT. Use regions/landmarks to skip ahead to chart.
Read more >
CKPT Price Action Main Menu Checkpoint Therapeutics
View statistical stock analysis for Checkpoint Therapeutics (CKPT). ... gap up moves, gap down moves, large percentage moves And block trades.
Read more >
Checkpoint Therapeutics - CKPT Stock Forecast, Price & News
Researching Checkpoint Therapeutics? Get The Latest CKPT Stock Forecast, Price Target, Earnings Estimates, Headlines, Short Interest at MarketBeat.
Read more >
$CKPT - Checkpoint Therapeutics Inc Stock - StockTwits
analyst Joseph Pantginis maintains Checkpoint Therapeutics with a Buy, adjusts price target to $76 - 1-for-10 reverse stock split.
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