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