Pringled commited on
Commit
0b03334
·
verified ·
1 Parent(s): 5989b4f

Card: from the current float32 card, almost the same scores

Browse files
Files changed (1) hide show
  1. README.md +13 -1
README.md CHANGED
@@ -31,7 +31,7 @@ base_model_relation: quantized
31
  <img src="figures/sparkle_2_blink.svg" alt="blink logo" width="325">
32
  </div>
33
 
34
- This is the int8 version of [blink-code-16M](https://huggingface.co/minishlab/blink-code-16M): 4× smaller, and scores the same as the float32 model on our benchmarks. All results below are for the float32 model.
35
 
36
  blink-code-16M is a fast static embedding model for code retrieval by [Minish](https://minish.ai): a single 62,500 × 256 token embedding table (16.0M parameters, 16MB in int8) with mean pooling. It supersedes [`potion-code-16M-v2`](https://huggingface.co/minishlab/potion-code-16M-v2): it's the same size and better on every benchmark we measured, improving CoIR from 40.67 to 46.82.
37
  Static models are models without any active parameters; all model parameters are just embedding parameters. Because of this, they are many orders of magnitude faster than transformers. Although this comes at a cost, this cost is much lower than you would expect.
@@ -137,6 +137,18 @@ We use the public English tasks. Apps is left out (it is in CoIR above) and Code
137
  - **Mean:** blink-code-16M scores 49.58, against 46.50 for potion-code-16M-v2 and 44.39 for BM25.
138
  - **Languages we didn't train on:** it beats potion-code-16M-v2 on all 13 languages, including the seven unseen ones; the largest gains are on C++ (+5.4), TypeScript (+4.2) and C (+4.0). BM25 is best on Shell.
139
 
 
 
 
 
 
 
 
 
 
 
 
 
140
  ## Training
141
 
142
  We followed a four-step procedure, starting from [potion-code-16M-v2's recipe](https://huggingface.co/minishlab/potion-code-16M-v2).
 
31
  <img src="figures/sparkle_2_blink.svg" alt="blink logo" width="325">
32
  </div>
33
 
34
+ This is the int8 version of [blink-code-16M](https://huggingface.co/minishlab/blink-code-16M): 4× smaller, and scores almost the same as the float32 model on our benchmarks. All results below are for the float32 model.
35
 
36
  blink-code-16M is a fast static embedding model for code retrieval by [Minish](https://minish.ai): a single 62,500 × 256 token embedding table (16.0M parameters, 16MB in int8) with mean pooling. It supersedes [`potion-code-16M-v2`](https://huggingface.co/minishlab/potion-code-16M-v2): it's the same size and better on every benchmark we measured, improving CoIR from 40.67 to 46.82.
37
  Static models are models without any active parameters; all model parameters are just embedding parameters. Because of this, they are many orders of magnitude faster than transformers. Although this comes at a cost, this cost is much lower than you would expect.
 
137
  - **Mean:** blink-code-16M scores 49.58, against 46.50 for potion-code-16M-v2 and 44.39 for BM25.
138
  - **Languages we didn't train on:** it beats potion-code-16M-v2 on all 13 languages, including the seven unseen ones; the largest gains are on C++ (+5.4), TypeScript (+4.2) and C (+4.0). BM25 is best on Shell.
139
 
140
+ ### Hybrid search with BM25
141
+
142
+ Combining blink-code-16M and BM25 with hybrid search gives the following results. We take the top 100 documents from each, scale each query's scores to [0, 1] (min-max) and average them with equal weight.
143
+
144
+ | Model | CoIR | RTEB(Code) | CodeEditSearch |
145
+ |---|---:|---:|---:|
146
+ | **blink-code-16M + BM25** | **49.36** | **36.00** | **54.71** |
147
+ | blink-code-16M | 46.82 | 34.67 | 49.58 |
148
+ | BM25 | 42.31 | 29.90 | 44.39 |
149
+
150
+ The combination adds 2.54 points on CoIR, 1.33 on RTEB(Code) and 5.13 on CodeEditSearch over blink-code-16M alone.
151
+
152
  ## Training
153
 
154
  We followed a four-step procedure, starting from [potion-code-16M-v2's recipe](https://huggingface.co/minishlab/potion-code-16M-v2).