Skip to content

[bug] 快速入门https://ais-bench-benchmark.readthedocs.io/zh-cn/latest/get_started/quick_start.html中,gsm8k精度测评误判 #483

Closed

Description

@awqefcb

操作系统及版本

Ubuntu 22.04.5 LTS

安装工具的python环境

docker容器中的python环境

python版本

其他

AISBench工具版本

3.1.0

AISBench执行命令

ais_bench --models vllm_api_general_chat --datasets demo_gsm8k_gen_4_shot_cot_chat_prompt --dump-eval-details

模型配置文件或自定义配置文件内容

benchmark/ais_bench/benchmark/configs/models/vllm_api/vllm_api_general_chat.py内容如下:

from ais_bench.benchmark.models import VLLMCustomAPIChat
from ais_bench.benchmark.utils.postprocess.model_postprocessors import extract_non_reasoning_content

models = [
dict(
attr="service",
type=VLLMCustomAPIChat,
abbr="vllm-api-general-chat",
path="/data/models/Qwen3-8B",
model="",
stream=False,
request_rate=0,
use_timestamp=False,
retry=2,
api_key="",
host_ip="localhost",
host_port=8002,
url="",
# vllm 服务 max_model_len=8192,max_tokens 不能超过它,否则返回 400 Bad Request
max_out_len=4096,
batch_size=1,
trust_remote_code=False,
generation_kwargs=dict(
temperature=0.01,
ignore_eos=False,
),
pred_postprocessor=dict(type=extract_non_reasoning_content),
)
]

预期行为

观察输出的outputs/default/20260821_083854/results/vllm-api-general-chat/demo_gsm8k.json文件,可以看到如下内容:
"2": {
"prompt": [
{
"role": "HUMAN",
"prompt": "Question: Angelo and Melanie want to plan how many hours over the next week they should study together for their test next week. They have 2 chapters of their textbook to study and 4 worksheets to memorize. They figure out that they should dedicate 3 hours to each chapter of their textbook and 1.5 hours for each worksheet. If they plan to study no more than 4 hours each day, how many days should they plan to study total over the next week if they take a 10-minute break every hour, include 3 10-minute snack breaks each day, and 30 minutes for lunch each day?\nLet's think step by step\nAnswer:"
},
{
"role": "BOT",
"prompt": "Angelo and Melanie think they should dedicate 3 hours to each of the 2 chapters, 3 hours x 2 chapters = 6 hours total.\nFor the worksheets they plan to dedicate 1.5 hours for each worksheet, 1.5 hours x 4 worksheets = 6 hours total.\nAngelo and Melanie need to start with planning 12 hours to study, at 4 hours a day, 12 / 4 = 3 days.\nHowever, they need to include time for breaks and lunch. Every hour they want to include a 10-minute break, so 12 total hours x 10 minutes = 120 extra minutes for breaks.\nThey also want to include 3 10-minute snack breaks, 3 x 10 minutes = 30 minutes.\nAnd they want to include 30 minutes for lunch each day, so 120 minutes for breaks + 30 minutes for snack breaks + 30 minutes for lunch = 180 minutes, or 180 / 60 minutes per hour = 3 extra hours.\nSo Angelo and Melanie want to plan 12 hours to study + 3 hours of breaks = 15 hours total.\nThey want to study no more than 4 hours each day, 15 hours / 4 hours each day = 3.75\nThey will need to plan to study 4 days to allow for all the time they need.\nThe answer is 4\n"
},
{
"role": "HUMAN",
"prompt": "Question: Mark's basketball team scores 25 2 pointers, 8 3 pointers and 10 free throws. Their opponents score double the 2 pointers but half the 3 pointers and free throws. What's the total number of points scored by both teams added together?\nLet's think step by step\nAnswer:"
},
{
"role": "BOT",
"prompt": "Mark's team scores 25 2 pointers, meaning they scored 252= 50 points in 2 pointers.\nHis team also scores 6 3 pointers, meaning they scored 83= 24 points in 3 pointers\nThey scored 10 free throws, and free throws count as one point so they scored 101=10 points in free throws.\nAll together his team scored 50+24+10= 84 points\nMark's opponents scored double his team's number of 2 pointers, meaning they scored 502=100 points in 2 pointers.\nHis opponents scored half his team's number of 3 pointers, meaning they scored 24/2= 12 points in 3 pointers.\nThey also scored half Mark's team's points in free throws, meaning they scored 10/2=5 points in free throws.\nAll together Mark's opponents scored 100+12+5=117 points\nThe total score for the game is both team's scores added together, so it is 84+117=201 points\nThe answer is 201\n"
},
{
"role": "HUMAN",
"prompt": "Question: Bella has two times as many marbles as frisbees. She also has 20 more frisbees than deck cards. If she buys 2/5 times more of each item, what would be the total number of the items she will have if she currently has 60 marbles?\nLet's think step by step\nAnswer:"
},
{
"role": "BOT",
"prompt": "When Bella buys 2/5 times more marbles, she'll have increased the number of marbles by 2/560 = 24\nThe total number of marbles she'll have is 60+24 = 84\nIf Bella currently has 60 marbles, and she has two times as many marbles as frisbees, she has 60/2 = 30 frisbees.\nIf Bella buys 2/5 times more frisbees, she'll have 2/530 = 12 more frisbees.\nThe total number of frisbees she'll have will increase to 30+12 = 42\nBella also has 20 more frisbees than deck cards, meaning she has 30-20 = 10 deck cards\nIf she buys 2/5 times more deck cards, she'll have 2/510 = 4 more deck cards.\nThe total number of deck cards she'll have is 10+4 = 14\nTogether, Bella will have a total of 14+42+84 = 140 items\nThe answer is 140\n"
},
{
"role": "HUMAN",
"prompt": "Question: A group of 4 fruit baskets contains 9 apples, 15 oranges, and 14 bananas in the first three baskets and 2 less of each fruit in the fourth basket. How many fruits are there?\nLet's think step by step\nAnswer:"
},
{
"role": "BOT",
"prompt": "For the first three baskets, the number of apples and oranges in one basket is 9+15=24\nIn total, together with bananas, the number of fruits in one basket is 24+14=38 for the first three baskets.\nSince there are three baskets each having 38 fruits, there are 3
38=114 fruits in the first three baskets.\nThe number of apples in the fourth basket is 9-2=7\nThere are also 15-2=13 oranges in the fourth basket\nThe combined number of oranges and apples in the fourth basket is 13+7=20\nThe fourth basket also contains 14-2=12 bananas.\nIn total, the fourth basket has 20+12=32 fruits.\nThe four baskets together have 32+114=146 fruits.\nThe answer is 146\n"
},
{
"role": "HUMAN",
"prompt": "Question: Josh decides to try flipping a house. He buys a house for $80,000 and then puts in $50,000 in repairs. This increased the value of the house by 150%. How much profit did he make?\nLet's think step by step\nAnswer:"
}
],
"origin_prediction": "\nOkay, let's see. Josh bought a house for $80,000 and then spent $50,000 on repairs. The value increased by 150% because of those repairs. I need to find out his profit.\n\nFirst, I should figure out the total cost he incurred. That would be the purchase price plus the repair costs. So, $80,000 plus $50,000 equals $130,000 total cost.\n\nNow, the value increased by 150%. Wait, does that mean the value increased by 150% of the original value, or 150% of the total cost? Hmm, the problem says "this increased the value of the house by 150%." The "this" refers to the repairs. So maybe the increase is 150% of the original value. Let me think.\n\nOriginal value of the house was $80,000. If the value increased by 150%, then the new value would be original value plus 150% of original value. So that's 80,000 + (1.5 * 80,000) = 80,000 + 120,000 = $200,000. Wait, but that seems like a lot. Alternatively, maybe the increase is 150% of the total cost? But that might not make sense. The problem says "increased the value of the house by 150%." Typically, when something increases by a percentage, it's based on the original value. So I think the original value is $80,000, and the increase is 150% of that, making the new value $200,000.\n\nBut wait, he also spent $50,000 on repairs. Does that affect the value? The problem says the repairs increased the value by 150%. So maybe the total value after repairs is original value plus 150% of the original value. So that's 80,000 * 1.5 = 120,000 increase, so total value is 80,000 + 120,000 = 200,000. But then, the $50,000 in repairs is part of his cost, not part of the value. So his total cost is 80k + 50k = 130k. The selling price would be 200k. So profit is 200k - 130k = 70k. So the profit is $70,000.\n\nWait, but maybe the 150% increase is based on the total cost? Let me check again. The problem says "This increased the value of the house by 150%." The "this" refers to the repairs. So the repairs caused the value to increase by 150% of the original value. So original value is 80k, increase is 150% of that, so 120k, making the new value 200k. So selling price is 200k. His total cost is 80k + 50k = 130k. Profit is 200k - 130k = 70k. So the answer should be $70,000.\n\nAlternatively, maybe the 150% is based on the total cost? Let me see. If the value increased by 150% of the total cost, which is 130k, then the increase would be 1.5 * 130k = 195k, so total value would be 80k + 195k = 275k. Then profit would be 275k - 130k = 145k. But that seems less likely because the problem says "increased the value of the house by 150%", which usually refers to the original value. So I think the first calculation is correct. So profit is $70,000.\n\n\nJosh buys a house for $80,000 and spends $50,000 on repairs, totaling $130,000 in costs. The repairs increase the house's value by 150% of the original value ($80,000). \n\n1. Calculate the value increase: \n $150\% \text{ of } 80,000 = 1.5 \times 80,000 = 120,000$. \n New value of the house: $80,000 + 120,000 = 200,000$. \n\n2. Determine profit: \n Profit = Selling price - Total cost \n $200,000 - 130,000 = 70,000$. \n\nAnswer: The profit is $70,000.",
"predictions": [
"000"
],
"references": [
"70000"
],
"correct": [
false
]
},
其中模型输出Answer:The profit is $70,000,但被解析为000,判断此题错误。

实际行为

应当判断此题模型输出结果正确。

已经在FAQ中看到了标题为“模型输出中包含正确答案,但精度计算结果异常”的FAQ,给出的解释是“”aisbench基于特定的匹配规则从模型回答中提取正确答案,可能存在case,人工能从模型回答中识别正确答案,但是却不满足aisbench的匹配规则,导致精度计算结果为空。“

但这个匹配规则认为实际”$70,000”的输出结果与期望的”70000“不同,回答错误,是否匹配规则需要更新,使之更符合人类直觉?

前置检查

  • 我已读懂主页文档的快速入门,无法解决问题
  • 我已检索过FAQ,无重复问题
  • 我已搜索过现有Issue,无重复问题
  • 我已更新到最新版本,问题仍存在

Activity

  1. added
    bug
    on Aug 21, 2026
  2. github-actions commented on Aug 21, 2026

    @github-actions

    🌟欢迎给AISBench benchmark测评工具提issue,您可以先尝试以下途径寻求issue的解决方法:

    1. 【强烈推荐❤️‍🔥】确保issue描述完整后,可以试着将issue交给Ask DeepWiki回答,deepwiki包含了和工具相关的所有知识库
    2. 在 工具历史issue 中通过问题的关键日志片段或关键词检索相似issue
    3. 在 官方文档 的搜索栏中通过问题的关键日志片段或关键词检索
    4. 寻求仓库维护者的帮助(issue评论区中 @SJTUyh)
  3. github-actions commented on Aug 21, 2026

    @github-actions

    🤖 基于AI机器人的issue内容完整性检查结果:

    问题内容检查结果

    检查状态

    PASS

    详细检查

    • 操作系统及版本: COMPLETE
    • 安装工具的python环境: COMPLETE
    • python版本: COMPLETE
    • AISBench工具版本: COMPLETE
    • AISBench执行命令: COMPLETE
    • 模型配置文件或自定义配置文件内容: COMPLETE
    • 实际行为: COMPLETE

    改进建议

    所有内容已完备!

    补充说明

    该Issue内容详尽,包含了所有必需的信息,并且提供了详细的复现步骤、模型配置以及对预期行为和实际行为的清晰描述,甚至引用了FAQ并提出了改进建议,非常有助于问题的排查和解决。

    👉 如果想重新检查,在评论区@issue_checker即可。

    【强烈推荐❤️‍🔥】确保issue描述完整后,可以试着将issue交给Ask DeepWiki回答,deepwiki包含了和工具相关的所有知识库

  4. added
    content_check_passed
    on Aug 21, 2026
  5. changed the title [-][Bug] 快速入门https://ais-bench-benchmark.readthedocs.io/zh-cn/latest/get_started/quick_start.html中,gsm8k精度测评误判[/-] [+][疑问] 快速入门https://ais-bench-benchmark.readthedocs.io/zh-cn/latest/get_started/quick_start.html中,gsm8k精度测评误判[/+] on Aug 21, 2026
  6. github-actions commented on Aug 21, 2026

    @github-actions

    🤖 基于AI机器人的issue内容完整性检查结果:

    问题内容检查结果

    检查状态

    PASS

    详细检查

    • 操作系统及版本: COMPLETE
    • 安装工具的python环境: COMPLETE
    • python版本: COMPLETE
    • AISBench工具版本: COMPLETE
    • AISBench执行命令: COMPLETE
    • 模型配置文件或自定义配置文件内容: COMPLETE
    • 实际行为: COMPLETE

    改进建议

    所有内容已完备!

    补充说明

    该Issue内容完整,信息充足,并且包含了对问题的详细描述、复现步骤、预期行为和实际行为,以及对现有FAQ的引用和进一步的思考,非常有助于问题的理解和解决。

    👉 如果想重新检查,在评论区@issue_checker即可。

    【强烈推荐❤️‍🔥】确保issue描述完整后,可以试着将issue交给Ask DeepWiki回答,deepwiki包含了和工具相关的所有知识库

  7. changed the title [-][疑问] 快速入门https://ais-bench-benchmark.readthedocs.io/zh-cn/latest/get_started/quick_start.html中,gsm8k精度测评误判[/-] [+][bug] 快速入门https://ais-bench-benchmark.readthedocs.io/zh-cn/latest/get_started/quick_start.html中,gsm8k精度测评误判[/+] on Aug 21, 2026
  8. github-actions commented on Aug 21, 2026

    @github-actions

    🤖 基于AI机器人的issue内容完整性检查结果:

    问题内容检查结果

    检查状态

    PASS

    详细检查

    • 操作系统及版本: COMPLETE
    • 安装工具的python环境: COMPLETE
    • python版本: COMPLETE

    👉 如果想重新检查,在评论区@issue_checker即可。

    【强烈推荐❤️‍🔥】确保issue描述完整后,可以试着将issue交给Ask DeepWiki回答,deepwiki包含了和工具相关的所有知识库

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcontent_check_passed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions