huggingfacepremium
commited on
Commit
•
7f6be31
1
Parent(s):
b1fb35f
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
license: apache-2.0
|
5 |
+
tags:
|
6 |
+
- biomedical
|
7 |
+
- lexical semantics
|
8 |
+
- bionlp
|
9 |
+
- biology
|
10 |
+
- science
|
11 |
+
- embedding
|
12 |
+
- entity linking
|
13 |
+
- llama-cpp
|
14 |
+
- gguf-my-repo
|
15 |
+
---
|
16 |
+
|
17 |
+
# huggingfacepremium/SapBERT-from-PubMedBERT-fulltext-Q4_K_M-GGUF
|
18 |
+
This model was converted to GGUF format from [`cambridgeltl/SapBERT-from-PubMedBERT-fulltext`](https://huggingface.co/cambridgeltl/SapBERT-from-PubMedBERT-fulltext) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
|
19 |
+
Refer to the [original model card](https://huggingface.co/cambridgeltl/SapBERT-from-PubMedBERT-fulltext) for more details on the model.
|
20 |
+
## Use with llama.cpp
|
21 |
+
|
22 |
+
Install llama.cpp through brew.
|
23 |
+
|
24 |
+
```bash
|
25 |
+
brew install ggerganov/ggerganov/llama.cpp
|
26 |
+
```
|
27 |
+
Invoke the llama.cpp server or the CLI.
|
28 |
+
|
29 |
+
CLI:
|
30 |
+
|
31 |
+
```bash
|
32 |
+
llama-cli --hf-repo huggingfacepremium/SapBERT-from-PubMedBERT-fulltext-Q4_K_M-GGUF --model sapbert-from-pubmedbert-fulltext.Q4_K_M.gguf -p "The meaning to life and the universe is"
|
33 |
+
```
|
34 |
+
|
35 |
+
Server:
|
36 |
+
|
37 |
+
```bash
|
38 |
+
llama-server --hf-repo huggingfacepremium/SapBERT-from-PubMedBERT-fulltext-Q4_K_M-GGUF --model sapbert-from-pubmedbert-fulltext.Q4_K_M.gguf -c 2048
|
39 |
+
```
|
40 |
+
|
41 |
+
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.
|
42 |
+
|
43 |
+
```
|
44 |
+
git clone https://github.com/ggerganov/llama.cpp && cd llama.cpp && make && ./main -m sapbert-from-pubmedbert-fulltext.Q4_K_M.gguf -n 128
|
45 |
+
```
|