Skip to content

Commit d85b2ae

Browse files
committed
fix lint
1 parent efc411a commit d85b2ae

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

common/common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ struct common_init_result common_init_from_params(common_params & params) {
905905

906906
bool has_eos = llama_vocab_eos(vocab) != LLAMA_TOKEN_NULL;
907907
bool has_sep = llama_vocab_sep(vocab) != LLAMA_TOKEN_NULL;
908-
908+
909909
if (!has_eos && !has_sep) {
910910
LOG_WRN("%s: warning: vocab does not have an EOS token or SEP token, reranking will not work\n", __func__);
911911
ok = false;

convert_hf_to_gguf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3738,7 +3738,7 @@ def modify_tensors(self, data_torch: Tensor, name: str, bid: int | None) -> Iter
37383738

37393739
if name.startswith("cls.seq_relationship"):
37403740
return []
3741-
3741+
37423742
# For BertForSequenceClassification (direct projection layer)
37433743
if name == "classifier.weight":
37443744
name = "classifier.out_proj.weight"

src/llama-graph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1567,7 +1567,7 @@ void llm_graph_context::build_pooling(
15671567
// https://github.com/huggingface/transformers/blob/5af7d41e49bbfc8319f462eb45253dcb3863dfb7/src/transformers/models/roberta/modeling_roberta.py#L1566
15681568
cur = ggml_add(ctx0, ggml_mul_mat(ctx0, cls, inp), cls_b);
15691569
cur = ggml_tanh(ctx0, cur);
1570-
1570+
15711571
// some models don't have `cls_out`, for example: https://huggingface.co/jinaai/jina-reranker-v1-tiny-en
15721572
// https://huggingface.co/jinaai/jina-reranker-v1-tiny-en/blob/cb5347e43979c3084a890e3f99491952603ae1b7/modeling_bert.py#L884-L896
15731573
if (cls_out) {

0 commit comments

Comments
 (0)