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
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
Copy file name to clipboardExpand all lines: examples/server/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,7 @@ The project is under active development, and we are [looking for feedback and co
100
100
| Argument | Explanation |
101
101
| -------- | ----------- |
102
102
|`--samplers SAMPLERS`| samplers that will be used for generation in the order, separated by ';'<br/>(default: top_k;tfs_z;typ_p;top_p;min_p;temperature) |
103
-
|`-s, --seed SEED`| RNG seed (default: 4294967295, use random seed for 4294967295) |
103
+
|`-s, --seed SEED`| RNG seed (default: -1, use random seed for -1) |
104
104
|`--sampling-seq SEQUENCE`| simplified sequence for samplers that will be used (default: kfypmt) |
105
105
|`--ignore-eos`| ignore end of stream token and continue generating (implies --logit-bias EOS-inf) |
0 commit comments