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.

Logs not syncing when wandb-history.jsonl is quite large.

See original GitHub issue

When I run wandb sync wandb/my_run the history metrics are not uploaded to the wandboard. It just stays like that till I kill the command with Ctrl+C.

The folder wandb/my_run contains the following contents:


2.4K  config.yaml
402K  model.ckpt
9.6M  output.log
748K  wandb-events.jsonl
62M  wandb-history.jsonl
16B  wandb-metadata.json
61K  wandb-summary.json

The output I get after running wandb sync wandb/my_run:

wandb: Syncing wandb/my_run to:
wandb: exp_name https://app.wandb.ai/usr_name/project_name/runs/hash
wandb: Uploading history metrics

and after that it does not progress.

Does wandb sync have limits in upload sizes.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:19 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
vanpeltcommented, Oct 19, 2020

Great, I’ve got meeting all afternoon, but I’ll look at this tonight and get back to you.

1reaction
vanpeltcommented, Oct 13, 2020

Bummer, I’ve confirmed the “fix” I had for uploading large files was added in 0.9.5. The relevant code that’s causing issue is here:

https://github.com/wandb/client/blob/v0.9.7/wandb/apis/file_stream.py#L251

You could modify your local installation of wandb to see what’s going on there. Another thing to try would be just hard-coding the lines_per_request to something like 2 or 10. The root cause is likely trying to send too much data to the backend at once. Adding a print statement to the while loop would let you see how much progress it’s able to make. You can find the local path to your wandb install by opening a python console and running:

import wandb
print(wandb.__path__)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Logs not syncing when wandb-history.jsonl is quite large. #1357
When I run wandb sync wandb/my_run the history metrics are not uploaded to the wandboard. It just stays like that till I kill...
Read more >
Log Data with wandb.log - Documentation
Call wandb.log(dict) to log a dictionary of metrics, media, or custom objects to a step. Each time you log, we increment the step...
Read more >
wandb.log - Documentation - Weights & Biases
Logs a dictonary of data to the current run's history. ... Use wandb.log to log data from runs, such as scalars, images, video,...
Read more >
Upload and Syncing of Artifacts are too slow using WSL
In the dataset versioning section of my code, I am logging the raw dataset and the cleaned ones via wandb.Artifact → wandb.add_file →...
Read more >
Log Data with wandb.log - Documentation - Weights & Biases
As soon you call wandb. log() with a different value for step than the previous one, W&B will write all the collected keys...
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