Skip to content

Filter CLI-only parameters before optimization - #18

Open
sylvesterkaczmarek wants to merge 1 commit into
google-deepmind:mainfrom
sylvesterkaczmarek:fix/cli-optimizer-kwargs
Open

sylvesterkaczmarek wants to merge 1 commit into
google-deepmind:mainfrom
sylvesterkaczmarek:fix/cli-optimizer-kwargs

Conversation

@sylvesterkaczmarek

Copy link
Copy Markdown

Fixes #17.

Filter the experiment config against optimize_embeddings parameters before forwarding keyword arguments. This keeps CLI-only settings such as device, results_output_path, and the search controls out of the optimizer call while preserving them in the experiment configuration.

Tests: regression test passes; end-to-end CPU CLI smoke run completes and writes results; py_compile and git diff --check pass.

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.

CLI crashes on every run: optimize_embeddings() gets an unexpected 'device' kwarg

1 participant