vccarvalho11 commited on
Commit
79b7fc1
·
verified ·
1 Parent(s): 203fd8e

Upload bge-base-en-v1.5 ONNX model

Browse files
Files changed (3) hide show
  1. README.md +53 -0
  2. model.onnx +3 -0
  3. vocab.txt +0 -0
README.md ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: onnx
3
+ tags:
4
+ - bge
5
+ - sentence-transformers
6
+ - sentence-similarity
7
+ - feature-extraction
8
+ - onnx
9
+ - inference4j
10
+ license: mit
11
+ pipeline_tag: sentence-similarity
12
+ ---
13
+
14
+ # BGE Base EN v1.5 — ONNX
15
+
16
+ ONNX export of [BAAI/bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5), a high-quality English embedding model. Maps sentences to 768-dimensional dense vectors using CLS pooling with L2 normalization.
17
+
18
+ Mirrored for use with [inference4j](https://github.com/inference4j/inference4j), an inference-only AI library for Java.
19
+
20
+ ## Original Source
21
+
22
+ - **Repository:** [BAAI (ONNX by Xenova)](https://huggingface.co/BAAI/bge-base-en-v1.5)
23
+ - **License:** mit
24
+
25
+ ## Usage with inference4j
26
+
27
+ ```java
28
+ try (SentenceTransformerEmbedder model = SentenceTransformerEmbedder.builder()
29
+ .modelId("inference4j/bge-base-en-v1.5")
30
+ .poolingStrategy(PoolingStrategy.CLS)
31
+ .normalize()
32
+ .build()) {
33
+ float[] embedding = model.encode("Hello, world!");
34
+ System.out.println("Dimension: " + embedding.length); // 768
35
+ }
36
+ ```
37
+
38
+ ## Model Details
39
+
40
+ | Property | Value |
41
+ |----------|-------|
42
+ | Architecture | BERT Base (12 layers, 768 hidden) |
43
+ | Task | Sentence embeddings / semantic similarity |
44
+ | Output dimension | 768 |
45
+ | Pooling | CLS |
46
+ | Normalization | L2 |
47
+ | MTEB average | 63.55 |
48
+ | Max sequence length | 512 |
49
+ | Original framework | PyTorch (HuggingFace Transformers) |
50
+
51
+ ## License
52
+
53
+ This model is licensed under the [MIT License](https://opensource.org/licenses/MIT). Original model by [BAAI](https://huggingface.co/BAAI/bge-base-en-v1.5), ONNX export by [Xenova](https://huggingface.co/Xenova).
model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9bc579acdba21c253c62a9bf866891355a63ffa3442b52c8a37d75b2ccb91848
3
+ size 435811539
vocab.txt ADDED
The diff for this file is too large to render. See raw diff