-
Notifications
You must be signed in to change notification settings - Fork 33
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
Cannot run README command elk elicit microsoft/deberta-v2-xxlarge-mnli imdb
#256
Comments
artkpv
added a commit
to artkpv/elk
that referenced
this issue
Jun 27, 2023
Fixes issue EleutherAI#256. Error message: > ValueError: mutable default <class 'elk.training.train.Elicit'> for field run_template is not allowed: use default_factory
I'm not really sure what's wrong here. It may be a 3.11 only issue. I haven't had a chance to test myself |
norabelrose
pushed a commit
that referenced
this issue
Sep 25, 2023
* Fixes 256 - ValueError mutable default Fixes issue #256. Error message: > ValueError: mutable default <class 'elk.training.train.Elicit'> for field run_template is not allowed: use default_factory * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * To lowercase --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
also cannot run command listed in README on linux, though my error is different: $ elk elicit microsoft/deberta-v2-xxlarge-mnli imdb
Traceback (most recent call last):
...
File "/mnt/md1/nets/elk/elk/extraction/extraction.py", line 336, in extract
raise ValueError("Can only extract LM predictions from autoregressive models.")
ValueError: Can only extract LM predictions from autoregressive models. update: I found replacing the model with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
Hi there,
I was attempting to set up the application based on the Quick Start guide in the README. When trying to run the
elk elicit microsoft/deberta-v2-xxlarge-mnli imdb
command, the program terminates with a ValueError.Can you please help me understand what's going wrong and how I can fix it?
Thanks!
Steps to reproduce
Environment
Commands run
I also tried a couple of suggestions from @KayKozaronek, and got the same error:
elk elicit gpt2 boolq
--net
arg:elk elicit microsoft/deberta-v2-xxlarge-mnli imdb --net ccs
Error output
(Full stack trace at the bottom of this post)
Mitigation
GPT tells me we should fix this by replacing the following property from
sweep.py
with adefault_factory
, but without more context on the project I can't tell whether this is the right solution.Full stack trace
The text was updated successfully, but these errors were encountered: