mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00
[Fix] eval_llama_7b (#68)
This commit is contained in:
parent
edb23d15d1
commit
9a16448905
@ -3,22 +3,7 @@ from mmengine.config import read_base
|
||||
with read_base():
|
||||
from .datasets.piqa.piqa_ppl import piqa_datasets
|
||||
from .datasets.siqa.siqa_gen import siqa_datasets
|
||||
from .models.hf_llama_7b import models
|
||||
|
||||
|
||||
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),
|
||||
)
|
||||
]
|
Loading…
Reference in New Issue
Block a user