EleutherAI / elk

Keeping language models honest by directly eliciting knowledge encoded in their activations.
MIT License
182 stars 33 forks source link

Fixes 256 - ValueError mutable default #263

Closed artkpv closed 1 year ago

artkpv commented 1 year ago

Fixes issue #256 (https://github.com/EleutherAI/elk/issues/256) . Error message:

ValueError: mutable default <class 'elk.training.train.Elicit'> for field run_template is not allowed: use default_factory

CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.

norabelrose commented 1 year ago

If we need to change this for Python 3.11 I would prefer to just use functools.partial or something similar.