mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-11-03 09:22:01 +00:00 
			
		
		
		
	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
This commit is contained in:
		@@ -378,7 +378,7 @@ static int prepare_entries(gpt_params & params, train_context & ctx_train) {
 | 
				
			|||||||
    std::vector<std::string> completions = ctrlvec_load_prompt_file(params.cvector_completions_file, false);
 | 
					    std::vector<std::string> completions = ctrlvec_load_prompt_file(params.cvector_completions_file, false);
 | 
				
			||||||
    auto format_template = [](std::string persona, std::string suffix) {
 | 
					    auto format_template = [](std::string persona, std::string suffix) {
 | 
				
			||||||
        // entry in positive/negative.txt must already be formatted i.e. "[INST] Act as if you're extremely happy. [/INST] "
 | 
					        // entry in positive/negative.txt must already be formatted i.e. "[INST] Act as if you're extremely happy. [/INST] "
 | 
				
			||||||
        return persona + " " + suffix;
 | 
					        return persona + suffix;
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
    for (size_t i = 0; i < positive_prompts.size(); ++i) {
 | 
					    for (size_t i = 0; i < positive_prompts.size(); ++i) {
 | 
				
			||||||
        for (int j = 0; j < std::min((int) completions.size(), params.n_completions); ++j) {
 | 
					        for (int j = 0; j < std::min((int) completions.size(), params.n_completions); ++j) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user