Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language: en
|
3 |
+
license: apache-2.0
|
4 |
+
library_name: sentence-transformers
|
5 |
+
tags:
|
6 |
+
- sentence-transformers
|
7 |
+
- feature-extraction
|
8 |
+
- sentence-similarity
|
9 |
+
- transformers
|
10 |
+
- llama-cpp
|
11 |
+
- gguf-my-repo
|
12 |
+
base_model: sentence-transformers/all-MiniLM-L6-v2
|
13 |
+
datasets:
|
14 |
+
- s2orc
|
15 |
+
- flax-sentence-embeddings/stackexchange_xml
|
16 |
+
- ms_marco
|
17 |
+
- gooaq
|
18 |
+
- yahoo_answers_topics
|
19 |
+
- code_search_net
|
20 |
+
- search_qa
|
21 |
+
- eli5
|
22 |
+
- snli
|
23 |
+
- multi_nli
|
24 |
+
- wikihow
|
25 |
+
- natural_questions
|
26 |
+
- trivia_qa
|
27 |
+
- embedding-data/sentence-compression
|
28 |
+
- embedding-data/flickr30k-captions
|
29 |
+
- embedding-data/altlex
|
30 |
+
- embedding-data/simple-wiki
|
31 |
+
- embedding-data/QQP
|
32 |
+
- embedding-data/SPECTER
|
33 |
+
- embedding-data/PAQ_pairs
|
34 |
+
- embedding-data/WikiAnswers
|
35 |
+
pipeline_tag: sentence-similarity
|
36 |
+
---
|
37 |
+
|
38 |
+
# Jarbas/all-MiniLM-L6-v2-Q4_K_M-GGUF
|
39 |
+
This model was converted to GGUF format from [`sentence-transformers/all-MiniLM-L6-v2`](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
|
40 |
+
Refer to the [original model card](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) for more details on the model.
|
41 |
+
|
42 |
+
## Use with llama.cpp
|
43 |
+
Install llama.cpp through brew (works on Mac and Linux)
|
44 |
+
|
45 |
+
```bash
|
46 |
+
brew install llama.cpp
|
47 |
+
|
48 |
+
```
|
49 |
+
Invoke the llama.cpp server or the CLI.
|
50 |
+
|
51 |
+
### CLI:
|
52 |
+
```bash
|
53 |
+
llama --hf-repo Jarbas/all-MiniLM-L6-v2-Q4_K_M-GGUF --hf-file all-minilm-l6-v2-q4_k_m.gguf -p "The meaning to life and the universe is"
|
54 |
+
```
|
55 |
+
|
56 |
+
### Server:
|
57 |
+
```bash
|
58 |
+
llama-server --hf-repo Jarbas/all-MiniLM-L6-v2-Q4_K_M-GGUF --hf-file all-minilm-l6-v2-q4_k_m.gguf -c 2048
|
59 |
+
```
|
60 |
+
|
61 |
+
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.
|
62 |
+
|
63 |
+
Step 1: Clone llama.cpp from GitHub.
|
64 |
+
```
|
65 |
+
git clone https://github.com/ggerganov/llama.cpp
|
66 |
+
```
|
67 |
+
|
68 |
+
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).
|
69 |
+
```
|
70 |
+
cd llama.cpp && LLAMA_CURL=1 make
|
71 |
+
```
|
72 |
+
|
73 |
+
Step 3: Run inference through the main binary.
|
74 |
+
```
|
75 |
+
./main --hf-repo Jarbas/all-MiniLM-L6-v2-Q4_K_M-GGUF --hf-file all-minilm-l6-v2-q4_k_m.gguf -p "The meaning to life and the universe is"
|
76 |
+
```
|
77 |
+
or
|
78 |
+
```
|
79 |
+
./server --hf-repo Jarbas/all-MiniLM-L6-v2-Q4_K_M-GGUF --hf-file all-minilm-l6-v2-q4_k_m.gguf -c 2048
|
80 |
+
```
|