in src/lighteval/pipeline.py [0:0]
def __post_init__(self): # noqa C901
if self.launcher_type == ParallelismManager.ACCELERATE:
if not is_accelerate_available():
raise ImportError(NO_ACCELERATE_ERROR_MSG)
elif self.launcher_type == ParallelismManager.VLLM:
if not is_vllm_available():
raise ImportError(NO_VLLM_ERROR_MSG)
elif self.launcher_type == ParallelismManager.SGLANG:
if not is_sglang_available():
raise ImportError(NO_SGLANG_ERROR_MSG)
elif self.launcher_type == ParallelismManager.TGI:
if not is_tgi_available():
raise ImportError(NO_TGI_ERROR_MSG)
elif self.launcher_type == ParallelismManager.NANOTRON:
if not is_nanotron_available():
raise ImportError(NO_NANOTRON_ERROR_MSG)
elif self.launcher_type == ParallelismManager.OPENAI:
if not is_openai_available():
raise ImportError(NO_OPENAI_ERROR_MSG)