Skip to content

Fix OptunaTuner crashes from skip_data_loader, ListConfig serialization and best-config parsing - #91

Open
gespyrop wants to merge 3 commits into
ant-research:mainfrom
gespyrop:fix/skip_data_loader
Open

gespyrop wants to merge 3 commits into
ant-research:mainfrom
gespyrop:fix/skip_data_loader

Conversation

@gespyrop

Copy link
Copy Markdown

Summary

  • Fixes Runner crashes when skip_data_loader==True. OptunaTuner always crashes. #90
  • Removed redundant skip_data_loader option from Runner.
  • OptunaTuner no longer sets skip_data_loader=True when creating a runner in the objective function.
  • Fixed OptunaTuner JSON serialization error when saving HPO trial config
  • Fixed OptunaTuner KeyError when rebuilding the best runner config
  • examples/configs/hpo_config.yaml: load taxi from the Hugging Face Hub and use the num_trials key (n_trials was ignored).

Tests

  • python -m pytest tests/ -q: 20 passed, 5 existing deprecation warnings (local Python 3.14.9, PyTorch 2.15.0, CPU only).
  • Ran examples/train_nhp_hpo.py with num_trials: 2: both trials complete and the tuner returns the best trial's config without errors.

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

Runner crashes when skip_data_loader==True. OptunaTuner always crashes.

1 participant