Skip to content

Infer Issue #9626

Description

@After-lifes

Checklist / 检查清单

  • I have searched existing issues, and this is a new question or discussion topic. / 我已经搜索过现有的 issues,确认这是一个新的问题与讨论。

Question Description / 问题描述

ms-swift==4.0.4 transformers==4.57.6
微调Qwen2.5-VL-7B-Instruct后,使用以下命令进行推理,val_dataset为2000条数据,推理时在0-1000正常,但到1000-2000时,推理速度会很慢。
CUDA_VISIBLE_DEVICES=0,1
NPROC_PER_NODE=2
MAX_PIXELS=501760
swift infer
--adapters "./xxxx"
--val_dataset './xxxx.jsonl'
--result_path './xxxx.jsonl'
--max_new_tokens 8192
--infer_backend transformers
--max_batch_size 8

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions