fernandoruiz
commited on
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
datasets:
|
43 |
+
- oscar-corpus/colossal-oscar-1.0
|
44 |
+
- HuggingFaceFW/fineweb-edu
|
45 |
+
- joelniklaus/eurlex_resources
|
46 |
+
- joelito/legal-mc4
|
47 |
+
- projecte-aina/CATalog
|
48 |
+
- UFRGS/brwac
|
49 |
+
- community-datasets/hrwac
|
50 |
+
- danish-foundation-models/danish-gigaword
|
51 |
+
- HiTZ/euscrawl
|
52 |
+
- PleIAs/French-PD-Newspapers
|
53 |
+
- PleIAs/French-PD-Books
|
54 |
+
- AI-team-UoA/greek_legal_code
|
55 |
+
- HiTZ/latxa-corpus-v1.1
|
56 |
+
- allenai/peS2o
|
57 |
+
- pile-of-law/pile-of-law
|
58 |
+
- PORTULAN/parlamento-pt
|
59 |
+
- hoskinson-center/proof-pile
|
60 |
+
- togethercomputer/RedPajama-Data-1T
|
61 |
+
- bigcode/starcoderdata
|
62 |
+
- bjoernp/tagesschau-2018-2023
|
63 |
+
- EleutherAI/the_pile_deduplicated
|
64 |
+
base_model: BSC-LT/salamandra-7b-instruct
|
65 |
+
tags:
|
66 |
+
- llama-cpp
|
67 |
+
- gguf-my-repo
|
68 |
+
---
|
69 |
+
|
70 |
+
# fernandoruiz/salamandra-7b-instruct-Q4_0-GGUF
|
71 |
+
This model was converted to GGUF format from [`BSC-LT/salamandra-7b-instruct`](https://huggingface.co/BSC-LT/salamandra-7b-instruct) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
|
72 |
+
Refer to the [original model card](https://huggingface.co/BSC-LT/salamandra-7b-instruct) for more details on the model.
|
73 |
+
|
74 |
+
## Use with llama.cpp
|
75 |
+
Install llama.cpp through brew (works on Mac and Linux)
|
76 |
+
|
77 |
+
```bash
|
78 |
+
brew install llama.cpp
|
79 |
+
|
80 |
+
```
|
81 |
+
Invoke the llama.cpp server or the CLI.
|
82 |
+
|
83 |
+
### CLI:
|
84 |
+
```bash
|
85 |
+
llama-cli --hf-repo fernandoruiz/salamandra-7b-instruct-Q4_0-GGUF --hf-file salamandra-7b-instruct-q4_0.gguf -p "The meaning to life and the universe is"
|
86 |
+
```
|
87 |
+
|
88 |
+
### Server:
|
89 |
+
```bash
|
90 |
+
llama-server --hf-repo fernandoruiz/salamandra-7b-instruct-Q4_0-GGUF --hf-file salamandra-7b-instruct-q4_0.gguf -c 2048
|
91 |
+
```
|
92 |
+
|
93 |
+
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.
|
94 |
+
|
95 |
+
Step 1: Clone llama.cpp from GitHub.
|
96 |
+
```
|
97 |
+
git clone https://github.com/ggerganov/llama.cpp
|
98 |
+
```
|
99 |
+
|
100 |
+
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).
|
101 |
+
```
|
102 |
+
cd llama.cpp && LLAMA_CURL=1 make
|
103 |
+
```
|
104 |
+
|
105 |
+
Step 3: Run inference through the main binary.
|
106 |
+
```
|
107 |
+
./llama-cli --hf-repo fernandoruiz/salamandra-7b-instruct-Q4_0-GGUF --hf-file salamandra-7b-instruct-q4_0.gguf -p "The meaning to life and the universe is"
|
108 |
+
```
|
109 |
+
or
|
110 |
+
```
|
111 |
+
./llama-server --hf-repo fernandoruiz/salamandra-7b-instruct-Q4_0-GGUF --hf-file salamandra-7b-instruct-q4_0.gguf -c 2048
|
112 |
+
```
|