You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I hope you are doing well. Firstly thank you for the very well-developed framework, and sorry about my question but I could not find a way to reload the save model after adding new tokens while fine-tuning the process. How can I reload a model after adding new tokens in fine-tuning?
Thnx a lot
I tried to use unsloth.tokenizer_utils.add_new_tokens(model, tokenizer, [tokens]) without luck.
During training I get this exception: RuntimeError: Inference tensors cannot be saved for backward. To work around you can make a clone to get a normal tensor and use it in autograd.
Activity
danielhanchen commentedon Jun 11, 2024
Thanks! So sorry on the delay - I was actually trying to add support for that :) It'll work in the next release hopefully!
ekmekovski commentedon Jun 15, 2024
I'm looking forward to it, thank you :))
practicingman commentedon Jul 11, 2024
I think this is supported now? based on #377
danielhanchen commentedon Jul 12, 2024
If you search for
add_new_tokensin our repo - it's a prelim method for adding new tokensrubentorresbonet commentedon Oct 28, 2024
I tried to use
unsloth.tokenizer_utils.add_new_tokens(model, tokenizer, [tokens])without luck.During training I get this exception:
RuntimeError: Inference tensors cannot be saved for backward. To work around you can make a clone to get a normal tensor and use it in autograd.danielhanchen commentedon Oct 29, 2024
@Erland366 Would you mind having a look at
add_new_tokensto see if it functions? :)Erland366 commentedon Oct 29, 2024
I'll check it out!