sheldonrobinson commited on
Commit
ddd6b20
1 Parent(s): d5b31c2

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +80 -0
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
+ datasets:
13
+ - s2orc
14
+ - flax-sentence-embeddings/stackexchange_xml
15
+ - ms_marco
16
+ - gooaq
17
+ - yahoo_answers_topics
18
+ - code_search_net
19
+ - search_qa
20
+ - eli5
21
+ - snli
22
+ - multi_nli
23
+ - wikihow
24
+ - natural_questions
25
+ - trivia_qa
26
+ - embedding-data/sentence-compression
27
+ - embedding-data/flickr30k-captions
28
+ - embedding-data/altlex
29
+ - embedding-data/simple-wiki
30
+ - embedding-data/QQP
31
+ - embedding-data/SPECTER
32
+ - embedding-data/PAQ_pairs
33
+ - embedding-data/WikiAnswers
34
+ pipeline_tag: sentence-similarity
35
+ base_model: sentence-transformers/all-MiniLM-L12-v2
36
+ ---
37
+
38
+ # sheldonrobinson/all-MiniLM-L12-v2-Q4_K_M-GGUF
39
+ This model was converted to GGUF format from [`sentence-transformers/all-MiniLM-L12-v2`](https://huggingface.co/sentence-transformers/all-MiniLM-L12-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-L12-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-cli --hf-repo sheldonrobinson/all-MiniLM-L12-v2-Q4_K_M-GGUF --hf-file all-minilm-l12-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 sheldonrobinson/all-MiniLM-L12-v2-Q4_K_M-GGUF --hf-file all-minilm-l12-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
+ ./llama-cli --hf-repo sheldonrobinson/all-MiniLM-L12-v2-Q4_K_M-GGUF --hf-file all-minilm-l12-v2-q4_k_m.gguf -p "The meaning to life and the universe is"
76
+ ```
77
+ or
78
+ ```
79
+ ./llama-server --hf-repo sheldonrobinson/all-MiniLM-L12-v2-Q4_K_M-GGUF --hf-file all-minilm-l12-v2-q4_k_m.gguf -c 2048
80
+ ```