Skip to content
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

NameError when wandb is not found #9

Open
Jasonleng opened this issue Nov 28, 2023 · 0 comments
Open

NameError when wandb is not found #9

Jasonleng opened this issue Nov 28, 2023 · 0 comments

Comments

@Jasonleng
Copy link

@AlexanderFengler When I try the jax trainer it get the error message:

Traceback (most recent call last):
File "/oscar/home/xleng/LAN_pipeline_minimal/bash_scripts/../scripts/jax_training_script.py", line 185, in
model_trainer.train_and_evaluate(save_history = train_config['save_history'],
File "/users/xleng/anaconda/lan_pipe/lib/python3.10/site-packages/lanfactory/trainers/jax_mlp.py", line 542, in train_and_evaluate
self.__try_wandb(
File "/users/xleng/anaconda/lan_pipe/lib/python3.10/site-packages/lanfactory/trainers/jax_mlp.py", line 365, in __try_wandb
wandb.init(
NameError: name 'wandb' is not defined

It does not happen when I do the torch trainer. And I realized that the implementation of the __try_wandb function varies between jax_mlp.py and torch_mlp.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant