Skip to content

Commit 71b3859

Browse files
committed
style: clang-format jllama.cpp special_tokens_json (pinned 22.1.5)
Pre-existing formatting violation in special_tokens_json (the token-id map added by #286 / ModelMeta) that this branch inherited unchanged through the move. The reactor PR's clang-format check surfaced it. Reflowed with the pinned clang-format 22.1.5; no logic change. (Implies main currently carries the same violation — it self-resolves when this merges.) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Rt1paYztGJ2AKUuBuAGDXE
1 parent 9fcf466 commit 71b3859

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

llama/src/main/cpp/jllama.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -770,9 +770,8 @@ JNIEXPORT void JNICALL Java_net_ladenthin_llama_LlamaModel_loadModelWithProgress
770770
// Build the special-token id map (a token is -1 / LLAMA_TOKEN_NULL when the model defines none).
771771
static json special_tokens_json(const llama_vocab *vocab) {
772772
return {
773-
{"bos", llama_vocab_bos(vocab)}, {"eos", llama_vocab_eos(vocab)},
774-
{"eot", llama_vocab_eot(vocab)}, {"sep", llama_vocab_sep(vocab)},
775-
{"nl", llama_vocab_nl(vocab)}, {"pad", llama_vocab_pad(vocab)},
773+
{"bos", llama_vocab_bos(vocab)}, {"eos", llama_vocab_eos(vocab)}, {"eot", llama_vocab_eot(vocab)},
774+
{"sep", llama_vocab_sep(vocab)}, {"nl", llama_vocab_nl(vocab)}, {"pad", llama_vocab_pad(vocab)},
776775
};
777776
}
778777

0 commit comments

Comments
 (0)