mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-11-02 09:12:03 +00:00
Steering
This commit is contained in:
3
llama.h
3
llama.h
@@ -191,6 +191,9 @@ extern "C" {
|
||||
LLAMA_API llama_token llama_token_eos();
|
||||
LLAMA_API llama_token llama_token_nl();
|
||||
|
||||
LLAMA_API void llama_set_steering_write(struct llama_context * ctx, int layer, float mul);
|
||||
LLAMA_API void llama_set_steering_read(struct llama_context * ctx, int layer, float mul);
|
||||
|
||||
// Sampling functions
|
||||
|
||||
/// @details Repetition penalty described in CTRL academic paper https://arxiv.org/abs/1909.05858, with negative logit fix.
|
||||
|
||||
Reference in New Issue
Block a user