-
Notifications
You must be signed in to change notification settings - Fork 88
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
Contrast Vector - Add Code for Generation? #28
Comments
Yes, we are planning to fully support this in the rep-control pipeline soon. Will keep this thread update |
Great to hear, thanks! |
Hi, can i clarify regarding in during the init fn:
` model is still set to model, and Is the output text from the jupyter notebook example using a normal model call or generate fn? Thanks! |
it shows also, if i use wrappedmodel.generate, it doesn't take in other generate args such as do_sample, temp, etc...? |
The I think you may have an older version of the code for wrapped_model.generate |
Hello, any progress on this thread ? or Just give us some instructions so that we can help to achieve it. |
Hi @merlinarer @RobertMcCarthy97, sorry for the late updates. We have just update the TQA_honesty notebook that support Llama and Mistral models (CasadingLlamaForCausalLM, CasadingMistralForCausalLM) |
Awesome!! Is there any guide for us to support other models ? |
We have just updated the code a bit to include generation honesty_contrast_vec_TQA_generation. @merlinarer let us know what other architecture you would like to support. |
The notebook only showed how to use |
Hi,
I was wondering if code demonstrating how to use the contrast vector for text generation could be pushed? (Ideally for a 7B model!)
I am quite unclear on how to convert the contrast vector code from honesty_control_TQA.ipynb to allow for generation. And I am finding it difficult to parse all the contrast vector implementation details from the paper.
This would be very useful, so would really appreciate it!
Thanks,
Robert
The text was updated successfully, but these errors were encountered: