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

UserWarning: None of the inputs have requires_grad=True. Gradients will be None #6357

Closed
1 task done
wangchunhui06 opened this issue Dec 17, 2024 · 2 comments
Closed
1 task done
Labels
solved This problem has been already solved

Comments

@wangchunhui06
Copy link

Reminder

  • I have read the README and searched the existing issues.

System Info

_env/lib/python3.10/site-packages/torch/utils/checkpoint.py:87: UserWarning: None of the inputs have requires_grad=True. Gradients will be None

Reproduction

CUDA_VISIBLE_DEVICES=0 llamafactory-cli train
--model_name_or_path /model/llama_3.2v_11B
--stage sft
--do_train true
--finetuning_type full
--freeze_vision_tower true
--train_mm_proj_only false
--dataset llava_cot_train
--template mllama
--cutoff_len 2048
--max_samples 1000
--overwrite_cache true
--preprocessing_num_workers 16
--output_dir /saves/llama_3.2v_11B/full/sft
--logging_steps 10
--save_steps 500
--plot_loss true
--overwrite_output_dir true
--per_device_train_batch_size 4
--gradient_accumulation_steps 1
--learning_rate 1.0e-5
--num_train_epochs 3
--lr_scheduler_type cosine
--warmup_ratio 0.1
--bf16 true
--ddp_timeout 180000000
--val_size 0.1
--per_device_eval_batch_size 1
--eval_strategy steps
--eval_steps 500

Expected behavior

解决问题

Others

@github-actions github-actions bot added the pending This problem is yet to be addressed label Dec 17, 2024
@hiyouga
Copy link
Owner

hiyouga commented Dec 17, 2024

UserWarning 不是报错

@hiyouga hiyouga closed this as completed Dec 17, 2024
@hiyouga hiyouga added solved This problem has been already solved and removed pending This problem is yet to be addressed labels Dec 17, 2024
@wangchunhui06
Copy link
Author

好滴 谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solved This problem has been already solved
Projects
None yet
Development

No branches or pull requests

2 participants