lnccbrown / lnccbrown/LANfactory

NameError when wandb is not found

Open
#9 1 comment 0 reactions 0 assignees View on GitHub
linear-lanfactory
Dominant language
Python
Stars
16
Forks
4
Avg merge
3d 7h
Merged PRs (30d)
8

Description

@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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by comparing __try_wandb in lanfactory/trainers/jax_mlp.py and torch_mlp.py, focusing on the missing wandb name shown in the traceback. Reproduce the JAX trainer with wandb unavailable and verify that it no longer raises this NameError while the existing torch trainer behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.