Skip to content

[Bug] 多模态场景input_tokens=0 #298

Closed

Description

@wenba0

操作系统及版本

20.04

安装工具的python环境

在anaconda/miniconda创建的python虚拟环境

python版本

3.10

AISBench工具版本

今天的源码

AISBench执行命令

ais_bench --models vllm_api_stream_chat --datasets textvqa_gen --debug --num-prompts 3 --num-warmups 0 -m perf

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

。。

预期行为

多模态场景,服务化返回的usage字段中包含了输入token的信息,但是aisbench端到端的打屏结果中仍然为0, 我打点查看了api类中的_parse_usage方法,服务化最后一个流式返回结果中包含了prompt_tokens,output.input_tokens也拿到了,但是最终结果为0,应该是后续哪个步骤又给置0了,需要排查!

实际行为

══════════════════════════╤═════════╤════════════════╤════════════════╤════════════════╤════════════════╤════════════════╤════════════════╤════════════════╤═════╕
│ Performance Parameters   │ Stage   │ Average        │ Min            │ Max            │ Median         │ P75            │ P90            │ P99            │  N  │
╞══════════════════════════╪═════════╪════════════════╪════════════════╪════════════════╪════════════════╪════════════════╪════════════════╪════════════════╪═════╡
│ E2EL                     │ total   │ 12290.1 ms     │ 1595.2 ms      │ 33181.9 ms     │ 2093.1 ms      │ 17637.5 ms     │ 26964.1 ms     │ 32560.1 ms     │  3  │
├──────────────────────────┼─────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼─────┤
│ TTFT                     │ total   │ 179.6 ms       │ 175.7 ms       │ 184.3 ms       │ 178.7 ms       │ 181.5 ms       │ 183.1 ms       │ 184.1 ms       │  3  │
├──────────────────────────┼─────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼─────┤
│ TPOT                     │ total   │ 12110.5 ms     │ 1419.5 ms      │ 32997.6 ms     │ 1914.4 ms      │ 17456.0 ms     │ 26781.0 ms     │ 32375.9 ms     │  3  │
├──────────────────────────┼─────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼─────┤
│ ITL                      │ total   │ 5190.2 ms      │ 390.8 ms       │ 21976.8 ms     │ 950.1 ms       │ 5992.5 ms      │ 15403.2 ms     │ 21319.5 ms     │  3  │
├──────────────────────────┼─────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼─────┤
│ InputTokens              │ total   │ 0.0            │ 0.0            │ 0.0            │ 0.0            │ 0.0            │ 0.0            │ 0.0            │  3  │
├──────────────────────────┼─────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼─────┤
│ OutputTokens             │ total   │ 2.0            │ 2.0            │ 2.0            │ 2.0            │ 2.0            │ 2.0            │ 2.0            │  3  │
├──────────────────────────┼─────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼─────┤
│ OutputTokenThroughput    │ total   │ 0.7565 token/s │ 0.0603 token/s │ 1.2538 token/s │ 0.9555 token/s │ 1.1046 token/s │ 1.1941 token/s │ 1.2478 token/s │  3  │
╘══════════════════════════╧═════════╧════════════════╧════════════════╧════════════════╧════════════════╧════════════════╧════════════════╧════════════════╧═════╛
╒═════════════════════════╤═════════╤════════════════╕
│ Common Metric           │ Stage   │ Value          │
╞═════════════════════════╪═════════╪════════════════╡
│ Benchmark Duration      │ total   │ 105637.1866 ms │
├─────────────────────────┼─────────┼────────────────┤
│ Total Requests          │ total   │ 3              │
├─────────────────────────┼─────────┼────────────────┤
│ Failed Requests         │ total   │ 0              │
├─────────────────────────┼─────────┼────────────────┤
│ Success Requests        │ total   │ 3              │
├─────────────────────────┼─────────┼────────────────┤
│ Concurrency             │ total   │ 0.349          │
├─────────────────────────┼─────────┼────────────────┤
│ Max Concurrency         │ total   │ 1              │
├─────────────────────────┼─────────┼────────────────┤
│ Request Throughput      │ total   │ 0.0284 req/s   │
├─────────────────────────┼─────────┼────────────────┤
│ Total Input Tokens      │ total   │ 0              │
├─────────────────────────┼─────────┼────────────────┤
│ Total Generated Tokens  │ total   │ 6              │
├─────────────────────────┼─────────┼────────────────┤
│ Input Token Throughput  │ total   │ 0.0 token/s    │
├─────────────────────────┼─────────┼────────────────┤
│ Output Token Throughput │ total   │ 0.0568 token/s │
├─────────────────────────┼─────────┼────────────────┤
│ Total Token Throughput  │ total   │ 0.0568 token/s │
╘═════════════════════════╧═════════╧════════════════╛

前置检查

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

Activity

  1. added
    bug
    on May 13, 2026
  2. self-assigned this
    on May 13, 2026
  3. github-actions commented on May 13, 2026

    @github-actions

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

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

    @github-actions

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

    问题内容检查结果

    检查状态

    FAIL

    详细检查

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

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

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

  5. added
    content_check_failed
    on May 13, 2026
  6. added theissue type on May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugcontent_check_failed

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions