Skip to content

用CLI推理时,有办法能在推理结果中保存输入的dataset中的额外参数嘛? #4693

Open
@yyyhhl

Description

@yyyhhl

我的命令是NPROC_PER_NODE=1 swift infer --model /workdir/model_path/Qwen3-0.6B --infer_backend pt --val_dataset /workdir/dataset_to_infer.jsonl --result_path /workdir/result_from_infer.jsonl
比如我的dataset是这个,我想把其中的id也保存在推理结果result_from_infer.jsonl文件中,现在支持嘛?支持的话应该加上哪个参数呢?因为swift推理会过滤非法数据行,所以想加个id方便回溯哪些行被过滤了

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions