allow multiple directions for same layer in same file
This commit is contained in:
parent
7b4d87a17a
commit
cb4bf40299
1 changed files with 1 additions and 1 deletions
|
@ -2869,7 +2869,7 @@ static llama_control_vector_data llama_control_vector_load_one(const llama_contr
|
|||
const float * src = (const float *) tensor->data;
|
||||
float * dst = result.data.data() + result.n_embd * (layer_idx - 1); // layer 1 at [0]
|
||||
for (int j = 0; j < result.n_embd; j++) {
|
||||
dst[j] = src[j] * load_info.strength;
|
||||
dst[j] += src[j] * load_info.strength; // allow multiple for same layer in same file
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue