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
| 22 |
+
- hu
|
| 23 |
+
- hy
|
| 24 |
+
- id
|
| 25 |
+
- it
|
| 26 |
+
- ja
|
| 27 |
+
- ka
|
| 28 |
+
- ko
|
| 29 |
+
- ku
|
| 30 |
+
- lt
|
| 31 |
+
- lv
|
| 32 |
+
- mk
|
| 33 |
+
- mn
|
| 34 |
+
- mr
|
| 35 |
+
- ms
|
| 36 |
+
- my
|
| 37 |
+
- nb
|
| 38 |
+
- nl
|
| 39 |
+
- pl
|
| 40 |
+
- pt
|
| 41 |
+
- ro
|
| 42 |
+
- ru
|
| 43 |
+
- sk
|
| 44 |
+
- sl
|
| 45 |
+
- sq
|
| 46 |
+
- sr
|
| 47 |
+
- sv
|
| 48 |
+
- th
|
| 49 |
+
- tr
|
| 50 |
+
- uk
|
| 51 |
+
- ur
|
| 52 |
+
- vi
|
| 53 |
+
license: apache-2.0
|
| 54 |
+
library_name: sentence-transformers
|
| 55 |
+
tags:
|
| 56 |
+
- sentence-transformers
|
| 57 |
+
- feature-extraction
|
| 58 |
+
- sentence-similarity
|
| 59 |
+
- transformers
|
| 60 |
+
- text-embeddings-inference
|
| 61 |
+
- llama-cpp
|
| 62 |
+
- gguf-my-repo
|
| 63 |
+
language_bcp47:
|
| 64 |
+
- fr-ca
|
| 65 |
+
- pt-br
|
| 66 |
+
- zh-cn
|
| 67 |
+
- zh-tw
|
| 68 |
+
pipeline_tag: sentence-similarity
|
| 69 |
+
base_model: sentence-transformers/paraphrase-multilingual-mpnet-base-v2
|
| 70 |
+
---
|
| 71 |
+
|
| 72 |
+
# MagicalAlchemist/paraphrase-multilingual-mpnet-base-v2-Q8_0-GGUF
|
| 73 |
+
This model was converted to GGUF format from [`sentence-transformers/paraphrase-multilingual-mpnet-base-v2`](https://huggingface.co/sentence-transformers/paraphrase-multilingual-mpnet-base-v2) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
|
| 74 |
+
Refer to the [original model card](https://huggingface.co/sentence-transformers/paraphrase-multilingual-mpnet-base-v2) for more details on the model.
|
| 75 |
+
|
| 76 |
+
## Use with llama.cpp
|
| 77 |
+
Install llama.cpp through brew (works on Mac and Linux)
|
| 78 |
+
|
| 79 |
+
```bash
|
| 80 |
+
brew install llama.cpp
|
| 81 |
+
|
| 82 |
+
```
|
| 83 |
+
Invoke the llama.cpp server or the CLI.
|
| 84 |
+
|
| 85 |
+
### CLI:
|
| 86 |
+
```bash
|
| 87 |
+
llama-cli --hf-repo MagicalAlchemist/paraphrase-multilingual-mpnet-base-v2-Q8_0-GGUF --hf-file paraphrase-multilingual-mpnet-base-v2-q8_0.gguf -p "The meaning to life and the universe is"
|
| 88 |
+
```
|
| 89 |
+
|
| 90 |
+
### Server:
|
| 91 |
+
```bash
|
| 92 |
+
llama-server --hf-repo MagicalAlchemist/paraphrase-multilingual-mpnet-base-v2-Q8_0-GGUF --hf-file paraphrase-multilingual-mpnet-base-v2-q8_0.gguf -c 2048
|
| 93 |
+
```
|
| 94 |
+
|
| 95 |
+
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.
|
| 96 |
+
|
| 97 |
+
Step 1: Clone llama.cpp from GitHub.
|
| 98 |
+
```
|
| 99 |
+
git clone https://github.com/ggerganov/llama.cpp
|
| 100 |
+
```
|
| 101 |
+
|
| 102 |
+
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).
|
| 103 |
+
```
|
| 104 |
+
cd llama.cpp && LLAMA_CURL=1 make
|
| 105 |
+
```
|
| 106 |
+
|
| 107 |
+
Step 3: Run inference through the main binary.
|
| 108 |
+
```
|
| 109 |
+
./llama-cli --hf-repo MagicalAlchemist/paraphrase-multilingual-mpnet-base-v2-Q8_0-GGUF --hf-file paraphrase-multilingual-mpnet-base-v2-q8_0.gguf -p "The meaning to life and the universe is"
|
| 110 |
+
```
|
| 111 |
+
or
|
| 112 |
+
```
|
| 113 |
+
./llama-server --hf-repo MagicalAlchemist/paraphrase-multilingual-mpnet-base-v2-Q8_0-GGUF --hf-file paraphrase-multilingual-mpnet-base-v2-q8_0.gguf -c 2048
|
| 114 |
+
```
|