Skip to content

Commit

Permalink
1810 move gemma evaluation (#1819)
Browse files Browse the repository at this point in the history
  • Loading branch information
malinjawi authored Oct 13, 2024
1 parent 7744608 commit c70ad29
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
39 changes: 39 additions & 0 deletions recipes/configs/gemma/evaluation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Config for EleutherEvalRecipe in eleuther_eval.py
#
# To launch, run the following command:
# tune run eleuther_eval --config gemma/evaluation

# Model Arguments
model:
_component_: torchtune.models.gemma.gemma_2b

# Checkpointer
checkpointer:
_component_: torchtune.training.FullModelHFCheckpointer
checkpoint_dir: /tmp/gemma-2b
checkpoint_files: [
model-00001-of-00002.safetensors,
model-00002-of-00002.safetensors,
]
output_dir: ./ # Not needed
model_type: GEMMA

# Tokenizer
tokenizer:
_component_: torchtune.models.gemma.gemma_tokenizer
path: /tmp/gemma-2b/tokenizer.model

# Environment
device: cuda
dtype: bf16
seed: 1234 # It is not recommended to change this seed, b/c it matches EleutherAI's default seed

# EleutherAI specific eval args
tasks: ["truthfulqa_mc2"]
limit: null
max_seq_length: 4096
batch_size: 8
enable_kv_cache: True

# Quantization specific args
quantizer: null
4 changes: 4 additions & 0 deletions torchtune/_recipe_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,10 @@ class Recipe:
name="qwen2/evaluation",
file_path="qwen2/evaluation.yaml",
),
Config(
name="gemma/evaluation",
file_path="gemma/evaluation.yaml",
),
],
supports_distributed=False,
),
Expand Down

0 comments on commit c70ad29

Please sign in to comment.