Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bmosaicml committed Feb 2, 2024
1 parent 9e31ec0 commit 59f1de0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions llmfoundry/utils/builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,9 +507,8 @@ def _validate_cfg(icl_cfg: DictConfig):
dist.barrier()
early_stopping_criteria = icl_cfg.get('early_stopping_criteria',
None)
# early_stopping_criteria = list(
# early_stopping_criteria
# ) if early_stopping_criteria is not None else None
if isinstance(early_stopping_criteria, ListConfig):
early_stopping_criteria = om.to_container(early_stopping_criteria)
dataloaders = get_icl_task_dataloader(
icl_cfg.icl_task_type,
icl_cfg.dataset_uri,
Expand Down
3 changes: 1 addition & 2 deletions scripts/eval/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,7 @@ def main(cfg: DictConfig) -> Tuple[List[Trainer], pd.DataFrame]:
# Mandatory Evaluation Parameters
icl_tasks: Union[str, ListConfig] = pop_config(cfg,
'icl_tasks',
must_exist=True,
convert=True)
must_exist=True)
max_seq_len: int = pop_config(cfg, 'max_seq_len', must_exist=True)
device_eval_batch_size: int = pop_config(cfg,
'device_eval_batch_size',
Expand Down
2 changes: 1 addition & 1 deletion scripts/eval/yamls/hf_eval.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ models:
model:
name: hf_causal_lm
pretrained_model_name_or_path: ${model_name_or_path}
init_device: mixed
init_device: cpu
pretrained: true
tokenizer:
name: ${model_name_or_path}
Expand Down

0 comments on commit 59f1de0

Please sign in to comment.