bartowski commited on
Commit
3f2dc8b
โ€ข
1 Parent(s): b3d88e2

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +31 -77
README.md CHANGED
@@ -5,104 +5,58 @@ tags:
5
  - mergekit
6
  - lazymergekit
7
  base_model:
8
- - meta-llama/Meta-Llama-3-70B-Instruct
9
- - meta-llama/Meta-Llama-3-70B-Instruct
10
- - meta-llama/Meta-Llama-3-70B-Instruct
11
- - meta-llama/Meta-Llama-3-70B-Instruct
12
- - meta-llama/Meta-Llama-3-70B-Instruct
13
- - meta-llama/Meta-Llama-3-70B-Instruct
14
- - meta-llama/Meta-Llama-3-70B-Instruct
15
  quantized_by: bartowski
16
  pipeline_tag: text-generation
 
 
 
 
 
 
 
 
 
17
  ---
18
 
19
- ## Llamacpp imatrix Quantizations of Meta-Llama-3-120B-Instruct
20
 
21
- Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b2794">b2794</a> for quantization.
22
 
23
- Original model: https://huggingface.co/mlabonne/Meta-Llama-3-120B-Instruct
 
 
24
 
25
- All quants made using imatrix option with dataset provided by Kalomaze [here](https://github.com/ggerganov/llama.cpp/discussions/5263#discussioncomment-8395384)
 
 
26
 
27
- ## Prompt format
28
 
29
- ```
30
- <|begin_of_text|><|start_header_id|>system<|end_header_id|>
31
-
32
- {system_prompt}<|eot_id|><|start_header_id|>user<|end_header_id|>
33
-
34
- {prompt}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
35
 
 
36
 
37
- ```
38
-
39
- ## Download a file (not the whole branch) from below:
40
-
41
- | Filename | Quant type | File Size | Description |
42
- | -------- | ---------- | --------- | ----------- |
43
- | [Meta-Llama-3-120B-Instruct-Q4_K_M.gguf](https://huggingface.co/bartowski/Meta-Llama-3-120B-Instruct-GGUF/tree/main/Meta-Llama-3-120B-Instruct-Q4_K_M.gguf) | Q4_K_M | 73.24GB | Good quality, uses about 4.83 bits per weight, *recommended*. |
44
- | [Meta-Llama-3-120B-Instruct-Q4_K_S.gguf](https://huggingface.co/bartowski/Meta-Llama-3-120B-Instruct-GGUF/tree/main/Meta-Llama-3-120B-Instruct-Q4_K_S.gguf) | Q4_K_S | 69.35GB | Slightly lower quality with more space savings, *recommended*. |
45
- | [Meta-Llama-3-120B-Instruct-IQ4_NL.gguf](https://huggingface.co/bartowski/Meta-Llama-3-120B-Instruct-GGUF/tree/main/Meta-Llama-3-120B-Instruct-IQ4_NL.gguf) | IQ4_NL | 68.99GB | Decent quality, slightly smaller than Q4_K_S with similar performance *recommended*. |
46
- | [Meta-Llama-3-120B-Instruct-IQ4_XS.gguf](https://huggingface.co/bartowski/Meta-Llama-3-120B-Instruct-GGUF/tree/main/Meta-Llama-3-120B-Instruct-IQ4_XS.gguf) | IQ4_XS | 65.25GB | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
47
- | [Meta-Llama-3-120B-Instruct-Q3_K_L.gguf](https://huggingface.co/bartowski/Meta-Llama-3-120B-Instruct-GGUF/tree/main/Meta-Llama-3-120B-Instruct-Q3_K_L.gguf) | Q3_K_L | 64.00GB | Lower quality but usable, good for low RAM availability. |
48
- | [Meta-Llama-3-120B-Instruct-Q3_K_M.gguf](https://huggingface.co/bartowski/Meta-Llama-3-120B-Instruct-GGUF/tree/main/Meta-Llama-3-120B-Instruct-Q3_K_M.gguf) | Q3_K_M | 58.81GB | Even lower quality. |
49
- | [Meta-Llama-3-120B-Instruct-IQ3_M.gguf](https://huggingface.co/bartowski/Meta-Llama-3-120B-Instruct-GGUF/tree/main/Meta-Llama-3-120B-Instruct-IQ3_M.gguf) | IQ3_M | 54.73GB | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
50
- | [Meta-Llama-3-120B-Instruct-IQ3_S.gguf](https://huggingface.co/bartowski/Meta-Llama-3-120B-Instruct-GGUF/tree/main/Meta-Llama-3-120B-Instruct-IQ3_S.gguf) | IQ3_S | 52.95GB | Lower quality, new method with decent performance, recommended over Q3_K_S quant, same size with better performance. |
51
- | [Meta-Llama-3-120B-Instruct-Q3_K_S.gguf](https://huggingface.co/bartowski/Meta-Llama-3-120B-Instruct-GGUF/tree/main/Meta-Llama-3-120B-Instruct-Q3_K_S.gguf) | Q3_K_S | 52.80GB | Low quality, not recommended. |
52
- | [Meta-Llama-3-120B-Instruct-IQ3_XS.gguf](https://huggingface.co/bartowski/Meta-Llama-3-120B-Instruct-GGUF/tree/main/Meta-Llama-3-120B-Instruct-IQ3_XS.gguf) | IQ3_XS | 50.15GB | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
53
- | [Meta-Llama-3-120B-Instruct-IQ3_XXS.gguf](https://huggingface.co/bartowski/Meta-Llama-3-120B-Instruct-GGUF/blob/main/Meta-Llama-3-120B-Instruct-IQ3_XXS.gguf) | IQ3_XXS | 47.03GB | Lower quality, new method with decent performance, comparable to Q3 quants. |
54
- | [Meta-Llama-3-120B-Instruct-Q2_K.gguf](https://huggingface.co/bartowski/Meta-Llama-3-120B-Instruct-GGUF/blob/main/Meta-Llama-3-120B-Instruct-Q2_K.gguf) | Q2_K | 45.09GB | Very low quality but surprisingly usable. |
55
- | [Meta-Llama-3-120B-Instruct-IQ2_M.gguf](https://huggingface.co/bartowski/Meta-Llama-3-120B-Instruct-GGUF/blob/main/Meta-Llama-3-120B-Instruct-IQ2_M.gguf) | IQ2_M | 41.30GB | Very low quality, uses SOTA techniques to also be surprisingly usable. |
56
- | [Meta-Llama-3-120B-Instruct-IQ2_S.gguf](https://huggingface.co/bartowski/Meta-Llama-3-120B-Instruct-GGUF/blob/main/Meta-Llama-3-120B-Instruct-IQ2_S.gguf) | IQ2_S | 38.02GB | Very low quality, uses SOTA techniques to be usable. |
57
- | [Meta-Llama-3-120B-Instruct-IQ2_XS.gguf](https://huggingface.co/bartowski/Meta-Llama-3-120B-Instruct-GGUF/blob/main/Meta-Llama-3-120B-Instruct-IQ2_XS.gguf) | IQ2_XS | 36.18GB | Very low quality, uses SOTA techniques to be usable. |
58
- | [Meta-Llama-3-120B-Instruct-IQ2_XXS.gguf](https://huggingface.co/bartowski/Meta-Llama-3-120B-Instruct-GGUF/blob/main/Meta-Llama-3-120B-Instruct-IQ2_XXS.gguf) | IQ2_XXS | 32.60GB | Lower quality, uses SOTA techniques to be usable. |
59
- | [Meta-Llama-3-120B-Instruct-IQ1_M.gguf](https://huggingface.co/bartowski/Meta-Llama-3-120B-Instruct-GGUF/blob/main/Meta-Llama-3-120B-Instruct-IQ1_M.gguf) | IQ1_M | 28.49GB | Extremely low quality, *not* recommended. |
60
- | [Meta-Llama-3-120B-Instruct-IQ1_S.gguf](https://huggingface.co/bartowski/Meta-Llama-3-120B-Instruct-GGUF/blob/main/Meta-Llama-3-120B-Instruct-IQ1_S.gguf) | IQ1_S | 26.02GB | Extremely low quality, *not* recommended. |
61
-
62
- ## Downloading using huggingface-cli
63
-
64
- First, make sure you have hugginface-cli installed:
65
 
66
  ```
67
- pip install -U "huggingface_hub[cli]"
68
- ```
69
-
70
- Then, you can target the specific file you want:
71
 
72
- ```
73
- huggingface-cli download bartowski/Meta-Llama-3-120B-Instruct-GGUF --include "Meta-Llama-3-120B-Instruct-Q4_K_M.gguf" --local-dir ./ --local-dir-use-symlinks False
74
- ```
75
 
76
- If the model is bigger than 50GB, it will have been split into multiple files. In order to download them all to a local folder, run:
77
 
78
  ```
79
- huggingface-cli download bartowski/Meta-Llama-3-120B-Instruct-GGUF --include "Meta-Llama-3-120B-Instruct-Q8_0.gguf/*" --local-dir Meta-Llama-3-120B-Instruct-Q8_0 --local-dir-use-symlinks False
80
- ```
81
-
82
- You can either specify a new local-dir (Meta-Llama-3-120B-Instruct-Q8_0) or download them all in place (./)
83
-
84
- ## Which file should I choose?
85
-
86
- A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
87
-
88
- 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.
89
-
90
- 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.
91
-
92
- 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.
93
-
94
- Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
95
 
96
- 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.
97
 
98
- If you want to get more into the weeds, you can check out this extremely useful feature chart:
99
 
100
- [llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
101
 
102
- 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.
103
 
104
- 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.
105
 
106
- 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.
107
 
108
- Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski
 
5
  - mergekit
6
  - lazymergekit
7
  base_model:
8
+ - mlabonne/Meta-Llama-3-120B-Instruct
 
 
 
 
 
 
9
  quantized_by: bartowski
10
  pipeline_tag: text-generation
11
+ lm_studio:
12
+ param_count: 120b
13
+ use_case: general
14
+ release_date: 01-05-2024
15
+ model_creator: mlabonne
16
+ prompt_template: Llama 3
17
+ system_prompt: You are a helpful AI assistant.
18
+ base_model: llama
19
+ original_repo: mlabonne/Meta-Llama-3-120B-Instruct
20
  ---
21
 
22
+ ## ๐Ÿ’ซ Community Model> Llama 3 120B Instruct by Maxime Labonne
23
 
24
+ *๐Ÿ‘พ [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)*.
25
 
26
+ **Model creator:** [mlabonne](https://huggingface.co/mlabonne)<br>
27
+ **Original model**: [Meta-Llama-3-120B-Instruct](https://huggingface.co/mlabonne/Meta-Llama-3-120B-Instruct)<br>
28
+ **GGUF quantization:** provided by [bartowski](https://huggingface.co/bartowski) based on `llama.cpp` release [b2794](https://github.com/ggerganov/llama.cpp/releases/tag/b2794)<br>
29
 
30
+ ## Model Summary:
31
+ Meta-Llama-3-120B-Instruct is a meta-llama/Meta-Llama-3-70B-Instruct self-merge made with MergeKit.<br>
32
+ Using self-merging expands the capabilities of a model without additional training costs.<br>
33
 
 
34
 
35
+ ## Prompt Template:
 
 
 
 
 
36
 
37
+ Choose the 'Llama 3' preset in your LM Studio.
38
 
39
+ Under the hood, the model will see a prompt that's formatted like so:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
 
41
  ```
42
+ <|begin_of_text|><|start_header_id|>system<|end_header_id|>
 
 
 
43
 
44
+ {system_prompt}<|eot_id|><|start_header_id|>user<|end_header_id|>
 
 
45
 
46
+ {prompt}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
47
 
48
  ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
 
50
+ ## Technical Details
51
 
52
+ View the original model page for technical details and examples. There aren't a lot of extra details besides the merge configuration.
53
 
54
+ ## Special thanks
55
 
56
+ ๐Ÿ™ 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.
57
 
58
+ ๐Ÿ™ 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!
59
 
60
+ ## Disclaimers
61
 
62
+ 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.