sayed0am commited on
Commit
1bc873f
·
verified ·
1 Parent(s): 45d1470

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +20 -0
README.md CHANGED
@@ -43,6 +43,26 @@ from sentence_transformers import SentenceTransformer
43
  model = SentenceTransformer("sayed0am/arabic-english-bge-m3")
44
  ```
45
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  Using ONNX
47
  ```python
48
  # pip install huggingface-hub
 
43
  model = SentenceTransformer("sayed0am/arabic-english-bge-m3")
44
  ```
45
 
46
+ Using it with OpenAI embedding endpoint using [infinity](https://github.com/michaelfeil/infinity)
47
+
48
+ ```bash
49
+ #!/bin/bash
50
+
51
+ port=8000
52
+ model=sayed0am/arabic-english-bge-m3
53
+ volume=$PWD/data
54
+
55
+ docker run -it \
56
+ -v $volume:/app/.cache \
57
+ -p $port:$port \
58
+ michaelf34/infinity:latest-cpu \
59
+ v2 \
60
+ --engine optimum \
61
+ --model-id $model \
62
+ --port $port \
63
+ --url-prefix v1 \
64
+ --api-key sk-123
65
+ ```
66
  Using ONNX
67
  ```python
68
  # pip install huggingface-hub