Skip to content

Commit e9cb3b3

Browse files
committed
fix .editorconfig
1 parent 5ffba9e commit e9cb3b3

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,6 @@ indent_size = 2
2626

2727
[examples/llama.swiftui/llama.swiftui.xcodeproj/*]
2828
indent_style = tab
29+
30+
[examples/control-vector-generator/*.txt]
31+
insert_final_newline = unset

examples/control-vector-generator/control-vector-generator.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ struct callback_data {
144144
return diff_filtered;
145145
}
146146

147-
// we don't implement destructor, because we want to reuse callback_data. we just want to free the tensors
147+
// we don't implement destructor, because we want to reuse callback_data. we just want to free the tensors
148148
void reset() {
149149
for (auto ptr : v_pos) free(ptr->data);
150150
for (auto ptr : v_neg) free(ptr->data);
@@ -430,7 +430,7 @@ static int ctrlvec_params_parse(int argc, char ** argv, ctrl_params & params) {
430430
catch (const std::invalid_argument & ex) {
431431
fprintf(stderr, "%s\n", ex.what());
432432
print_usage(argv[0]);
433-
exit(EXIT_FAILURE);
433+
exit(EXIT_FAILURE);
434434
}
435435
return skipme;
436436
}
@@ -495,7 +495,7 @@ static void export_gguf(const std::vector<struct ggml_tensor *> & v_ctrl, const
495495
printf("Added tensor: %s\n", v_ctrl[i]->name);
496496
}
497497

498-
printf("Writing file...\n");
498+
printf("Writing file...\n");
499499

500500
gguf_write_to_file(ctx, fname.c_str(), false);
501501

@@ -603,7 +603,7 @@ int main(int argc, char ** argv) {
603603
cb_data.n_layers = n_layers;
604604
cb_data.n_tokens = t.max_seq_len;
605605

606-
printf("Evaluating prompt[%ld/%ld]: \"%s\" - \"%s\" (%ld tokens)\n",
606+
printf("Evaluating prompt[%ld/%ld]: \"%s\" - \"%s\" (%ld tokens)\n",
607607
i+1, cparams.positive_entries.size(),
608608
tokens_to_str(ctx, t.tokens_pos.cbegin(), t.tokens_pos.cend()).c_str(),
609609
tokens_to_str(ctx, t.tokens_neg.cbegin(), t.tokens_neg.cend()).c_str(),

0 commit comments

Comments
 (0)