Skip to content

How to specify the split (train/validation) for the dataset in cli #3789

Description

@ma7555

How can I specify the split to use for training and validation?

CUDA_VISIBLE_DEVICES=0 MAX_PIXELS=262144 \
swift sft \
    --model LLM-Research/gemma-3-1b-it \
    --train_type full \
    --dataset 'swift/path-vqa#train' \
    --val_dataset 'swift/path-vqa#validation' \
    --torch_dtype bfloat16 \
    --num_train_epochs 3 \

Of course this will fail as #train is treated as a subset not a split. How can I specify the split?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions