Crystalcareai commited on
Commit
7025dd1
1 Parent(s): 13745d6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +42 -103
README.md CHANGED
@@ -1,129 +1,68 @@
1
  ---
2
- base_model: arcee-train/Qwen2.5-14B-LlamaDistill-Merged-v9
3
- pipeline_tag: text-generation
 
4
  tags:
5
  - mergekit
6
  - merge
7
- quantized_by: bartowski
8
  ---
9
 
10
- ## Llamacpp imatrix Quantizations of SuperNova-14B
11
 
12
- Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b3901">b3901</a> for quantization.
13
 
14
- Original model: https://huggingface.co/arcee-train/Qwen2.5-14B-LlamaDistill-Merged-v9
15
 
16
- All quants made using imatrix option with dataset from [here](https://gist.github.com/bartowski1182/eb213dccb3571f863da82e99418f81e8)
17
 
18
- Run them in [LM Studio](https://lmstudio.ai/)
19
 
20
- ## Prompt format
 
 
 
 
21
 
22
- ```
23
- <|im_start|>system
24
- {system_prompt}<|im_end|>
25
- <|im_start|>user
26
- {prompt}<|im_end|>
27
- <|im_start|>assistant
28
- ```
29
 
30
- ## Download a file (not the whole branch) from below:
 
31
 
32
- | Filename | Quant type | File Size | Split | Description |
33
- | -------- | ---------- | --------- | ----- | ----------- |
34
- | [SuperNova-14B-f16.gguf](https://huggingface.co/bartowski/SuperNova-14B-GGUF/blob/main/SuperNova-14B-f16.gguf) | f16 | 29.55GB | false | Full F16 weights. |
35
- | [SuperNova-14B-Q8_0.gguf](https://huggingface.co/bartowski/SuperNova-14B-GGUF/blob/main/SuperNova-14B-Q8_0.gguf) | Q8_0 | 15.70GB | false | Extremely high quality, generally unneeded but max available quant. |
36
- | [SuperNova-14B-Q6_K_L.gguf](https://huggingface.co/bartowski/SuperNova-14B-GGUF/blob/main/SuperNova-14B-Q6_K_L.gguf) | Q6_K_L | 12.50GB | false | Uses Q8_0 for embed and output weights. Very high quality, near perfect, *recommended*. |
37
- | [SuperNova-14B-Q6_K.gguf](https://huggingface.co/bartowski/SuperNova-14B-GGUF/blob/main/SuperNova-14B-Q6_K.gguf) | Q6_K | 12.12GB | false | Very high quality, near perfect, *recommended*. |
38
- | [SuperNova-14B-Q5_K_L.gguf](https://huggingface.co/bartowski/SuperNova-14B-GGUF/blob/main/SuperNova-14B-Q5_K_L.gguf) | Q5_K_L | 10.99GB | false | Uses Q8_0 for embed and output weights. High quality, *recommended*. |
39
- | [SuperNova-14B-Q5_K_M.gguf](https://huggingface.co/bartowski/SuperNova-14B-GGUF/blob/main/SuperNova-14B-Q5_K_M.gguf) | Q5_K_M | 10.51GB | false | High quality, *recommended*. |
40
- | [SuperNova-14B-Q5_K_S.gguf](https://huggingface.co/bartowski/SuperNova-14B-GGUF/blob/main/SuperNova-14B-Q5_K_S.gguf) | Q5_K_S | 10.27GB | false | High quality, *recommended*. |
41
- | [SuperNova-14B-Q4_K_L.gguf](https://huggingface.co/bartowski/SuperNova-14B-GGUF/blob/main/SuperNova-14B-Q4_K_L.gguf) | Q4_K_L | 9.57GB | false | Uses Q8_0 for embed and output weights. Good quality, *recommended*. |
42
- | [SuperNova-14B-Q4_K_M.gguf](https://huggingface.co/bartowski/SuperNova-14B-GGUF/blob/main/SuperNova-14B-Q4_K_M.gguf) | Q4_K_M | 8.99GB | false | Good quality, default size for must use cases, *recommended*. |
43
- | [SuperNova-14B-Q3_K_XL.gguf](https://huggingface.co/bartowski/SuperNova-14B-GGUF/blob/main/SuperNova-14B-Q3_K_XL.gguf) | Q3_K_XL | 8.61GB | false | Uses Q8_0 for embed and output weights. Lower quality but usable, good for low RAM availability. |
44
- | [SuperNova-14B-Q4_K_S.gguf](https://huggingface.co/bartowski/SuperNova-14B-GGUF/blob/main/SuperNova-14B-Q4_K_S.gguf) | Q4_K_S | 8.57GB | false | Slightly lower quality with more space savings, *recommended*. |
45
- | [SuperNova-14B-Q4_0.gguf](https://huggingface.co/bartowski/SuperNova-14B-GGUF/blob/main/SuperNova-14B-Q4_0.gguf) | Q4_0 | 8.54GB | false | Legacy format, generally not worth using over similarly sized formats |
46
- | [SuperNova-14B-Q4_0_8_8.gguf](https://huggingface.co/bartowski/SuperNova-14B-GGUF/blob/main/SuperNova-14B-Q4_0_8_8.gguf) | Q4_0_8_8 | 8.52GB | false | Optimized for ARM inference. Requires 'sve' support (see link below). *Don't use on Mac or Windows*. |
47
- | [SuperNova-14B-Q4_0_4_8.gguf](https://huggingface.co/bartowski/SuperNova-14B-GGUF/blob/main/SuperNova-14B-Q4_0_4_8.gguf) | Q4_0_4_8 | 8.52GB | false | Optimized for ARM inference. Requires 'i8mm' support (see link below). *Don't use on Mac or Windows*. |
48
- | [SuperNova-14B-Q4_0_4_4.gguf](https://huggingface.co/bartowski/SuperNova-14B-GGUF/blob/main/SuperNova-14B-Q4_0_4_4.gguf) | Q4_0_4_4 | 8.52GB | false | Optimized for ARM inference. Should work well on all ARM chips, pick this if you're unsure. *Don't use on Mac or Windows*. |
49
- | [SuperNova-14B-IQ4_XS.gguf](https://huggingface.co/bartowski/SuperNova-14B-GGUF/blob/main/SuperNova-14B-IQ4_XS.gguf) | IQ4_XS | 8.12GB | false | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
50
- | [SuperNova-14B-Q3_K_L.gguf](https://huggingface.co/bartowski/SuperNova-14B-GGUF/blob/main/SuperNova-14B-Q3_K_L.gguf) | Q3_K_L | 7.92GB | false | Lower quality but usable, good for low RAM availability. |
51
- | [SuperNova-14B-Q3_K_M.gguf](https://huggingface.co/bartowski/SuperNova-14B-GGUF/blob/main/SuperNova-14B-Q3_K_M.gguf) | Q3_K_M | 7.34GB | false | Low quality. |
52
- | [SuperNova-14B-IQ3_M.gguf](https://huggingface.co/bartowski/SuperNova-14B-GGUF/blob/main/SuperNova-14B-IQ3_M.gguf) | IQ3_M | 6.92GB | false | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
53
- | [SuperNova-14B-Q3_K_S.gguf](https://huggingface.co/bartowski/SuperNova-14B-GGUF/blob/main/SuperNova-14B-Q3_K_S.gguf) | Q3_K_S | 6.66GB | false | Low quality, not recommended. |
54
- | [SuperNova-14B-Q2_K_L.gguf](https://huggingface.co/bartowski/SuperNova-14B-GGUF/blob/main/SuperNova-14B-Q2_K_L.gguf) | Q2_K_L | 6.53GB | false | Uses Q8_0 for embed and output weights. Very low quality but surprisingly usable. |
55
- | [SuperNova-14B-IQ3_XS.gguf](https://huggingface.co/bartowski/SuperNova-14B-GGUF/blob/main/SuperNova-14B-IQ3_XS.gguf) | IQ3_XS | 6.38GB | false | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
56
- | [SuperNova-14B-Q2_K.gguf](https://huggingface.co/bartowski/SuperNova-14B-GGUF/blob/main/SuperNova-14B-Q2_K.gguf) | Q2_K | 5.77GB | false | Very low quality but surprisingly usable. |
57
- | [SuperNova-14B-IQ2_M.gguf](https://huggingface.co/bartowski/SuperNova-14B-GGUF/blob/main/SuperNova-14B-IQ2_M.gguf) | IQ2_M | 5.36GB | false | Relatively low quality, uses SOTA techniques to be surprisingly usable. |
58
- | [SuperNova-14B-IQ2_S.gguf](https://huggingface.co/bartowski/SuperNova-14B-GGUF/blob/main/SuperNova-14B-IQ2_S.gguf) | IQ2_S | 5.00GB | false | Low quality, uses SOTA techniques to be usable. |
59
- | [SuperNova-14B-IQ2_XS.gguf](https://huggingface.co/bartowski/SuperNova-14B-GGUF/blob/main/SuperNova-14B-IQ2_XS.gguf) | IQ2_XS | 4.70GB | false | Low quality, uses SOTA techniques to be usable. |
60
 
61
- ## Embed/output weights
62
 
63
- Some of these quants (Q3_K_XL, Q4_K_L etc) are the standard quantization method with the embeddings and output weights quantized to Q8_0 instead of what they would normally default to.
 
 
 
 
 
64
 
65
- Some say that this improves the quality, others don't notice any difference. If you use these models PLEASE COMMENT with your findings. I would like feedback that these are actually used and useful so I don't keep uploading quants no one is using.
66
 
67
- Thanks!
68
 
69
- ## Downloading using huggingface-cli
70
 
71
- First, make sure you have hugginface-cli installed:
 
 
72
 
73
- ```
74
- pip install -U "huggingface_hub[cli]"
75
- ```
76
 
77
- Then, you can target the specific file you want:
78
 
79
- ```
80
- huggingface-cli download bartowski/SuperNova-14B-GGUF --include "SuperNova-14B-Q4_K_M.gguf" --local-dir ./
81
- ```
82
 
83
- 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:
 
 
 
 
84
 
85
- ```
86
- huggingface-cli download bartowski/SuperNova-14B-GGUF --include "SuperNova-14B-Q8_0/*" --local-dir ./
87
- ```
88
 
89
- You can either specify a new local-dir (SuperNova-14B-Q8_0) or download them all in place (./)
90
-
91
- ## Q4_0_X_X
92
-
93
- These are *NOT* for Metal (Apple) offloading, only ARM chips.
94
-
95
- If you're using an ARM chip, the Q4_0_X_X quants will have a substantial speedup. Check out Q4_0_4_4 speed comparisons [on the original pull request](https://github.com/ggerganov/llama.cpp/pull/5780#pullrequestreview-21657544660)
96
-
97
- To check which one would work best for your ARM chip, you can check [AArch64 SoC features](https://gpages.juszkiewicz.com.pl/arm-socs-table/arm-socs.html) (thanks EloyOn!).
98
-
99
- ## Which file should I choose?
100
-
101
- A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
102
-
103
- 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.
104
-
105
- 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.
106
-
107
- 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.
108
-
109
- Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
110
-
111
- 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.
112
-
113
- If you want to get more into the weeds, you can check out this extremely useful feature chart:
114
-
115
- [llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
116
-
117
- 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.
118
-
119
- 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.
120
-
121
- 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.
122
-
123
- ## Credits
124
-
125
- Thank you kalomaze and Dampf for assistance in creating the imatrix calibration dataset
126
-
127
- Thank you ZeroWw for the inspiration to experiment with embed/output
128
-
129
- Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski
 
1
  ---
2
+ base_model:
3
+ - Qwen/Qwen2.5-14B
4
+ library_name: transformers
5
  tags:
6
  - mergekit
7
  - merge
8
+ license: apache-2.0
9
  ---
10
 
11
+ # Arcee-SuperNova-Medius
12
 
13
+ Arcee-SuperNova-Medius is a 14B parameter language model developed by Arcee.ai, built on the Qwen2.5-14B-Instruct architecture. This unique model is the result of a cross-architecture distillation pipeline, combining knowledge from both the Qwen2.5-72B-Instruct model and the Llama-3.1-405B-Instruct model. By leveraging the strengths of these two distinct architectures, SuperNova-Medius achieves high-quality instruction-following and complex reasoning capabilities in a mid-sized, resource-efficient form.
14
 
15
+ SuperNova-Medius is designed to excel in a variety of business use cases, including customer support, content creation, and technical assistance, while maintaining compatibility with smaller hardware configurations. It’s an ideal solution for organizations looking for advanced capabilities without the high resource requirements of larger models like our SuperNova-70B.
16
 
17
+ ## Distillation Overview
18
 
19
+ The development of SuperNova-Medius involved a sophisticated multi-teacher, cross-architecture distillation process, with the following key steps:
20
 
21
+ 1. **Logit Distillation from Llama-3.1-405B-Instruct**:
22
+ - We distilled the logits of Llama-3.1-405B-Instruct to Qwen2.5-14B using KL-divergence as the loss function. This allowed us to capture the nuanced distribution of Llama's outputs while adapting them to Qwen's architecture.
23
+
24
+ 2. **Logit and Hidden State Distillation from Qwen2.5-72B-Instruct**:
25
+ - Further distillation was performed using a combination of logit and hidden state distillation from Qwen2.5-72B-Instruct to ensure that SuperNova-Medius inherited the strong instruction-following capabilities and domain-specific knowledge of Qwen2.5.
26
 
27
+ 3. **Cross-Architecture Vocabulary Alignment**:
28
+ - Using `mergekit-tokensurgeon`, we aligned the vocabularies and hidden states of both teacher models, allowing for seamless integration of knowledge across the different architectures. This enabled SuperNova-Medius to effectively combine the strengths of both models.
 
 
 
 
 
29
 
30
+ 4. **Final Fusion and Fine-Tuning**:
31
+ - After aligning the vocabularies, a final fusion and fine-tuning step was conducted, using a specialized dataset from [EvolKit](https://github.com/arcee-ai/EvolKit) to ensure that SuperNova-Medius maintained coherence, fluency, and context understanding across a broad range of tasks.
32
 
33
+ ## Performance Evaluation
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
+ Below are the benchmark results of SuperNova-Medius compared to similar models in its class:
36
 
37
+ | Model | Average | IFEval | BBH | GPQA | MMLU Pro | MuSR | Math Level 5 |
38
+ | --- | --- | --- | --- | --- | --- | --- | --- |
39
+ | Mistral-Small 2409 | 0.423 | 0.628 | 0.581 | 0.333 | 0.410 | 0.406 | 0.181 |
40
+ | Supernova-Lite | 0.427 | 0.786 | 0.511 | 0.306 | 0.388 | 0.415 | 0.155 |
41
+ | Qwen2.5-14B-Instruct | 0.450 | 0.827 | 0.623 | 0.358 | 0.490 | 0.403 | 0.000 |
42
+ | Supernova-Medius | **0.480** | **0.832** | **0.631** | **0.359** | **0.502** | **0.402** | **0.152** |
43
 
44
+ SuperNova-Medius performs exceptionally well in instruction-following (IFEval) and complex reasoning tasks (BBH), demonstrating its capability to handle a variety of real-world scenarios. It outperforms Qwen2.5-14B and SuperNova-Lite in multiple benchmarks, making it a powerful yet efficient choice for high-quality generative AI applications.
45
 
46
+ ## Model Use Cases
47
 
48
+ Arcee-SuperNova-Medius is suitable for a range of applications, including:
49
 
50
+ - **Customer Support**: With its robust instruction-following and dialogue management capabilities, SuperNova-Medius can handle complex customer interactions, reducing the need for human intervention.
51
+ - **Content Creation**: The model’s advanced language understanding and generation abilities make it ideal for creating high-quality, coherent content across diverse domains.
52
+ - **Technical Assistance**: SuperNova-Medius has a deep reservoir of technical knowledge, making it an excellent assistant for programming, technical documentation, and other expert-level content creation.
53
 
54
+ ## Deployment Options
 
 
55
 
56
+ SuperNova-Medius is available for use under the Apache-2.0 license. For those who need even higher performance, the full-size 70B SuperNova model can be accessed via an Arcee-hosted API or for local deployment. To learn more or explore deployment options, please reach out to [sales@arcee.ai](mailto:sales@arcee.ai).
57
 
58
+ ## Technical Specifications
 
 
59
 
60
+ - **Model Architecture**: Qwen2.5-14B-Instruct
61
+ - **Distillation Sources**: Qwen2.5-72B-Instruct, Llama-3.1-405B-Instruct
62
+ - **Parameter Count**: 14 billion
63
+ - **Training Dataset**: Custom instruction dataset generated with [EvolKit](https://github.com/arcee-ai/EvolKit)
64
+ - **Distillation Technique**: Multi-architecture logit and hidden state distillation with cross-architecture vocabulary alignment.
65
 
66
+ ## Summary
 
 
67
 
68
+ Arcee-SuperNova-Medius provides a unique balance of power, efficiency, and versatility. By distilling knowledge from two top-performing teacher models into a single 14B parameter model, SuperNova-Medius achieves results that rival larger models while maintaining a compact size ideal for practical deployment. Whether for customer support, content creation, or technical assistance, SuperNova-Medius is the perfect choice for organizations looking to leverage advanced language model capabilities in a cost-effective and accessible form.