llama-cpp-python icon indicating copy to clipboard operation
llama-cpp-python copied to clipboard

Is loading of control vectors supported?

Open edwinRNDR opened this issue 10 months ago • 0 comments

The documentation (https://llama-cpp-python.readthedocs.io/en/latest/api-reference/#llama_cpp.llama_cpp.llama_control_vector_apply) mentions

Apply a loaded control vector to a llama_context, or if data is NULL, clear the currently loaded vector. n_embd should be the size of a single layer's control, and data should point to an n_embd x n_layers buffer starting from layer 1. il_start and il_end are the layer range the vector should apply to (both inclusive) See llama_control_vector_load in common to load a control vector.

I can't find llama_control_vector_load in the python api, is there another way to load control vectors?

edwinRNDR avatar Apr 19 '24 15:04 edwinRNDR