bartowski commited on
Commit
262de4c
โ€ข
1 Parent(s): d427c29

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +42 -55
README.md CHANGED
@@ -9,83 +9,70 @@ tags:
9
  - chatqa
10
  - llama-3
11
  - pytorch
 
12
  quantized_by: bartowski
 
 
 
 
 
 
 
 
 
13
  ---
14
 
15
- ## Llamacpp imatrix Quantizations of Llama-3-ChatQA-1.5-8B
16
 
17
- Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b2777">b2777</a> for quantization.
18
 
19
- Original model: https://huggingface.co/nvidia/Llama3-ChatQA-1.5-8B
 
 
20
 
21
- All quants made using imatrix option with dataset provided by Kalomaze [here](https://github.com/ggerganov/llama.cpp/discussions/5263#discussioncomment-8395384)
 
 
 
22
 
23
- ## Prompt format
24
 
25
- ```
26
- System: {System}
27
 
28
- {Context}
 
 
 
29
 
30
- User: {Question}
31
 
32
- Assistant: {Response}
33
 
34
- User: {Question}
35
-
36
- Assistant:
37
 
38
  ```
 
39
 
40
- ## Download a file (not the whole branch) from below:
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
- ## Which file should I choose?
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
- If you want the absolute maximum quality, add both your system RAM and your GPU's VRAM together, then similarly grab a quant with a file size 1-2GB Smaller than that total.
 
76
 
77
- Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
78
 
79
- If you don't want to think too much, grab one of the K-quants. These are in format 'QX_K_X', like Q5_K_M.
80
 
81
- If you want to get more into the weeds, you can check out this extremely useful feature chart:
 
82
 
83
- [llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
84
 
85
- But basically, if you're aiming for below Q4, and you're running cuBLAS (Nvidia) or rocBLAS (AMD), you should look towards the I-quants. These are in format IQX_X, like IQ3_M. These are newer and offer better performance for their size.
86
 
87
- These I-quants can also be used on CPU and Apple Metal, but will be slower than their K-quant equivalent, so speed vs performance is a tradeoff you'll have to decide.
88
 
89
- The I-quants are *not* compatible with Vulcan, which is also AMD, so if you have an AMD card double check if you're using the rocBLAS build or the Vulcan build. At the time of writing this, LM Studio has a preview with ROCm support, and other inference engines have specific builds for ROCm.
90
 
91
- Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski
 
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.