Files
Hamish IvisonandGitHub a7ed4a7056 Properly set max length for eval (#548)
* set oe-eval len for max gen tok

* allow setting eval length

* by default allow vllm long len

* forcibly never truncate context

* vllm long lens

* fix
2025-02-04 11:46:49 -08:00

63 lines
1.6 KiB
YAML

version: v2
description: open-instruct-eval-default
budget: ai2/oe-adapt
retry:
allowedTaskRetries: 2
tasks:
- name: open-instruct-eval-default
image:
beaker: Yizhongw03/open-instruct
command: [
'/bin/sh', '-c'
]
arguments: ['python -m eval.mmlu.run_eval
--ntrain 5
--data_dir /data/mmlu/
--save_dir /output/
--model_name_or_path /model
--tokenizer_name_or_path /model
--eval_batch_size 4
--load_in_8bit
--use_chat_format
--chat_formatting_function eval.templates.create_prompt_with_tulu_chat_format
']
envVars:
- name: CUDA_DEVICE_ORDER
value: PCI_BUS_ID
- name: TRANSFORMERS_CACHE
value: ./cache/
- name: WANDB_PROJECT
value: open-instruct
- name: WANDB_WATCH
value: false
- name: WANDB_LOG_MODEL
value: false
- name: WANDB_DISABLED
value: true
- name: OPENAI_API_KEY
secret: openai_api_key
- name: HF_TOKEN
secret: HF_TOKEN
- name: VLLM_ALLOW_LONG_MAX_MODEL_LEN
value: 1
datasets:
- mountPath: /data/
source:
beaker: hamishivi/open-instruct-eval-data
- mountPath: /model
source:
beaker: 01GVYXDGJC6DV0JW9JZ16YM07G
# - mountPath: /net/nfs.cirrascale
# source:
# hostPath: /net/nfs.cirrascale
result:
# Beaker will capture anything that's written to this location and store it in the results
# dataset.
path: /output
resources:
gpuCount: 1
constraints:
cluster: ai2/allennlp-cirrascale
context:
priority: high
preemptible: false