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

support for custom command line parameters (e.g. -U foo=bar) #1402

Open
jjallaire-aisi opened this issue Feb 26, 2025 · 1 comment
Open

support for custom command line parameters (e.g. -U foo=bar) #1402

jjallaire-aisi opened this issue Feb 26, 2025 · 1 comment

Comments

@jjallaire-aisi
Copy link
Collaborator

Would be great if in addition to -T, -S and -M inspect allowed custom command line parameters, say -U for user/universal/unspecified, which could be retrieved manually.

Motivation: models and solvers are examples of components that can be shared by different evals and parametrised independently of the rest of the eval. But if I want to create a common component which doesn't conform to either model or solver API, then there is no way to make it parametrisable without updating every task to read and propagate component parameters.

@jjallaire-aisi
Copy link
Collaborator Author

Note, equivalent (but way less elegant!) way of doing this now is through CLI bound environment variables, e.g.

FOO=bar BAZ=qux inspect eval math.py

Then from code:

os.environ.get("FOO")

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