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

Add a way to use Control Vectors #1002

Open
minipasila opened this issue Jul 17, 2024 · 5 comments
Open

Add a way to use Control Vectors #1002

minipasila opened this issue Jul 17, 2024 · 5 comments

Comments

@minipasila
Copy link

Describe the Issue
Since Control Vectors were implemented in llama.cpp a few months ago there still doesn't seem to be any way to actually use them in Koboldcpp. It would be nice if there was a way to use them with Koboldcpp.

Additional Information:
Example readme on how to make Control Vectors.

@dazzling2019
Copy link

Seconded, that would be awesome.

@shooflyshoo
Copy link

Any headway on this issue? Thanks!

@LostRuins
Copy link
Owner

Not currently, to be honest I'm not really sure what's the point of this - what can it do that cannot be achieved with a system prompt?

@dazzling2019
Copy link

The main ones are:

You can make a model (much) more "extreme" than any system prompting could ever do.
You can apply the control vector all throughout the context so it can't start to ignore it and/or deviate back to its "stock" behaviour.
You can use with models like gemma-2 that have no system prompt in their template.
But you can also:

Mix and match different control vectors using vector addition to have much more refined control over the output.
You can "de-bias" a model to set it to the point which is equidistant between two ends of the most extreme versions of what it can output via system promoting - this would be very hard if not impossible using words alone I think.
and lastly you can keep the system prompt free for specifying other stuff that isn't easily represented as a single negative <---> positive axis.

@LostRuins
Copy link
Owner

There's a misconception about how the system prompt works. You don't need to "keep it free". You can use as many system prompts as you like, and you can use system prompts on any model. Don't let anyone tell you otherwise. Just try it out on the included KoboldAI Lite UI. You can also place system prompts in the "Memory" segment.

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

4 participants