Skip to content

[BUG]: "OverflowError: int too big to convert" during SFT training using Bloom model #3438

@chengeharrison

Description

@chengeharrison

🐛 Describe the bug

torchrun --standalone --nproc_per_node=2 train_sft.py \
    --pretrain "bigscience/bloom-560m" \
    --model 'bloom' \
    --strategy ddp \
    --log_interval 10 \
    --save_path  "./output/" \
    --dataset "/data/users/lcxyc/instinwild_ch.json" \
    --batch_size 2 \
    --accimulation_steps 8 \
    --lr 2e-5 \
    --max_datasets_size 512 \
    --max_epochs 1 \

When building the SFT dataset, the error occurs.

Environment

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions