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

request for the training code #30

Open
leonardxie opened this issue Jun 11, 2024 · 2 comments
Open

request for the training code #30

leonardxie opened this issue Jun 11, 2024 · 2 comments

Comments

@leonardxie
Copy link

hi, thank you for your excellent work.
Do you have any plans to share the training code?
i want to reproduce the training but raises error as followers

RuntimeError: Trying to backward through the graph a second time (or directly access saved tensors after they have already been freed). Saved intermediate values of the graph are freed when you call .backward() or autograd.grad(). Specify retain_graph=True if you need to backward through the graph a second time or if you need to access saved tensors after calling backward.

@XiaoYiWeio
Copy link

me too

@marcio-afr
Copy link

I also tried to run a training script using Trainer class from Huggingface and I faced several issues and errors including:

  • Diverging tensor devices (lora weights created on cpu when the model is in gpu)
  • Different tensor dtype (multiplication between float and bfloat16 when the model is on bfloat16)
  • Missing peft configs in xLoRAConfig class.

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