Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

你好,关于我模型训练一天,但进度只有1%,这样的速度正常吗? #484

Open
tomhas-hub opened this issue Aug 9, 2023 · 0 comments

Comments

@tomhas-hub
Copy link

我训练的模型是BELLE-7B-0.2M,使用你们示例提供的school_math作为数据集,使用的训练命令如下:
torchrun --nproc_per_node 1 src/entry_point/sft_train.py
--ddp_timeout 36000
--model_name_or_path ${model_name_or_path}
--use_lora
--deepspeed configs/deepspeed_config_stage3.json
--lora_config configs/lora_config_bloom.json
--train_file ${train_file}
--validation_file ${validation_file}
--per_device_train_batch_size 1
--per_device_eval_batch_size 1
--gradient_accumulation_steps 1
--num_train_epochs 10
--model_max_length ${cutoff_len}
--save_strategy "steps"
--save_total_limit 3
--learning_rate 3e-4
--weight_decay 0.00001
--warmup_ratio 0.01
--lr_scheduler_type "cosine"
--logging_steps 10
--evaluation_strategy "steps"
--bf16
--seed 1234
--gradient_checkpointing
--cache_dir ${cache_dir}
--output_dir ${output_dir} \

以下为显存占用情况:
2023-08-09 16-19-33屏幕截图

请问我该如何加速训练呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant