-
-
Notifications
You must be signed in to change notification settings - Fork 15.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
W&B Bug in Kaggle Notebook #1372
Comments
@glenn-jocher seems like a kaggle kernel specific problem. This doesn't happen on colab. There's a simple workaround that I just tested. Calling |
@AyushExel what do you think the best way to handle this is uniformly between the Colab and Kaggle notebooks? We need to maintain a single base notebook for reduced maintenance. I was thinking maybe a seperate code block before train, that would install and init with a single click? In any case you probably want to pass this failure mode up to the maintainers of the login code to see if they can get this working natively in kaggle also. |
@glenn-jocher Yes a separate init block before training would be the way to go for now. I'll pass this on to the maintainers. Right now the team is busy launching this awesome dataset visualization feature that I told you about. But this will be fixed as soon as they're done with the launch. |
Saving this here, can be inlined after existing # Start Weights & Biases (optional)
%pip install -q wandb # use 'wandb disable'/'wandb enable' to turn off/on
!wandb login |
@AyushExel I tested the Kaggle notebook again and this bug is resolved now :) It appears that wandb is no longer a default installed package in their notebook environment, so the model trains without asking for a wandb login now. When I try to install wandb though I'm not able to paste in my key still. This happens to me in Chrome, I have not tested other browsers. The same op works fine in the Colab notebook, but Kaggle in particular seems to have issues with their UI when it comes to inserting values at prompts. Have you been able to complete this login in a kaggle notebook? |
@glenn-jocher I'll file a ticket today to get this fixed. I filed them for media panel viewing error and Recursion depth error but this error slipped out of my mind. |
@AyushExel great, thanks! I just arrived in California, I have to take care of a few things, but I will get back on Slack later today. |
@AyushExel verified this issue still exists in the latest (version 9) notebook today March 4th. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Removing TODO as this is now fixed with the new python login commands now in our Google and Kaggle notebooks: # Weights & Biases (optional)
%pip install -q wandb
import wandb
wandb.login() |
Hello, I am trying to run my Kaggle notebook in offline mode (with internet off) for a code submission competition. While training WANDB is getting activated and returning an error as it cannot access my WANDB account due to the internet being off. How to avoid wandb while training is on in the kernel? Appreciate inputs. |
@valmetisrinivas you can avoid the WANDB activation by removing the WANDB library import and the WANDB logging code from your notebook. This will prevent any attempts to access your WANDB account when running the code. Simply comment out or remove the following lines: import wandb
wandb.init() By doing this, you can run your Kaggle notebook in offline mode without any issues related to WANDB. Good luck with your code submission competition! |
@glenn-jocher , I did try what you suggested and a few more. But none had worked. Finally, |
@valmetisrinivas glad to hear that you found a workaround for disabling WANDB during training by setting Happy coding! |
Thanks Glenn
…On Wed, 23 Aug 2023, 19:00 Glenn Jocher, ***@***.***> wrote:
@valmetisrinivas <https://github.com/valmetisrinivas> glad to hear that
you found a workaround for disabling WANDB during training by setting os.environ["WANDB_DISABLED"]
= "true". Thank you for sharing the solution and the link to the
discussion. This will be helpful for others who may encounter a similar
issue. If you have any further questions or need any more assistance, feel
free to ask.
Happy coding!
—
Reply to this email directly, view it on GitHub
<#1372 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMGKJKA6OTPI74MWEW7D74LXWYLJXANCNFSM4TTE3WHQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@valmetisrinivas Glad to hear that you found a workaround for disabling WANDB during training by setting Happy coding! |
🐛 Bug
It is impossible to select a W&B option in the Kaggle notebook when training (on Chrome at least, other browsers not tested). This problem is compounded by the fact that wandb appears to be a default package in the kaggle notebook environment, meaning the issue is impossible to avoid by default. @AyushExel can you take a look at this please?
![Screenshot 2020-11-12 at 12 12 29](https://user-images.githubusercontent.com/26833433/98933416-e0ef8580-24e0-11eb-8ae8-a20e9f950715.png)
To Reproduce (REQUIRED)
Environment
https://www.kaggle.com/ultralytics/yolov5
The text was updated successfully, but these errors were encountered: