How to use API in offline mode to access local log files?
See original GitHub issueI 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:
- Created 3 years ago
- Comments:9 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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!
Actually having such functionality will be great, and I agree with @Tahlor