EvalFlow is a plugin for EvalScope that simplifies model deployment and evaluation through a unified command-line interface. It handles both model serving and benchmark evaluation in one workflow.
python evalflow.py \
--conda_env /path/to/conda_env \
--work_dir /path/to/work_dir \
--eval_model_path /path/to/eval_model \
--eval_model_name eval_model_name \
--judge_model_name judge_model_name \
--judge_api_url judge_api_url \
--judge_api_key judge_api_keypython evalflow.py \
--work_dir /path/to/work_dir \
--deploy_backend remote \
--remote_api_url https://api.example.com/v1 \
--eval_model_name eval_model_name \
--judge_model_name judge_model_name \
--judge_api_url judge_api_url \
--judge_api_key judge_api_key--work_dir: Working directory for evaluation results and temporary files (required)--eval_model_name: Name(s) of the model(s) being evaluated (can specify multiple) (required)
--judge_model_name,--judge_api_url,--judge_api_key:- Required when
eval_backendisVLMEvalKitandvlmevalkit_modeis notinfer - Required when
eval_backendisNative - Not required when
eval_backendisVLMEvalKitandvlmevalkit_modeisinfer
- Required when
--conda_env: Required only whendeploy_backendisvllm,lmdeploy, orswift--eval_model_path: Required whendeploy_backendisvllm,lmdeploy, orswift--remote_api_url: Required whendeploy_backendisremote(supports multiple URLs)
--reuse: Whether to reuse existing results (True/False, default: True)--datasets: Space-separated list of datasets to evaluate (default: LogicVista MathVista_MINI WeMath MathVision MathVerse_MINI DynaMath)
--eval_max_model_length: Maximum context length for evaluation model (default: 32768)--eval_max_new_tokens: Maximum new tokens to generate (default: 2048)--eval_max_num_seqs: Maximum concurrent sequences for evaluation (default: 200)--eval_template: Path to chat template file (default: None)- Note for Swift users: When
deploy_backend=swift, this parameter should be the "Default Template" name from the Swift Supported Models documentation, not a file path. For example, if the model's Default Template is "qwen", set--eval_template qwen.
- Note for Swift users: When
--eval_system: System message for chat models (default: None)--eval_temperature: Sampling temperature (0.0 for deterministic) (default: 0.0)--eval_devices: Comma-separated GPU devices for evaluation (default: "0")--eval_host: Host address for evaluation service (default: "127.0.0.1")--eval_port: Port for evaluation service (default: 8000)--eval_api_key: API KEY for evaluation service (default: "EMPTY")
--judge_max_num_seqs: Maximum concurrent sequences for judging (default: 200)
--eval_backend: Evaluation backend (VLMEvalKitorNative, default:VLMEvalKit)--vlmevalkit_mode: VLMEvalKit evaluation mode (allorinfer, default:all)all: Full evaluation (inference + judging)infer: Only generate answers without judging
--deploy_backend: Model serving backend (vllm,lmdeploy,swift, orremote, default:vllm)- Recommendation: When evaluating models trained with the Swift framework, it's recommended to use
--deploy_backend swiftfor optimal compatibility and performance.
- Recommendation: When evaluating models trained with the Swift framework, it's recommended to use
--swift_infer_backend: Inference backend for Swift (only valid whendeploy_backend=swift):pytorch: Use PyTorch backend (default)vllm: Use vLLM backendlmdeploy: Use LMDeploy backend