def cfg(self, foundry_dir: str) -> DictConfig:
        """Create YAML cfg fixture for testing purposes."""
        conf_path: str = os.path.join(
            foundry_dir,
            'scripts/eval/yamls/mpt_eval.yaml',
        )
        with open(conf_path, 'r', encoding='utf-8') as config:
            test_cfg = om.load(config)

        test_cfg.icl_tasks[0].dataset_uri = os.path.join(
            foundry_dir,
            'scripts',
            test_cfg.icl_tasks[0].dataset_uri,
        )

        # make tests use cpu initialized transformer models only
        test_cfg.models[0].model.init_device = 'cpu'
        test_cfg.models[0].model.attn_config.attn_impl = 'torch'
        test_cfg.models[0].model.loss_fn = 'torch_crossentropy'
        test_cfg.precision = 'fp32'
        assert isinstance(test_cfg, DictConfig)
        return test_cfg
Create YAML cfg fixture for testing purposes.
tests/a_scripts/eval/test_eval_inputs.py