Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
inference: false
|
3 |
+
library_name: transformers
|
4 |
+
language:
|
5 |
+
- en
|
6 |
+
- fr
|
7 |
+
- de
|
8 |
+
- es
|
9 |
+
- it
|
10 |
+
- pt
|
11 |
+
- ja
|
12 |
+
- ko
|
13 |
+
- zh
|
14 |
+
- ar
|
15 |
+
- el
|
16 |
+
- fa
|
17 |
+
- pl
|
18 |
+
- id
|
19 |
+
- cs
|
20 |
+
- he
|
21 |
+
- hi
|
22 |
+
- nl
|
23 |
+
- ro
|
24 |
+
- ru
|
25 |
+
- tr
|
26 |
+
- uk
|
27 |
+
- vi
|
28 |
+
license: cc-by-nc-4.0
|
29 |
+
extra_gated_prompt: By submitting this form, you agree to the [License Agreement](https://cohere.com/c4ai-cc-by-nc-license) and
|
30 |
+
acknowledge that the information you provide will be collected, used, and shared
|
31 |
+
in accordance with Cohere’s [Privacy Policy]( https://cohere.com/privacy). You’ll
|
32 |
+
receive email updates about C4AI and Cohere research, events, products and services.
|
33 |
+
You can unsubscribe at any time.
|
34 |
+
extra_gated_fields:
|
35 |
+
Name: text
|
36 |
+
Affiliation: text
|
37 |
+
Country: country
|
38 |
+
I agree to use this model for non-commercial use ONLY: checkbox
|
39 |
+
base_model: CohereForAI/aya-expanse-8b
|
40 |
+
tags:
|
41 |
+
- llama-cpp
|
42 |
+
- gguf-my-repo
|
43 |
+
---
|
44 |
+
|
45 |
+
# YiHuan/aya-expanse-8b-Q4_K_M-GGUF
|
46 |
+
This model was converted to GGUF format from [`CohereForAI/aya-expanse-8b`](https://huggingface.co/CohereForAI/aya-expanse-8b) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
|
47 |
+
Refer to the [original model card](https://huggingface.co/CohereForAI/aya-expanse-8b) for more details on the model.
|
48 |
+
|
49 |
+
## Use with llama.cpp
|
50 |
+
Install llama.cpp through brew (works on Mac and Linux)
|
51 |
+
|
52 |
+
```bash
|
53 |
+
brew install llama.cpp
|
54 |
+
|
55 |
+
```
|
56 |
+
Invoke the llama.cpp server or the CLI.
|
57 |
+
|
58 |
+
### CLI:
|
59 |
+
```bash
|
60 |
+
llama-cli --hf-repo YiHuan/aya-expanse-8b-Q4_K_M-GGUF --hf-file aya-expanse-8b-q4_k_m.gguf -p "The meaning to life and the universe is"
|
61 |
+
```
|
62 |
+
|
63 |
+
### Server:
|
64 |
+
```bash
|
65 |
+
llama-server --hf-repo YiHuan/aya-expanse-8b-Q4_K_M-GGUF --hf-file aya-expanse-8b-q4_k_m.gguf -c 2048
|
66 |
+
```
|
67 |
+
|
68 |
+
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.
|
69 |
+
|
70 |
+
Step 1: Clone llama.cpp from GitHub.
|
71 |
+
```
|
72 |
+
git clone https://github.com/ggerganov/llama.cpp
|
73 |
+
```
|
74 |
+
|
75 |
+
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).
|
76 |
+
```
|
77 |
+
cd llama.cpp && LLAMA_CURL=1 make
|
78 |
+
```
|
79 |
+
|
80 |
+
Step 3: Run inference through the main binary.
|
81 |
+
```
|
82 |
+
./llama-cli --hf-repo YiHuan/aya-expanse-8b-Q4_K_M-GGUF --hf-file aya-expanse-8b-q4_k_m.gguf -p "The meaning to life and the universe is"
|
83 |
+
```
|
84 |
+
or
|
85 |
+
```
|
86 |
+
./llama-server --hf-repo YiHuan/aya-expanse-8b-Q4_K_M-GGUF --hf-file aya-expanse-8b-q4_k_m.gguf -c 2048
|
87 |
+
```
|