Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: BSC-LT/salamandra-7b
|
| 3 |
+
datasets:
|
| 4 |
+
- oscar-corpus/colossal-oscar-1.0
|
| 5 |
+
- HuggingFaceFW/fineweb-edu
|
| 6 |
+
- joelniklaus/eurlex_resources
|
| 7 |
+
- joelito/legal-mc4
|
| 8 |
+
- projecte-aina/CATalog
|
| 9 |
+
- UFRGS/brwac
|
| 10 |
+
- community-datasets/hrwac
|
| 11 |
+
- danish-foundation-models/danish-gigaword
|
| 12 |
+
- HiTZ/euscrawl
|
| 13 |
+
- PleIAs/French-PD-Newspapers
|
| 14 |
+
- PleIAs/French-PD-Books
|
| 15 |
+
- AI-team-UoA/greek_legal_code
|
| 16 |
+
- HiTZ/latxa-corpus-v1.1
|
| 17 |
+
- allenai/peS2o
|
| 18 |
+
- pile-of-law/pile-of-law
|
| 19 |
+
- PORTULAN/parlamento-pt
|
| 20 |
+
- hoskinson-center/proof-pile
|
| 21 |
+
- togethercomputer/RedPajama-Data-1T
|
| 22 |
+
- bigcode/starcoderdata
|
| 23 |
+
- bjoernp/tagesschau-2018-2023
|
| 24 |
+
- EleutherAI/the_pile_deduplicated
|
| 25 |
+
language:
|
| 26 |
+
- bg
|
| 27 |
+
- ca
|
| 28 |
+
- code
|
| 29 |
+
- cs
|
| 30 |
+
- cy
|
| 31 |
+
- da
|
| 32 |
+
- de
|
| 33 |
+
- el
|
| 34 |
+
- en
|
| 35 |
+
- es
|
| 36 |
+
- et
|
| 37 |
+
- eu
|
| 38 |
+
- fi
|
| 39 |
+
- fr
|
| 40 |
+
- ga
|
| 41 |
+
- gl
|
| 42 |
+
- hr
|
| 43 |
+
- hu
|
| 44 |
+
- it
|
| 45 |
+
- lt
|
| 46 |
+
- lv
|
| 47 |
+
- mt
|
| 48 |
+
- nl
|
| 49 |
+
- nn
|
| 50 |
+
- \no
|
| 51 |
+
- oc
|
| 52 |
+
- pl
|
| 53 |
+
- pt
|
| 54 |
+
- ro
|
| 55 |
+
- ru
|
| 56 |
+
- sh
|
| 57 |
+
- sk
|
| 58 |
+
- sl
|
| 59 |
+
- sr
|
| 60 |
+
- sv
|
| 61 |
+
- uk
|
| 62 |
+
library_name: transformers
|
| 63 |
+
license: apache-2.0
|
| 64 |
+
pipeline_tag: text-generation
|
| 65 |
+
tags:
|
| 66 |
+
- llama-cpp
|
| 67 |
+
- gguf-my-repo
|
| 68 |
+
---
|
| 69 |
+
|
| 70 |
+
# Evokipoo/salamandra-7b-Q4_K_M-GGUF
|
| 71 |
+
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.
|
| 72 |
+
Refer to the [original model card](https://huggingface.co/BSC-LT/salamandra-7b) 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 Evokipoo/salamandra-7b-Q4_K_M-GGUF --hf-file salamandra-7b-q4_k_m.gguf -p "The meaning to life and the universe is"
|
| 86 |
+
```
|
| 87 |
+
|
| 88 |
+
### Server:
|
| 89 |
+
```bash
|
| 90 |
+
llama-server --hf-repo Evokipoo/salamandra-7b-Q4_K_M-GGUF --hf-file salamandra-7b-q4_k_m.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 Evokipoo/salamandra-7b-Q4_K_M-GGUF --hf-file salamandra-7b-q4_k_m.gguf -p "The meaning to life and the universe is"
|
| 108 |
+
```
|
| 109 |
+
or
|
| 110 |
+
```
|
| 111 |
+
./llama-server --hf-repo Evokipoo/salamandra-7b-Q4_K_M-GGUF --hf-file salamandra-7b-q4_k_m.gguf -c 2048
|
| 112 |
+
```
|