Repository: modelscope/evalscope
Issue: R1类模型推理能力评测最佳实践中，函数返回没有结果
Root cause: Algorithmic Error

## 问题描述 / Issue Description

请简要描述您遇到的问题。 / Please briefly describe the issue you encountered.
R1类模型推理能力评测最佳实践中，函数返回没有结果

## EvalScope 版本 / Version (必须)
v0.13.2

## 使用的工具 / Tools Used
- [x] Native / 原生框架
- [ ] Opencompass backend
- [ ] VLMEvalKit backend
- [ ] RAGEval backend
- [ ] Perf / 模型推理压测工具
- [ ] Arena  /竞技场模式


## 执行的代码或指令 / Code or Commands Executed

请提供您执行的主要代码或指令。 / Please provide the main code or commands you executed. 例如 / For example:

```python
# R1类模型推理能力评测最佳实践
from evalscope import TaskConfig, run_task
from evalscope.constants import EvalType

task_cfg = TaskConfig(
    model='DeepSeek-R1-Distill-Qwen-7B',   # 模型名称 (需要与部署时的模型名称一致)
    api_url='http://192.168.104.110:8181/v1/chat/completions',  # 推理服务地址
    api_key='EMPTY',
    eval_type=EvalType.SERVICE,   # 评测类型，SERVICE表示评测推理服务
    limit = 5,
    work_dir="/workspace/client_ray/temp_dir/outputs",
    datasets=[
        'data_collection',  # 数据集名称(固定为data_collection表示使用混合数据集)
    ],
    dataset_args={
        "data_collection": {
                    "local_path": "/workspace/client_ray/temp_dir/llm_data/data_evalscope/R1-Distill-Math-Test/test.jsonl"}
    },
    eval_batch_size=32,       # 发送请求的并发数
    generation_config={       # 模型推理配置
        'max_tokens': 20000,  # 最大生成token数，建议设置为较大值避免输出截断
        'temperature': 0.6,   # 采样温度 (deepseek 报告推荐值)
        'top_p': 0.95,        # top-p采样 (deepseek 报告推荐值)
        'n': 5                # 每个请求产生的回复数量 (注意 lmdeploy 目前只支持 n=1)
    },
    stream=True               # 是否使用流式请求，推荐设置为True防止请求超时
)

result = run_task(task_cfg=task_cfg)
print("result = ",result)
```

## 错误日志 / Error Log

请粘贴完整的错误日志或控制台输出。 / Please paste the full error log or console output. 例如 / For example:

```
69212.94it/s]2025-04-03 15:30:47,206 - evalscope - INFO - subset_level Report:
+-----------+---------------+--------------+-------------+---------------+-------+
| task_type |    metric     | dataset_name | subset_name | average_score | count |
+-----------+---------------+--------------+-------------+---------------+-------+
|   math    | AveragePass@1 |   math_500   |   default   |      1.0      |   5   |
+-----------+---------------+--------------+-------------+---------------+-------+
2025-04-03 15:30:47,207 - evalscope - INFO - dataset_level Report:
+-----------+---------------+--------------+---------------+-------+
| task_type |    metric     | dataset_name | average_score | count |
+-----------+---------------+--------------+---------------+-------+
|   math    | AveragePass@1 |   math_500   |      1.0      |   5   |
+-----------+---------------+--------------+---------------+-------+
2025-04-03 15:30:47,207 - evalscope - INFO - task_level Report:
+-----------+---------------+---------------+-------+
| task_type |    metric     | average_score | count |
+-----------+---------------+---------------+-------+
|   math    | AveragePass@1 |      1.0      |   5   |
+-----------+---------------+---------------+-------+
2025-04-03 15:30:47,207 - evalscope - INFO - tag_level Report:
+------+---------------+---------------+-------+
| tags |    metric     | average_score | count |
+------+---------------+---------------+-------+
|  en  | AveragePass@1 |      1.0      |   5   |
+------+---------------+---------------+-------+
2025-04-03 15:30:47,207 - evalscope - INFO - category_level Report:
+-----------------+-----------+---------------+---------------+-------+
|    category0    | category1 |    metric     | average_score | count |
+-----------------+-----------+---------------+---------------+-------+
| DeepSeekDistill |   Math    | AveragePass@1 |      1.0      |   5   |
+-----------------+-----------+---------------+---------------+-------+
result =  {'test': None}
```

**result =  {'test': None},无结果**

## 运行环境 / Runtime Environment

- 操作系统 / Operating System:
  - [ ] Windows
  - [ ] macOS
  - [x] Ubuntu

- Python版本 / Python Version:
  - [ ] 3.11
  - [x] 3.10
  - [ ] 3.9


## 其他信息 / Additional Information

如果有其他相关信息，请在此处提供。 / If there is any other relevant information, please provide it here.


main分支代码已修复该问题