You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cache_requests Type in main and the cache_requests Type in simple_evaluation are different.
In main, the type of cache_requests is string type, and in simple_evaluation, the type is boolean. Please check which one is correct.
If the string type used in main is correct, please also explain the meaning of each value.
main.py parser.add_argument( "--cache_requests", type=str, default=None, choices=["true", "refresh", "delete"], help="Speed up evaluation by caching the building of dataset requests.None if not caching.", )
The cache_requests Type in main and the cache_requests Type in simple_evaluation are different.
In main, the type of cache_requests is string type, and in simple_evaluation, the type is boolean. Please check which one is correct.
If the string type used in main is correct, please also explain the meaning of each value.
main.py
parser.add_argument( "--cache_requests", type=str, default=None, choices=["true", "refresh", "delete"], help="Speed up evaluation by caching the building of dataset requests.
Noneif not caching.", )
evaluator.py
def simple_evaluate( model, model_args: Optional[Union[str, dict]] = None, tasks: Optional[List[Union[str, dict, object]]] = None, num_fewshot: Optional[int] = None, batch_size: Optional[Union[int, str]] = None, max_batch_size: Optional[int] = None, device: Optional[str] = None, use_cache: Optional[str] = None, cache_requests: bool = False, rewrite_requests_cache: bool = False, delete_requests_cache: bool = False, limit: Optional[Union[int, float]] = None, bootstrap_iters: int = 100000, check_integrity: bool = False, write_out: bool = False, log_samples: bool = True, evaluation_tracker: Optional[EvaluationTracker] = None, system_instruction: Optional[str] = None, apply_chat_template: bool = False, fewshot_as_multiturn: bool = False, gen_kwargs: Optional[str] = None, task_manager: Optional[TaskManager] = None, verbosity: str = "INFO", predict_only: bool = False, random_seed: int = 0, numpy_random_seed: int = 1234, torch_random_seed: int = 1234, fewshot_random_seed: int = 1234, datetime_str: str = get_datetime_str(), cli_args=None, ):
The text was updated successfully, but these errors were encountered: