example_ci_config.yaml 1.06 KB
Newer Older
Baber's avatar
Baber committed
1
2
3
4
5
6
# Language Model Evaluation Harness Configuration File
#
# This YAML configuration file allows you to specify evaluation parameters
# instead of passing them as command-line arguments.
#
# Usage:
7
#   $ lm_eval --config templates/example_ci_config.yaml
Baber's avatar
Baber committed
8
#
9
# You can override any values in this config with further command-line arguments:
10
#   $ lm_eval --config templates/example_ci_config.yaml --model_args pretrained=gpt2 --tasks mmlu
Baber's avatar
Baber committed
11
#
12
# For expected types and values, refer to EvaluatorConfig in lm_eval/config/evaluate_config.py
Baber's avatar
Baber committed
13
14
15
# All parameters are optional and have the same meaning as their CLI counterparts.

model: hf
16
model_args:
Baber's avatar
Baber committed
17
18
19
20
  pretrained: EleutherAI/pythia-14m
  dtype: float16
tasks:
  - hellaswag
21
  - arc_easy
22
23
24
25
batch_size: 1
trust_remote_code: true
log_samples: true
output_path: ./test
26
27
28
gen_kwargs:
  do_sample: true
  temperature: 0.7
29
  stop: ["\n", "<|endoftext|>"]
30
31
32
33
34
35
samples:
  hellaswag: [1,2,3,4,5,6,7,8,9,10]
  arc_easy: [10,20,30,40,50,60,70,80,90,100]
metadata:
  name: Example CI Config
  description: This is an example configuration file for testing purposes.