Skip to content

Qwen3-VL-8B推理问题 #7335

@mxw20010804

Description

@mxw20010804

"""
CUDA_VISIBLE_DEVICES=0,1,2,3 swift infer
--model /QwenVL/Qwen3-VL-8B-Instruct
--infer_backend pt
--max_new_tokens 512
--result_path ""
--val_dataset ""
--temperature 0.7
--max_batch_size 24
--model_type qwen3_vl
"""

在4卡A100/8卡H20中切换max_batch_size为1和24都无法加速推理,而且当max_batch_size为24时,随着推理到800多条的时候会爆显存。
在增加显卡和增大max_batch_size时都无法加速推理,请问应该如何加速推理?可以给我一个具体的命令吗

torch 2.6.0+cu124
swift 3.12.0
transformers 4.57.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions