ultrawelfare
commited on
Commit
•
35ca7a0
1
Parent(s):
d4dfa77
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
library_name: transformers
|
4 |
+
pipeline_tag: text-generation
|
5 |
+
language:
|
6 |
+
- bg
|
7 |
+
- ca
|
8 |
+
- code
|
9 |
+
- cs
|
10 |
+
- cy
|
11 |
+
- da
|
12 |
+
- de
|
13 |
+
- el
|
14 |
+
- en
|
15 |
+
- es
|
16 |
+
- et
|
17 |
+
- eu
|
18 |
+
- fi
|
19 |
+
- fr
|
20 |
+
- ga
|
21 |
+
- gl
|
22 |
+
- hr
|
23 |
+
- hu
|
24 |
+
- it
|
25 |
+
- lt
|
26 |
+
- lv
|
27 |
+
- mt
|
28 |
+
- nl
|
29 |
+
- nn
|
30 |
+
- \no
|
31 |
+
- oc
|
32 |
+
- pl
|
33 |
+
- pt
|
34 |
+
- ro
|
35 |
+
- ru
|
36 |
+
- sh
|
37 |
+
- sk
|
38 |
+
- sl
|
39 |
+
- sr
|
40 |
+
- sv
|
41 |
+
- uk
|
42 |
+
tags:
|
43 |
+
- llama-cpp
|
44 |
+
- gguf-my-repo
|
45 |
+
base_model: BSC-LT/salamandra-7b
|
46 |
+
---
|
47 |
+
|
48 |
+
# ultrawelfare/salamandra-7b-Q5_K_M-GGUF
|
49 |
+
This model was converted to GGUF format from [`BSC-LT/salamandra-7b`](https://huggingface.co/BSC-LT/salamandra-7b) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
|
50 |
+
Refer to the [original model card](https://huggingface.co/BSC-LT/salamandra-7b) for more details on the model.
|
51 |
+
|
52 |
+
## Use with llama.cpp
|
53 |
+
Install llama.cpp through brew (works on Mac and Linux)
|
54 |
+
|
55 |
+
```bash
|
56 |
+
brew install llama.cpp
|
57 |
+
|
58 |
+
```
|
59 |
+
Invoke the llama.cpp server or the CLI.
|
60 |
+
|
61 |
+
### CLI:
|
62 |
+
```bash
|
63 |
+
llama-cli --hf-repo ultrawelfare/salamandra-7b-Q5_K_M-GGUF --hf-file salamandra-7b-q5_k_m.gguf -p "The meaning to life and the universe is"
|
64 |
+
```
|
65 |
+
|
66 |
+
### Server:
|
67 |
+
```bash
|
68 |
+
llama-server --hf-repo ultrawelfare/salamandra-7b-Q5_K_M-GGUF --hf-file salamandra-7b-q5_k_m.gguf -c 2048
|
69 |
+
```
|
70 |
+
|
71 |
+
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.
|
72 |
+
|
73 |
+
Step 1: Clone llama.cpp from GitHub.
|
74 |
+
```
|
75 |
+
git clone https://github.com/ggerganov/llama.cpp
|
76 |
+
```
|
77 |
+
|
78 |
+
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).
|
79 |
+
```
|
80 |
+
cd llama.cpp && LLAMA_CURL=1 make
|
81 |
+
```
|
82 |
+
|
83 |
+
Step 3: Run inference through the main binary.
|
84 |
+
```
|
85 |
+
./llama-cli --hf-repo ultrawelfare/salamandra-7b-Q5_K_M-GGUF --hf-file salamandra-7b-q5_k_m.gguf -p "The meaning to life and the universe is"
|
86 |
+
```
|
87 |
+
or
|
88 |
+
```
|
89 |
+
./llama-server --hf-repo ultrawelfare/salamandra-7b-Q5_K_M-GGUF --hf-file salamandra-7b-q5_k_m.gguf -c 2048
|
90 |
+
```
|