File size: 6,719 Bytes
c17bf58
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8d70746
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c17bf58
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
---
base_model: arcee-ai/SuperNova-Medius
library_name: transformers
license: apache-2.0
tags:
- mergekit
- merge
- llama-cpp
- gguf-my-repo
---

# Triangle104/SuperNova-Medius-Q4_K_S-GGUF
This model was converted to GGUF format from [`arcee-ai/SuperNova-Medius`](https://huggingface.co/arcee-ai/SuperNova-Medius) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
Refer to the [original model card](https://huggingface.co/arcee-ai/SuperNova-Medius) for more details on the model.

---
Model details:
-
Arcee-SuperNova-Medius

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.

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.
Distillation Overview

The development of SuperNova-Medius involved a sophisticated multi-teacher, cross-architecture distillation process, with the following key steps:

    Logit Distillation from Llama 3.1 405B:
        We distilled the logits of Llama 3.1 405B using an offline approach.
        The top K logits for each token were stored to capture most of the probability mass while managing storage requirements.

    Cross-Architecture Adaptation:
        Using mergekit-tokensurgeon, we created a version of Qwen2.5-14B that uses the vocabulary of Llama 3.1 405B.
        This allowed for the use of Llama 3.1 405B logits in training the Qwen-based model.

    Distillation to Qwen Architecture:
        The adapted Qwen2.5-14B model was trained using the stored 405B logits as the target.

    Parallel Qwen Distillation:
        In a separate process, Qwen2-72B was distilled into a 14B model.

    Final Fusion and Fine-Tuning:
        The Llama-distilled Qwen model's vocabulary was reverted to Qwen vocabulary.
        After re-aligning the vocabularies, a final fusion and fine-tuning step was conducted, using a specialized dataset from EvolKit to ensure that SuperNova-Medius maintained coherence, fluency, and context understanding across a broad range of tasks.

Performance Evaluation

Below are the benchmark results of SuperNova-Medius compared to similar models in its class:
Model 	Average 	IFEval 	BBH 	GPQA 	MMLU Pro 	MuSR 	Math Level 5
Mistral-Small 2409 	0.423 	0.628 	0.581 	0.333 	0.410 	0.406 	0.181
Supernova-Lite 	0.427 	0.786 	0.511 	0.306 	0.388 	0.415 	0.155
Qwen2.5-14B-Instruct 	0.450 	0.827 	0.623 	0.358 	0.490 	0.403 	0.000
Supernova-Medius 	0.480 	0.832 	0.631 	0.359 	0.502 	0.402 	0.152

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.
Model Use Cases

Arcee-SuperNova-Medius is suitable for a range of applications, including:

    Customer Support: With its robust instruction-following and dialogue management capabilities, SuperNova-Medius can handle complex customer interactions, reducing the need for human intervention.
    Content Creation: The model’s advanced language understanding and generation abilities make it ideal for creating high-quality, coherent content across diverse domains.
    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.

Deployment Options

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.
Technical Specifications

    Model Architecture: Qwen2.5-14B-Instruct
    Distillation Sources: Qwen2.5-72B-Instruct, Llama-3.1-405B-Instruct
    Parameter Count: 14 billion
    Training Dataset: Custom instruction dataset generated with EvolKit
    Distillation Technique: Multi-architecture offline logit distillation with cross-architecture vocabulary alignment.

Summary

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.

---
## Use with llama.cpp
Install llama.cpp through brew (works on Mac and Linux)

```bash
brew install llama.cpp

```
Invoke the llama.cpp server or the CLI.

### CLI:
```bash
llama-cli --hf-repo Triangle104/SuperNova-Medius-Q4_K_S-GGUF --hf-file supernova-medius-q4_k_s.gguf -p "The meaning to life and the universe is"
```

### Server:
```bash
llama-server --hf-repo Triangle104/SuperNova-Medius-Q4_K_S-GGUF --hf-file supernova-medius-q4_k_s.gguf -c 2048
```

Note: You can also use this checkpoint directly through the [usage steps](https://github.com/ggerganov/llama.cpp?tab=readme-ov-file#usage) listed in the Llama.cpp repo as well.

Step 1: Clone llama.cpp from GitHub.
```
git clone https://github.com/ggerganov/llama.cpp
```

Step 2: Move into the llama.cpp folder and build it with `LLAMA_CURL=1` flag along with other hardware-specific flags (for ex: LLAMA_CUDA=1 for Nvidia GPUs on Linux).
```
cd llama.cpp && LLAMA_CURL=1 make
```

Step 3: Run inference through the main binary.
```
./llama-cli --hf-repo Triangle104/SuperNova-Medius-Q4_K_S-GGUF --hf-file supernova-medius-q4_k_s.gguf -p "The meaning to life and the universe is"
```
or 
```
./llama-server --hf-repo Triangle104/SuperNova-Medius-Q4_K_S-GGUF --hf-file supernova-medius-q4_k_s.gguf -c 2048
```