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,

I’m trying to run the script on a VPS, but it gets an error:

torch._C._cuda_init()
RuntimeError: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx.

Adding the parameter doesn’t help:

model = torch.load('roberta-large',map_location ='cpu')

Is it possible to run the model on the CPU?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
timurkacommented, Oct 27, 2021

Everything works! You have no idea how much you’ve helped me.

0reactions
timurkacommented, Oct 27, 2021

Probably should have been saved like this:

model.fit(train_objectives=[(train_dataloader, train_loss)], epochs=2, warmup_steps=221, output_path='/content/drive/MyDrive/c/roberta')

Read more comments on GitHub >

github_iconTop Results From Across the Web

Central processing unit - Wikipedia
A central processing unit (CPU), also called a central processor, main processor or just processor, is the electronic circuitry that executes instructions ...
Read more >
CPU Processors | Newegg.com
Enjoy a speedy and efficient computer performance with CPU processors. They have different characteristics to fit a wide variety of devices and functions....
Read more >
CPU: Central Processing Unit | AP CSP (article)
The CPU is the brain of a computer, containing all the circuitry needed to process input, store data, and output results. The CPU...
Read more >
What is a CPU (Central Processing Unit)? | Malwarebytes
A Central Processing Unit or CPU is electronic machinery that carries out instructions from programs that allows a computer or other device to...
Read more >
What Is a CPU? Here's Everything You Need to Know
The CPU is the core component that defines a computing device, and while it is of critical importance, the CPU can only function...
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