xinming0111
commited on
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
language:
|
4 |
+
- en
|
5 |
+
- zh
|
6 |
+
tags:
|
7 |
+
- mteb
|
8 |
+
- text-embeddings-inference
|
9 |
+
- llama-cpp
|
10 |
+
- gguf-my-repo
|
11 |
+
pipeline_tag: text-classification
|
12 |
+
library_name: sentence-transformers
|
13 |
+
base_model: BAAI/bge-reranker-base
|
14 |
+
model-index:
|
15 |
+
- name: bge-reranker-base
|
16 |
+
results:
|
17 |
+
- task:
|
18 |
+
type: Reranking
|
19 |
+
dataset:
|
20 |
+
name: MTEB CMedQAv1
|
21 |
+
type: C-MTEB/CMedQAv1-reranking
|
22 |
+
config: default
|
23 |
+
split: test
|
24 |
+
revision: None
|
25 |
+
metrics:
|
26 |
+
- type: map
|
27 |
+
value: 81.27206722525007
|
28 |
+
- type: mrr
|
29 |
+
value: 84.14238095238095
|
30 |
+
- task:
|
31 |
+
type: Reranking
|
32 |
+
dataset:
|
33 |
+
name: MTEB CMedQAv2
|
34 |
+
type: C-MTEB/CMedQAv2-reranking
|
35 |
+
config: default
|
36 |
+
split: test
|
37 |
+
revision: None
|
38 |
+
metrics:
|
39 |
+
- type: map
|
40 |
+
value: 84.10369934291236
|
41 |
+
- type: mrr
|
42 |
+
value: 86.79376984126984
|
43 |
+
- task:
|
44 |
+
type: Reranking
|
45 |
+
dataset:
|
46 |
+
name: MTEB MMarcoReranking
|
47 |
+
type: C-MTEB/Mmarco-reranking
|
48 |
+
config: default
|
49 |
+
split: dev
|
50 |
+
revision: None
|
51 |
+
metrics:
|
52 |
+
- type: map
|
53 |
+
value: 35.4600511272538
|
54 |
+
- type: mrr
|
55 |
+
value: 34.60238095238095
|
56 |
+
- task:
|
57 |
+
type: Reranking
|
58 |
+
dataset:
|
59 |
+
name: MTEB T2Reranking
|
60 |
+
type: C-MTEB/T2Reranking
|
61 |
+
config: default
|
62 |
+
split: dev
|
63 |
+
revision: None
|
64 |
+
metrics:
|
65 |
+
- type: map
|
66 |
+
value: 67.27728847727172
|
67 |
+
- type: mrr
|
68 |
+
value: 77.1315192743764
|
69 |
+
---
|
70 |
+
|
71 |
+
# xinming0111/bge-reranker-base-Q8_0-GGUF
|
72 |
+
This model was converted to GGUF format from [`BAAI/bge-reranker-base`](https://huggingface.co/BAAI/bge-reranker-base) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
|
73 |
+
Refer to the [original model card](https://huggingface.co/BAAI/bge-reranker-base) for more details on the model.
|
74 |
+
|
75 |
+
## Use with llama.cpp
|
76 |
+
Install llama.cpp through brew (works on Mac and Linux)
|
77 |
+
|
78 |
+
```bash
|
79 |
+
brew install llama.cpp
|
80 |
+
|
81 |
+
```
|
82 |
+
Invoke the llama.cpp server or the CLI.
|
83 |
+
|
84 |
+
### CLI:
|
85 |
+
```bash
|
86 |
+
llama-cli --hf-repo xinming0111/bge-reranker-base-Q8_0-GGUF --hf-file bge-reranker-base-q8_0.gguf -p "The meaning to life and the universe is"
|
87 |
+
```
|
88 |
+
|
89 |
+
### Server:
|
90 |
+
```bash
|
91 |
+
llama-server --hf-repo xinming0111/bge-reranker-base-Q8_0-GGUF --hf-file bge-reranker-base-q8_0.gguf -c 2048
|
92 |
+
```
|
93 |
+
|
94 |
+
Note: You can also use this checkpoint directly through the [usage steps](https://github.com/ggerganov/llama.cpp?tab=readme-ov-file#usage) listed in the Llama.cpp repo as well.
|
95 |
+
|
96 |
+
Step 1: Clone llama.cpp from GitHub.
|
97 |
+
```
|
98 |
+
git clone https://github.com/ggerganov/llama.cpp
|
99 |
+
```
|
100 |
+
|
101 |
+
Step 2: Move into the llama.cpp folder and build it with `LLAMA_CURL=1` flag along with other hardware-specific flags (for ex: LLAMA_CUDA=1 for Nvidia GPUs on Linux).
|
102 |
+
```
|
103 |
+
cd llama.cpp && LLAMA_CURL=1 make
|
104 |
+
```
|
105 |
+
|
106 |
+
Step 3: Run inference through the main binary.
|
107 |
+
```
|
108 |
+
./llama-cli --hf-repo xinming0111/bge-reranker-base-Q8_0-GGUF --hf-file bge-reranker-base-q8_0.gguf -p "The meaning to life and the universe is"
|
109 |
+
```
|
110 |
+
or
|
111 |
+
```
|
112 |
+
./llama-server --hf-repo xinming0111/bge-reranker-base-Q8_0-GGUF --hf-file bge-reranker-base-q8_0.gguf -c 2048
|
113 |
+
```
|