Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
- ja
|
5 |
+
license: llama2
|
6 |
+
library_name: transformers
|
7 |
+
tags:
|
8 |
+
- llama-cpp
|
9 |
+
- gguf-my-repo
|
10 |
+
pipeline_tag: text-generation
|
11 |
+
model_type: llama
|
12 |
+
---
|
13 |
+
|
14 |
+
# DavidAU/Swallow-7b-instruct-hf-Q6_K-GGUF
|
15 |
+
This model was converted to GGUF format from [`tokyotech-llm/Swallow-7b-instruct-hf`](https://huggingface.co/tokyotech-llm/Swallow-7b-instruct-hf) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
|
16 |
+
Refer to the [original model card](https://huggingface.co/tokyotech-llm/Swallow-7b-instruct-hf) for more details on the model.
|
17 |
+
## Use with llama.cpp
|
18 |
+
|
19 |
+
Install llama.cpp through brew.
|
20 |
+
|
21 |
+
```bash
|
22 |
+
brew install ggerganov/ggerganov/llama.cpp
|
23 |
+
```
|
24 |
+
Invoke the llama.cpp server or the CLI.
|
25 |
+
|
26 |
+
CLI:
|
27 |
+
|
28 |
+
```bash
|
29 |
+
llama-cli --hf-repo DavidAU/Swallow-7b-instruct-hf-Q6_K-GGUF --model swallow-7b-instruct-hf.Q6_K.gguf -p "The meaning to life and the universe is"
|
30 |
+
```
|
31 |
+
|
32 |
+
Server:
|
33 |
+
|
34 |
+
```bash
|
35 |
+
llama-server --hf-repo DavidAU/Swallow-7b-instruct-hf-Q6_K-GGUF --model swallow-7b-instruct-hf.Q6_K.gguf -c 2048
|
36 |
+
```
|
37 |
+
|
38 |
+
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.
|
39 |
+
|
40 |
+
```
|
41 |
+
git clone https://github.com/ggerganov/llama.cpp && cd llama.cpp && make && ./main -m swallow-7b-instruct-hf.Q6_K.gguf -n 128
|
42 |
+
```
|