Update README.md
Browse files
README.md
CHANGED
@@ -9,83 +9,70 @@ tags:
|
|
9 |
- chatqa
|
10 |
- llama-3
|
11 |
- pytorch
|
|
|
12 |
quantized_by: bartowski
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
---
|
14 |
|
15 |
-
##
|
16 |
|
17 |
-
|
18 |
|
19 |
-
|
|
|
|
|
20 |
|
21 |
-
|
|
|
|
|
|
|
22 |
|
23 |
-
## Prompt
|
24 |
|
25 |
-
|
26 |
-
System: {System}
|
27 |
|
28 |
-
|
|
|
|
|
|
|
29 |
|
30 |
-
|
31 |
|
32 |
-
|
33 |
|
34 |
-
|
35 |
-
|
36 |
-
Assistant:
|
37 |
|
38 |
```
|
|
|
39 |
|
40 |
-
|
41 |
-
|
42 |
-
| Filename | Quant type | File Size | Description |
|
43 |
-
| -------- | ---------- | --------- | ----------- |
|
44 |
-
| [ChatQA-1.5-8B-Q8_0.gguf](https://huggingface.co/bartowski/Llama-3-ChatQA-1.5-8B-GGUF/blob/main/ChatQA-1.5-8B-Q8_0.gguf) | Q8_0 | 8.54GB | Extremely high quality, generally unneeded but max available quant. |
|
45 |
-
| [ChatQA-1.5-8B-Q6_K.gguf](https://huggingface.co/bartowski/Llama-3-ChatQA-1.5-8B-GGUF/blob/main/ChatQA-1.5-8B-Q6_K.gguf) | Q6_K | 6.59GB | Very high quality, near perfect, *recommended*. |
|
46 |
-
| [ChatQA-1.5-8B-Q5_K_M.gguf](https://huggingface.co/bartowski/Llama-3-ChatQA-1.5-8B-GGUF/blob/main/ChatQA-1.5-8B-Q5_K_M.gguf) | Q5_K_M | 5.73GB | High quality, *recommended*. |
|
47 |
-
| [ChatQA-1.5-8B-Q5_K_S.gguf](https://huggingface.co/bartowski/Llama-3-ChatQA-1.5-8B-GGUF/blob/main/ChatQA-1.5-8B-Q5_K_S.gguf) | Q5_K_S | 5.59GB | High quality, *recommended*. |
|
48 |
-
| [ChatQA-1.5-8B-Q4_K_M.gguf](https://huggingface.co/bartowski/Llama-3-ChatQA-1.5-8B-GGUF/blob/main/ChatQA-1.5-8B-Q4_K_M.gguf) | Q4_K_M | 4.92GB | Good quality, uses about 4.83 bits per weight, *recommended*. |
|
49 |
-
| [ChatQA-1.5-8B-Q4_K_S.gguf](https://huggingface.co/bartowski/Llama-3-ChatQA-1.5-8B-GGUF/blob/main/ChatQA-1.5-8B-Q4_K_S.gguf) | Q4_K_S | 4.69GB | Slightly lower quality with more space savings, *recommended*. |
|
50 |
-
| [ChatQA-1.5-8B-IQ4_NL.gguf](https://huggingface.co/bartowski/Llama-3-ChatQA-1.5-8B-GGUF/blob/main/ChatQA-1.5-8B-IQ4_NL.gguf) | IQ4_NL | 4.67GB | Decent quality, slightly smaller than Q4_K_S with similar performance *recommended*. |
|
51 |
-
| [ChatQA-1.5-8B-IQ4_XS.gguf](https://huggingface.co/bartowski/Llama-3-ChatQA-1.5-8B-GGUF/blob/main/ChatQA-1.5-8B-IQ4_XS.gguf) | IQ4_XS | 4.44GB | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
|
52 |
-
| [ChatQA-1.5-8B-Q3_K_L.gguf](https://huggingface.co/bartowski/Llama-3-ChatQA-1.5-8B-GGUF/blob/main/ChatQA-1.5-8B-Q3_K_L.gguf) | Q3_K_L | 4.32GB | Lower quality but usable, good for low RAM availability. |
|
53 |
-
| [ChatQA-1.5-8B-Q3_K_M.gguf](https://huggingface.co/bartowski/Llama-3-ChatQA-1.5-8B-GGUF/blob/main/ChatQA-1.5-8B-Q3_K_M.gguf) | Q3_K_M | 4.01GB | Even lower quality. |
|
54 |
-
| [ChatQA-1.5-8B-IQ3_M.gguf](https://huggingface.co/bartowski/Llama-3-ChatQA-1.5-8B-GGUF/blob/main/ChatQA-1.5-8B-IQ3_M.gguf) | IQ3_M | 3.78GB | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
|
55 |
-
| [ChatQA-1.5-8B-IQ3_S.gguf](https://huggingface.co/bartowski/Llama-3-ChatQA-1.5-8B-GGUF/blob/main/ChatQA-1.5-8B-IQ3_S.gguf) | IQ3_S | 3.68GB | Lower quality, new method with decent performance, recommended over Q3_K_S quant, same size with better performance. |
|
56 |
-
| [ChatQA-1.5-8B-Q3_K_S.gguf](https://huggingface.co/bartowski/Llama-3-ChatQA-1.5-8B-GGUF/blob/main/ChatQA-1.5-8B-Q3_K_S.gguf) | Q3_K_S | 3.66GB | Low quality, not recommended. |
|
57 |
-
| [ChatQA-1.5-8B-IQ3_XS.gguf](https://huggingface.co/bartowski/Llama-3-ChatQA-1.5-8B-GGUF/blob/main/ChatQA-1.5-8B-IQ3_XS.gguf) | IQ3_XS | 3.51GB | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
|
58 |
-
| [ChatQA-1.5-8B-IQ3_XXS.gguf](https://huggingface.co/bartowski/Llama-3-ChatQA-1.5-8B-GGUF/blob/main/ChatQA-1.5-8B-IQ3_XXS.gguf) | IQ3_XXS | 3.27GB | Lower quality, new method with decent performance, comparable to Q3 quants. |
|
59 |
-
| [ChatQA-1.5-8B-Q2_K.gguf](https://huggingface.co/bartowski/Llama-3-ChatQA-1.5-8B-GGUF/blob/main/ChatQA-1.5-8B-Q2_K.gguf) | Q2_K | 3.17GB | Very low quality but surprisingly usable. |
|
60 |
-
| [ChatQA-1.5-8B-IQ2_M.gguf](https://huggingface.co/bartowski/Llama-3-ChatQA-1.5-8B-GGUF/blob/main/ChatQA-1.5-8B-IQ2_M.gguf) | IQ2_M | 2.94GB | Very low quality, uses SOTA techniques to also be surprisingly usable. |
|
61 |
-
| [ChatQA-1.5-8B-IQ2_S.gguf](https://huggingface.co/bartowski/Llama-3-ChatQA-1.5-8B-GGUF/blob/main/ChatQA-1.5-8B-IQ2_S.gguf) | IQ2_S | 2.75GB | Very low quality, uses SOTA techniques to be usable. |
|
62 |
-
| [ChatQA-1.5-8B-IQ2_XS.gguf](https://huggingface.co/bartowski/Llama-3-ChatQA-1.5-8B-GGUF/blob/main/ChatQA-1.5-8B-IQ2_XS.gguf) | IQ2_XS | 2.60GB | Very low quality, uses SOTA techniques to be usable. |
|
63 |
-
| [ChatQA-1.5-8B-IQ2_XXS.gguf](https://huggingface.co/bartowski/Llama-3-ChatQA-1.5-8B-GGUF/blob/main/ChatQA-1.5-8B-IQ2_XXS.gguf) | IQ2_XXS | 2.39GB | Lower quality, uses SOTA techniques to be usable. |
|
64 |
-
| [ChatQA-1.5-8B-IQ1_M.gguf](https://huggingface.co/bartowski/Llama-3-ChatQA-1.5-8B-GGUF/blob/main/ChatQA-1.5-8B-IQ1_M.gguf) | IQ1_M | 2.16GB | Extremely low quality, *not* recommended. |
|
65 |
-
| [ChatQA-1.5-8B-IQ1_S.gguf](https://huggingface.co/bartowski/Llama-3-ChatQA-1.5-8B-GGUF/blob/main/ChatQA-1.5-8B-IQ1_S.gguf) | IQ1_S | 2.01GB | Extremely low quality, *not* recommended. |
|
66 |
|
67 |
-
|
68 |
-
|
69 |
-
A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
|
70 |
-
|
71 |
-
The first thing to figure out is how big a model you can run. To do this, you'll need to figure out how much RAM and/or VRAM you have.
|
72 |
-
|
73 |
-
If you want your model running as FAST as possible, you'll want to fit the whole thing on your GPU's VRAM. Aim for a quant with a file size 1-2GB smaller than your GPU's total VRAM.
|
74 |
|
75 |
-
|
|
|
76 |
|
77 |
-
|
78 |
|
79 |
-
|
80 |
|
81 |
-
|
|
|
82 |
|
83 |
-
|
84 |
|
85 |
-
|
86 |
|
87 |
-
|
88 |
|
89 |
-
|
90 |
|
91 |
-
|
|
|
9 |
- chatqa
|
10 |
- llama-3
|
11 |
- pytorch
|
12 |
+
base_model: nvidia/Llama3-ChatQA-1.5-8B
|
13 |
quantized_by: bartowski
|
14 |
+
lm_studio:
|
15 |
+
param_count: 8b
|
16 |
+
use_case: RAG
|
17 |
+
release_date: 28-04-2024
|
18 |
+
model_creator: nvidia
|
19 |
+
prompt_template: chatQA
|
20 |
+
system_prompt: "This is a chat between a user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions based on the context. The assistant should also indicate when the answer cannot be found in the context."
|
21 |
+
base_model: llama
|
22 |
+
original_repo: nvidia/Llama3-ChatQA-1.5-8B
|
23 |
---
|
24 |
|
25 |
+
## ๐ซ Community Model> Llama 3 ChatQA 1.5 8B by NVIDIA
|
26 |
|
27 |
+
*๐พ [LM Studio](https://lmstudio.ai) Community models highlights program. Highlighting new & noteworthy models by the community. Join the conversation on [Discord](https://discord.gg/aPQfnNkxGC)*.
|
28 |
|
29 |
+
**Model creator:** [nvidia](https://huggingface.co/nvidia)<br>
|
30 |
+
**Original model**: [Llama3-ChatQA-1.5-8B](https://huggingface.co/nvidia/Llama3-ChatQA-1.5-8B)<br>
|
31 |
+
**GGUF quantization:** provided by [bartowski](https://huggingface.co/bartowski) based on `llama.cpp` release [b2777](https://github.com/ggerganov/llama.cpp/releases/tag/b2777)<br>
|
32 |
|
33 |
+
## Model Summary:
|
34 |
+
ChatQA 1.5 is a series of models trained to excel at RAG (retrieval augmented generation) tasks.<br>
|
35 |
+
This model may work for general uses, but it primarily meant for use as a context sumarizer or context extraction.<br>
|
36 |
+
Using the context provided after the system message, the model is able to provide contextual and accurate answers to queries.<br>
|
37 |
|
38 |
+
## Prompt Template:
|
39 |
|
40 |
+
For now, you'll need to make your own template. Choose the `LM Studio Blank Preset` in your LM Studio.
|
|
|
41 |
|
42 |
+
Then, set the system prompt to whatever you'd like (check the recommended one below), and set the following values:<br>
|
43 |
+
`System Message Prefix`: 'System: '<br>
|
44 |
+
`User Message Prefix`: '\n\nUser: '<br>
|
45 |
+
`User Message Suffix`: '\n\nAssistant: <|begin_of_text|>'<br>
|
46 |
|
47 |
+
If you want to provide context, place that in the system message suffix like so:
|
48 |
|
49 |
+
`System Message Suffix`: '\n\n{context}'<br>
|
50 |
|
51 |
+
Under the hood, the model will see a prompt that's formatted like:
|
|
|
|
|
52 |
|
53 |
```
|
54 |
+
System: This is a chat between a user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions based on the context. The assistant should also indicate when the answer cannot be found in the context.
|
55 |
|
56 |
+
This is some context
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
|
58 |
+
User: {Question}
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
|
60 |
+
Assistant:
|
61 |
+
```
|
62 |
|
63 |
+
nVidia also seems to recommend starting your query with "Please give a full and complete answer for the question."
|
64 |
|
65 |
+
## Technical Details
|
66 |
|
67 |
+
Llama3-ChatQA-1.5 excels at conversational question answering (QA) and retrieval-augmented generation (RAG). Llama3-ChatQA-1.5 is developed using an improved training recipe from ChatQA (1.0), and it is built on top of Llama-3 base model.<br>
|
68 |
+
Specifically, more conversational QA data was used to enhance its tabular and arithmetic calculation capability.
|
69 |
|
70 |
+
## Special thanks
|
71 |
|
72 |
+
๐ Special thanks to [Georgi Gerganov](https://github.com/ggerganov) and the whole team working on [llama.cpp](https://github.com/ggerganov/llama.cpp/) for making all of this possible.
|
73 |
|
74 |
+
๐ Special thanks to [Kalomaze](https://github.com/kalomaze) for his dataset (linked [here](https://github.com/ggerganov/llama.cpp/discussions/5263)) that was used for calculating the imatrix for the IQ1_M and IQ2_XS quants, which makes them usable even at their tiny size!
|
75 |
|
76 |
+
## Disclaimers
|
77 |
|
78 |
+
LM Studio is not the creator, originator, or owner of any Model featured in the Community Model Program. Each Community Model is created and provided by third parties. LM Studio does not endorse, support, represent or guarantee the completeness, truthfulness, accuracy, or reliability of any Community Model. You understand that Community Models can produce content that might be offensive, harmful, inaccurate or otherwise inappropriate, or deceptive. Each Community Model is the sole responsibility of the person or entity who originated such Model. LM Studio may not monitor or control the Community Models and cannot, and does not, take responsibility for any such Model. LM Studio disclaims all warranties or guarantees about the accuracy, reliability or benefits of the Community Models. LM Studio further disclaims any warranty that the Community Model will meet your requirements, be secure, uninterrupted or available at any time or location, or error-free, viruses-free, or that any errors will be corrected, or otherwise. You will be solely responsible for any damage resulting from your use of or access to the Community Models, your downloading of any Community Model, or use of any other Community Model provided by or through LM Studio.
|