You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rerank : use [SEP] token instead of [BOS] (ggml-org#9737)
* rerank : use [SEP] token instead of [BOS]
ggml-ci
* common : sanity check for non-NULL tokens
ggml-ci
* ci : adjust rank score interval
ggml-ci
* ci : add shebang to run.sh
ggml-ci
Copy file name to clipboardExpand all lines: ci/run.sh
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
#/bin/bash
1
+
#!/bin/bash
2
2
#
3
3
# sample usage:
4
4
#
@@ -751,7 +751,8 @@ function gg_run_rerank_tiny {
751
751
752
752
model_f16="${path_models}/ggml-model-f16.gguf"
753
753
754
-
(time ./bin/llama-embedding --model ${model_f16} -p "what is panda?</s><s>hi\nwhat is panda?</s><s>it's a bear\nwhat is panda?</s><s>The giant panda (Ailuropoda melanoleuca), sometimes called a panda bear or simply panda, is a bear species endemic to China." --pooling rank --embd-normalize -1 --verbose-prompt) 2>&1| tee -a $OUT/${ci}-rk-f16.log
754
+
# for this model, the SEP token is "</s>"
755
+
(time ./bin/llama-embedding --model ${model_f16} -p "what is panda?</s></s>hi\nwhat is panda?</s></s>it's a bear\nwhat is panda?</s></s>The giant panda (Ailuropoda melanoleuca), sometimes called a panda bear or simply panda, is a bear species endemic to China." --pooling rank --embd-normalize -1 --verbose-prompt) 2>&1| tee -a $OUT/${ci}-rk-f16.log
755
756
756
757
# sample output
757
758
# rerank score 0: 0.029
@@ -774,7 +775,7 @@ function gg_run_rerank_tiny {
774
775
775
776
check_score "rerank score 0""$(cat $OUT/${ci}-rk-f16.log | grep "rerank score 0")""0.00""0.05"| tee -a $OUT/${ci}-rk-f16.log
776
777
check_score "rerank score 1""$(cat $OUT/${ci}-rk-f16.log | grep "rerank score 1")""0.00""0.05"| tee -a $OUT/${ci}-rk-f16.log
777
-
check_score "rerank score 2""$(cat $OUT/${ci}-rk-f16.log | grep "rerank score 2")""0.10""0.15"| tee -a $OUT/${ci}-rk-f16.log
778
+
check_score "rerank score 2""$(cat $OUT/${ci}-rk-f16.log | grep "rerank score 2")""0.10""0.30"| tee -a $OUT/${ci}-rk-f16.log
0 commit comments