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

[Badcase]: Fine tuning Qwen2-72b-Instruct using QLoRA with bnb, model indicators grad_norm=Nan; loss=0 #912

Open
4 tasks done
Jackmoyu001 opened this issue Sep 14, 2024 · 1 comment
Assignees

Comments

@Jackmoyu001
Copy link

Model Series

Qwen2

What are the models used?

Qwen2-72B-Instruct

What is the scenario where the problem happened?

微调模型时,模型指标异常。使用了transformers、peft,

Is this badcase known and can it be solved using avaiable techniques?

  • I have followed the GitHub README.
  • I have checked the Qwen documentation and cannot find a solution there.
  • I have checked the documentation of the related framework and cannot find useful information.
  • I have searched the issues and there is not a similar one.

Information about environment

操作系统: Ubuntu 22.04
Python:Python 3.10
GPU:7 个 NVIDIA 3090 24G
NVIDIA 驱动程序:535
CUDA 编译器:12.2
PyTorch:2.1.2+cu121

Description

Steps to reproduce

This happens to Qwen2-72B-Instruct .
The badcase can be reproduced with the following steps:

  1. My code and parameters are as follows
9d5007b65e424a5f328beecb36736f0 The executed instruction is python xxx. py

####The problem that has arisen is
error
fa84c668059383242813f712535dd16

Attempts to fix

I have tried several ways to fix this, including:

  1. adjusting the sampling parameters, but not resolved

Anything else helpful for investigation

@jklj077 jklj077 changed the title [Badcase]: Fine tuning Qwen2-72b model indicators grad_norm=Nan; loss=0 [Badcase]: Fine tuning Qwen2-72b-Instruct using QLoRA with bnb, model indicators grad_norm=Nan; loss=0 Sep 14, 2024
@errfgod
Copy link

errfgod commented Sep 20, 2024

same issue with qwen2.5_7B_instruct

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

3 participants