Skip to content

Commit e33ae7a

Browse files
committed
style
1 parent 5d480bc commit e33ae7a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

utils.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ struct llama_sp_symbol {
303303

304304
struct llama_sp_bigram {
305305
struct comparator {
306-
const bool operator()(llama_sp_bigram& l, llama_sp_bigram& r) {
306+
const bool operator()(llama_sp_bigram & l, llama_sp_bigram & r) {
307307
return (l.score < r.score) || (l.score == r.score && l.left > r.left);
308308
}
309309
};
@@ -316,9 +316,9 @@ struct llama_sp_bigram {
316316
};
317317

318318
struct llama_tokenizer {
319-
llama_tokenizer(gpt_vocab const& vocab): vocab_(vocab) {}
319+
llama_tokenizer(const gpt_vocab & vocab): vocab_(vocab) {}
320320

321-
void tokenize(std::string_view text, std::vector<gpt_vocab::id>& output) {
321+
void tokenize(std::string_view text, std::vector<gpt_vocab::id> & output) {
322322
// split string into utf8 chars
323323
int index = 0;
324324
while (!text.empty()) {
@@ -342,8 +342,8 @@ struct llama_tokenizer {
342342
auto bigram = work_queue_.top();
343343
work_queue_.pop();
344344

345-
auto& left_sym = symbols_[bigram.left];
346-
auto& right_sym = symbols_[bigram.right];
345+
auto & left_sym = symbols_[bigram.left];
346+
auto & right_sym = symbols_[bigram.right];
347347

348348
// if one of the symbols already got merged, skip it.
349349
if (left_sym.text.empty() || right_sym.text.empty() ||

0 commit comments

Comments
 (0)