Skip to content

Commit adf480c

Browse files
cvector-generator: Moe Moe Fixie-Fixie for Lots of Formats~! ♡(ᐢ ᴥ ᐢ)♡ (#8052)
* Update negative.txt * Update positive.txt * Update cvector-generator.cpp * Update cvector-generator.cpp
1 parent 3aa184a commit adf480c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

examples/cvector-generator/cvector-generator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,8 @@ static int prepare_entries(gpt_params & params, train_context & ctx_train) {
377377
// create templated prompts
378378
std::vector<std::string> completions = ctrlvec_load_prompt_file(params.cvector_completions_file, false);
379379
auto format_template = [](std::string persona, std::string suffix) {
380-
// entry in positive/negative.txt must already be formatted i.e. "[INST] Act as if you're extremely happy. [/INST]"
381-
return persona + " " + suffix;
380+
// entry in positive/negative.txt must already be formatted i.e. "[INST] Act as if you're extremely happy. [/INST] "
381+
return persona + suffix;
382382
};
383383
for (size_t i = 0; i < positive_prompts.size(); ++i) {
384384
for (int j = 0; j < std::min((int) completions.size(), params.n_completions); ++j) {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[INST] Act like a person who is extremely sad. [/INST]
1+
[INST] Act like a person who is extremely sad. [/INST]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[INST] Act like a person who is extremely happy. [/INST]
1+
[INST] Act like a person who is extremely happy. [/INST]

0 commit comments

Comments
 (0)