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.

How to use API in offline mode to access local log files?

See original GitHub issue

I would like to use the wandb API at the end of the training process to output results, trainign arguments and history. Because the Run object in wandb_logger.experiment is missing some information, I need to use the API to load the Run object after training (See https://github.com/PyTorchLightning/pytorch-lightning/issues/3493)

If I am connected (wandb on), after training I can do:

    wandb_logger.experiment.finish() # I seem to need this sometimes
    run_path = wandb_logger.experiment.path
    read_access_run = wandb.Api().run(run_path)

And then use read_access_run.config, read_access_run.summary, read_access_run.history()

It I am offline (wandb off), however, as I will be often when testing code, I have the following error:

ValueError: Could not find run <Run yyy/xxx/16gi3ac0 (not found)>
wandb.errors.error.CommError: Could not find run <Run yyy/xxx/16gi3ac0 (not found)>

I would like to access things like training history even if I am offline. What shall I do?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
Tahlorcommented, Mar 12, 2021

I often run jobs on nodes that don’t have internet access, but other nodes that share the file system do have internet access. You could imagine the internet-less nodes produce output logs intermittently and a process on an internet node uploads these (or it’s uploaded upon completion, or some kind of supported local proxy server that relays the logs). Does any kind of functionality like this exist, or is it planned, or would it be difficult (for me) to hack? Thanks!

5reactions
bhattgcommented, Mar 12, 2021

Actually having such functionality will be great, and I agree with @Tahlor

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use API in offline mode to access local log files? #1308
I would like to use the wandb API at the end of the training process to output results, trainign arguments and history.
Read more >
Working offline in API Designer - IBM
Open a directory on your local file system to store the API and Product specifications that you will create in API Designer. On...
Read more >
Offline Web Apps: Using Local Storage and Service Workers.
In this article, I'll explain to you ways in which you can successfully run your website offline almost like an installed app.
Read more >
View Offline Log Files - SQL Server - Microsoft Learn
You can access the offline log files from Registered Servers, or programmatically through WMI and WQL (WMI Query Language) queries. Note. You ...
Read more >
The File System Access API: simplifying access to local files
The File System Access API enables developers to build powerful web apps that ... mode, allowing the user to pick a new file...
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