|
|
1 年之前 | |
|---|---|---|
| .. | ||
| CMakeLists.txt | 1 年之前 | |
| README.md | 1 年之前 | |
| completions.txt | 1 年之前 | |
| cvector-generator.cpp | 1 年之前 | |
| negative.txt | 1 年之前 | |
| pca.hpp | 1 年之前 | |
| positive.txt | 1 年之前 | |
This example demonstrates how to generate a control vector using gguf models.
Related PRs:
# CPU only
./cvector-generator -m ./dolphin-2.0-mistral-7b.Q4_K_M.gguf
# With GPU
./cvector-generator -m ./dolphin-2.0-mistral-7b.Q4_K_M.gguf -ngl 99
# With advanced options
./cvector-generator -m ./dolphin-2.0-mistral-7b.Q4_K_M.gguf -ngl 99 --completions 128 --pca-iter 2000 --batch-pca 100
# To see help message
./cvector-generator -h
# Then, have a look at "cvector" section
If you have multiple lines per prompt, you can escape the newline character (change it to \n). For example:
<|im_start|>system\nAct like a person who is extremely happy.<|im_end|>
<|im_start|>system\nYou are in a very good mood today<|im_end|>