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
OpenDAS
opencompass
Commits
9a164489
Unverified
Commit
9a164489
authored
Jul 17, 2023
by
Leymore
Committed by
GitHub
Jul 17, 2023
Browse files
[Fix] eval_llama_7b (#68)
parent
edb23d15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
16 deletions
+1
-16
configs/eval_llama_7b.py
configs/eval_llama_7b.py
+1
-16
No files found.
configs/eval_llama_7b.py
View file @
9a164489
...
@@ -3,22 +3,7 @@ from mmengine.config import read_base
...
@@ -3,22 +3,7 @@ from mmengine.config import read_base
with
read_base
():
with
read_base
():
from
.datasets.piqa.piqa_ppl
import
piqa_datasets
from
.datasets.piqa.piqa_ppl
import
piqa_datasets
from
.datasets.siqa.siqa_gen
import
siqa_datasets
from
.datasets.siqa.siqa_gen
import
siqa_datasets
from
.models.hf_llama_7b
import
models
datasets
=
[
*
piqa_datasets
,
*
siqa_datasets
]
datasets
=
[
*
piqa_datasets
,
*
siqa_datasets
]
from
opencompass.models
import
HuggingFaceCausalLM
models
=
[
dict
(
type
=
HuggingFaceCausalLM
,
path
=
'huggyllama/llama-7b'
,
tokenizer_path
=
'huggyllama/llama-7b'
,
tokenizer_kwargs
=
dict
(
padding_side
=
'left'
,
truncation_side
=
'left'
),
max_seq_len
=
2048
,
abbr
=
'llama-7b'
,
max_out_len
=
100
,
batch_size
=
16
,
run_cfg
=
dict
(
num_gpus
=
1
),
)
]
\ No newline at end of file
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