"Instruct model detected, but chat template not applied. Recommend setting `apply_chat_template` (optionally `fewshot_as_multiturn`)."
"Model appears to be an instruct variant but chat template is not applied. Recommend setting `apply_chat_template` (optionally `fewshot_as_multiturn`)."
f"The value of `model` passed to simple_evaluate() was of type {type(config.model)}, but is required to be a subclass of lm_eval.api.model.LM . This may be because you are passing an initialized Hugging Face PreTrainedModel without having wrapped it in `lm_eval.models.huggingface.HFLM(pretrained=my_model)` first."
f"The value of `model` passed to simple_evaluate() was of type {type(model)}, but is required to be a subclass of lm_eval.api.model.LM . This may be because you are passing an initialized Hugging Face PreTrainedModel without having wrapped it in `lm_eval.models.huggingface.HFLM(pretrained=my_model)` first."
)
)
eval_logger.info("Using pre-initialized model")
eval_logger.info("Using pre-initialized model")
lm=config.model
lm=model
ifconfig.use_cacheisnotNone:
ifuse_cacheisnotNone:
eval_logger.info(
eval_logger.info(f"Using cache at {use_cache+'_rank'+str(lm.rank)+'.db'}")
f"Using cache at {config.use_cache+'_rank'+str(lm.rank)+'.db'}"
)
lm=lm_eval.api.model.CachingLM(
lm=lm_eval.api.model.CachingLM(
lm,
lm,
config.use_cache
use_cache
# each rank receives a different cache db.
# each rank receives a different cache db.
# necessary to avoid multiple writes to cache at once
# necessary to avoid multiple writes to cache at once
f"Attempted to run tasks: {incompatible_tasks} which require multimodal input, but the selected model type does not currently implement this. Multimodal support is currently restricted to the ['hf-multimodal', 'vllm-vlm'] model type."
f"Attempted to run tasks: {incompatible_tasks} which require multimodal input, but the selected model type does not currently implement this. Multimodal support is currently restricted to the ['hf-multimodal', 'vllm-vlm'] model type."
)
)
else:
raiseValueError(
f"Attempted to run tasks: {incompatible_tasks} which are text-only, but used a model type which only currently supports multimodal tasks."