apepkuss79
commited on
Commit
•
7f54d35
1
Parent(s):
05847a1
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -1,3 +1,115 @@
|
|
1 |
---
|
2 |
-
license:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
license: llama3.1
|
3 |
+
model_name: Meta-Llama-3.1-8B
|
4 |
+
arxiv: 2307.09288
|
5 |
+
base_model: meta-llama/Meta-Llama-3.1-8B
|
6 |
+
inference: false
|
7 |
+
model_creator: Meta Llama3
|
8 |
+
model_type: llama
|
9 |
+
pipeline_tag: text-generation
|
10 |
+
quantized_by: Second State Inc.
|
11 |
+
language:
|
12 |
+
- en
|
13 |
+
- de
|
14 |
+
- fr
|
15 |
+
- it
|
16 |
+
- pt
|
17 |
+
- hi
|
18 |
+
- es
|
19 |
+
- th
|
20 |
+
tags:
|
21 |
+
- facebook
|
22 |
+
- meta
|
23 |
+
- pytorch
|
24 |
+
- llama
|
25 |
+
- llama-3
|
26 |
---
|
27 |
+
|
28 |
+
<!-- header start -->
|
29 |
+
<!-- 200823 -->
|
30 |
+
<div style="width: auto; margin-left: auto; margin-right: auto">
|
31 |
+
<img src="https://github.com/LlamaEdge/LlamaEdge/raw/dev/assets/logo.svg" style="width: 100%; min-width: 400px; display: block; margin: auto;">
|
32 |
+
</div>
|
33 |
+
<hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
|
34 |
+
<!-- header end -->
|
35 |
+
|
36 |
+
# Meta-Llama-3.1-8B-GGUF
|
37 |
+
|
38 |
+
## Original Model
|
39 |
+
|
40 |
+
[meta-llama/Meta-Llama-3.1-8B](https://huggingface.co/meta-llama/Meta-Llama-3.1-8B)
|
41 |
+
|
42 |
+
<!-- ## Run with LlamaEdge
|
43 |
+
|
44 |
+
- LlamaEdge version: [v0.12.4](https://github.com/LlamaEdge/LlamaEdge/releases/tag/0.12.4) and above
|
45 |
+
|
46 |
+
- Prompt template
|
47 |
+
|
48 |
+
- Prompt type: `llama-3-chat`
|
49 |
+
|
50 |
+
- Prompt string
|
51 |
+
|
52 |
+
```text
|
53 |
+
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
|
54 |
+
|
55 |
+
{{ system_prompt }}<|eot_id|><|start_header_id|>user<|end_header_id|>
|
56 |
+
|
57 |
+
{{ user_message_1 }}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
|
58 |
+
|
59 |
+
{{ model_answer_1 }}<|eot_id|><|start_header_id|>user<|end_header_id|>
|
60 |
+
|
61 |
+
{{ user_message_2 }}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
|
62 |
+
```
|
63 |
+
|
64 |
+
- Context size: `128000`
|
65 |
+
|
66 |
+
- Run as LlamaEdge service
|
67 |
+
|
68 |
+
- Chat
|
69 |
+
|
70 |
+
```bash
|
71 |
+
wasmedge --dir .:. --nn-preload default:GGML:AUTO:Meta-Llama-3.1-8B-Q5_K_M.gguf \
|
72 |
+
llama-api-server.wasm \
|
73 |
+
--prompt-template llama-3-chat \
|
74 |
+
--ctx-size 128000 \
|
75 |
+
--model-name Llama-3.1-8b
|
76 |
+
```
|
77 |
+
|
78 |
+
- Tool use
|
79 |
+
|
80 |
+
```bash
|
81 |
+
wasmedge --dir .:. --nn-preload default:GGML:AUTO:Meta-Llama-3.1-8B-Q5_K_M.gguf \
|
82 |
+
llama-api-server.wasm \
|
83 |
+
--prompt-template llama-3-tool \
|
84 |
+
--ctx-size 128000 \
|
85 |
+
--model-name Llama-3.1-8b
|
86 |
+
```
|
87 |
+
|
88 |
+
- Run as LlamaEdge command app
|
89 |
+
|
90 |
+
```bash
|
91 |
+
wasmedge --dir .:. --nn-preload default:GGML:AUTO:Meta-Llama-3.1-8B-Q5_K_M.gguf \
|
92 |
+
llama-chat.wasm \
|
93 |
+
--prompt-template llama-3-chat \
|
94 |
+
--ctx-size 128000
|
95 |
+
``` -->
|
96 |
+
|
97 |
+
## Quantized GGUF Models
|
98 |
+
|
99 |
+
| Name | Quant method | Bits | Size | Use case |
|
100 |
+
| ---- | ---- | ---- | ---- | ----- |
|
101 |
+
| [Meta-Llama-3.1-8B-Q2_K.gguf](https://huggingface.co/second-state/Meta-Llama-3.1-8B-GGUF/blob/main/Meta-Llama-3.1-8B-Q2_K.gguf) | Q2_K | 2 | 3.18 GB| smallest, significant quality loss - not recommended for most purposes |
|
102 |
+
| [Meta-Llama-3.1-8B-Q3_K_L.gguf](https://huggingface.co/second-state/Meta-Llama-3.1-8B-GGUF/blob/main/Meta-Llama-3.1-8B-Q3_K_L.gguf) | Q3_K_L | 3 | 4.32 GB| small, substantial quality loss |
|
103 |
+
| [Meta-Llama-3.1-8B-Q3_K_M.gguf](https://huggingface.co/second-state/Meta-Llama-3.1-8B-GGUF/blob/main/Meta-Llama-3.1-8B-Q3_K_M.gguf) | Q3_K_M | 3 | 4.02 GB| very small, high quality loss |
|
104 |
+
| [Meta-Llama-3.1-8B-Q3_K_S.gguf](https://huggingface.co/second-state/Meta-Llama-3.1-8B-GGUF/blob/main/Meta-Llama-3.1-8B-Q3_K_S.gguf) | Q3_K_S | 3 | 3.66 GB| very small, high quality loss |
|
105 |
+
| [Meta-Llama-3.1-8B-Q4_0.gguf](https://huggingface.co/second-state/Meta-Llama-3.1-8B-GGUF/blob/main/Meta-Llama-3.1-8B-Q4_0.gguf) | Q4_0 | 4 | 4.66 GB| legacy; small, very high quality loss - prefer using Q3_K_M |
|
106 |
+
| [Meta-Llama-3.1-8B-Q4_K_M.gguf](https://huggingface.co/second-state/Meta-Llama-3.1-8B-GGUF/blob/main/Meta-Llama-3.1-8B-Q4_K_M.gguf) | Q4_K_M | 4 | 4.92 GB| medium, balanced quality - recommended |
|
107 |
+
| [Meta-Llama-3.1-8B-Q4_K_S.gguf](https://huggingface.co/second-state/Meta-Llama-3.1-8B-GGUF/blob/main/Meta-Llama-3.1-8B-Q4_K_S.gguf) | Q4_K_S | 4 | 4.69 GB| small, greater quality loss |
|
108 |
+
| [Meta-Llama-3.1-8B-Q5_0.gguf](https://huggingface.co/second-state/Meta-Llama-3.1-8B-GGUF/blob/main/Meta-Llama-3.1-8B-Q5_0.gguf) | Q5_0 | 5 | 5.6 GB| legacy; medium, balanced quality - prefer using Q4_K_M |
|
109 |
+
| [Meta-Llama-3.1-8B-Q5_K_M.gguf](https://huggingface.co/second-state/Meta-Llama-3.1-8B-GGUF/blob/main/Meta-Llama-3.1-8B-Q5_K_M.gguf) | Q5_K_M | 5 | 5.73 GB| large, very low quality loss - recommended |
|
110 |
+
| [Meta-Llama-3.1-8B-Q5_K_S.gguf](https://huggingface.co/second-state/Meta-Llama-3.1-8B-GGUF/blob/main/Meta-Llama-3.1-8B-Q5_K_S.gguf) | Q5_K_S | 5 | 5.6 GB| large, low quality loss - recommended |
|
111 |
+
| [Meta-Llama-3.1-8B-Q6_K.gguf](https://huggingface.co/second-state/Meta-Llama-3.1-8B-GGUF/blob/main/Meta-Llama-3.1-8B-Q6_K.gguf) | Q6_K | 6 | 6.6 GB| very large, extremely low quality loss |
|
112 |
+
| [Meta-Llama-3.1-8B-Q8_0.gguf](https://huggingface.co/second-state/Meta-Llama-3.1-8B-GGUF/blob/main/Meta-Llama-3.1-8B-Q8_0.gguf) | Q8_0 | 8 | 8.54 GB| very large, extremely low quality loss - not recommended |
|
113 |
+
| [Meta-Llama-3.1-8B-f16.gguf](https://huggingface.co/second-state/Meta-Llama-3.1-8B-GGUF/blob/main/Meta-Llama-3.1-8B-f16.gguf) | f16 | 16 | 16.1 GB| |
|
114 |
+
|
115 |
+
*Quantized with llama.cpp b3613.*
|