Skip to content

Commit

Permalink
llama : add comment [no ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Sep 26, 2024
1 parent 877a04c commit 4d45775
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/llama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10257,6 +10257,8 @@ struct llm_build_context {
cur = ggml_tanh(ctx0, cur);

if (model.cls_out) {
// this path is taken for example by the https://huggingface.co/jinaai/jina-reranker-v1-tiny-en
// https://huggingface.co/jinaai/jina-reranker-v1-tiny-en/blob/cb5347e43979c3084a890e3f99491952603ae1b7/modeling_bert.py#L884-L896
GGML_ASSERT(model.cls_out_b != nullptr);

cur = ggml_add (ctx0, ggml_mul_mat(ctx0, model.cls_out, cur), model.cls_out_b);
Expand Down

0 comments on commit 4d45775

Please sign in to comment.