Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
92e5632e
Commit
92e5632e
authored
Mar 23, 2023
by
Jiaxin Shan
Browse files
Change device parameter to cuda:0 to avoid runtime error
parent
83dbfbf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
README.md
README.md
+3
-3
No files found.
README.md
View file @
92e5632e
...
...
@@ -37,7 +37,7 @@ python main.py \
--model
hf-causal
\
--model_args
pretrained
=
EleutherAI/gpt-j-6B
\
--tasks
lambada_openai,hellaswag
\
--device
0
--device
cuda:
0
```
Additional arguments can be provided to the model constructor using the
`--model_args`
flag. Most notably, this supports the common practice of using the
`revisions`
feature on the Hub to store partialy trained checkpoints:
...
...
@@ -47,7 +47,7 @@ python main.py \
--model
hf-causal
\
--model_args
pretrained
=
EleutherAI/pythia-160m,revision
=
step100000
\
--tasks
lambada_openai,hellaswag
\
--device
0
--device
cuda:
0
```
To evaluate models that are called via
`AutoSeq2SeqLM`
, you instead use
`hf-seq2seq`
.
...
...
@@ -111,7 +111,7 @@ python main.py \
--model
gpt2
\
--tasks
sciq
\
--decontamination_ngrams_path
path/containing/training/set/ngrams
\
--device
0
--device
cuda:
0
```
## Cite as
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment