Crystalcareai
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -1,173 +1,77 @@
|
|
1 |
---
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
tags:
|
6 |
- mergekit
|
7 |
- merge
|
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 |
-
| [Virtuoso-Medium-v2-Q3_K_S.gguf](https://huggingface.co/bartowski/Virtuoso-Medium-v2-GGUF/blob/main/Virtuoso-Medium-v2-Q3_K_S.gguf) | Q3_K_S | 14.39GB | false | Low quality, not recommended. |
|
54 |
-
| [Virtuoso-Medium-v2-IQ3_XS.gguf](https://huggingface.co/bartowski/Virtuoso-Medium-v2-GGUF/blob/main/Virtuoso-Medium-v2-IQ3_XS.gguf) | IQ3_XS | 13.70GB | false | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
|
55 |
-
| [Virtuoso-Medium-v2-Q2_K_L.gguf](https://huggingface.co/bartowski/Virtuoso-Medium-v2-GGUF/blob/main/Virtuoso-Medium-v2-Q2_K_L.gguf) | Q2_K_L | 13.07GB | false | Uses Q8_0 for embed and output weights. Very low quality but surprisingly usable. |
|
56 |
-
| [Virtuoso-Medium-v2-Q2_K.gguf](https://huggingface.co/bartowski/Virtuoso-Medium-v2-GGUF/blob/main/Virtuoso-Medium-v2-Q2_K.gguf) | Q2_K | 12.31GB | false | Very low quality but surprisingly usable. |
|
57 |
-
| [Virtuoso-Medium-v2-IQ2_M.gguf](https://huggingface.co/bartowski/Virtuoso-Medium-v2-GGUF/blob/main/Virtuoso-Medium-v2-IQ2_M.gguf) | IQ2_M | 11.26GB | false | Relatively low quality, uses SOTA techniques to be surprisingly usable. |
|
58 |
-
| [Virtuoso-Medium-v2-IQ2_S.gguf](https://huggingface.co/bartowski/Virtuoso-Medium-v2-GGUF/blob/main/Virtuoso-Medium-v2-IQ2_S.gguf) | IQ2_S | 10.39GB | false | Low quality, uses SOTA techniques to be usable. |
|
59 |
-
| [Virtuoso-Medium-v2-IQ2_XS.gguf](https://huggingface.co/bartowski/Virtuoso-Medium-v2-GGUF/blob/main/Virtuoso-Medium-v2-IQ2_XS.gguf) | IQ2_XS | 9.96GB | false | Low quality, uses SOTA techniques to be usable. |
|
60 |
-
| [Virtuoso-Medium-v2-IQ2_XXS.gguf](https://huggingface.co/bartowski/Virtuoso-Medium-v2-GGUF/blob/main/Virtuoso-Medium-v2-IQ2_XXS.gguf) | IQ2_XXS | 9.03GB | false | Very low quality, uses SOTA techniques to be usable. |
|
61 |
-
|
62 |
-
## Embed/output weights
|
63 |
-
|
64 |
-
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.
|
65 |
-
|
66 |
-
## Downloading using huggingface-cli
|
67 |
-
|
68 |
-
<details>
|
69 |
-
<summary>Click to view download instructions</summary>
|
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/Virtuoso-Medium-v2-GGUF --include "Virtuoso-Medium-v2-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/Virtuoso-Medium-v2-GGUF --include "Virtuoso-Medium-v2-Q8_0/*" --local-dir ./
|
87 |
-
```
|
88 |
-
|
89 |
-
You can either specify a new local-dir (Virtuoso-Medium-v2-Q8_0) or download them all in place (./)
|
90 |
-
|
91 |
-
</details>
|
92 |
-
|
93 |
-
## ARM/AVX information
|
94 |
-
|
95 |
-
Previously, you would download Q4_0_4_4/4_8/8_8, and these would have their weights interleaved in memory in order to improve performance on ARM and AVX machines by loading up more data in one pass.
|
96 |
-
|
97 |
-
Now, however, there is something called "online repacking" for weights. details in [this PR](https://github.com/ggerganov/llama.cpp/pull/9921). If you use Q4_0 and your hardware would benefit from repacking weights, it will do it automatically on the fly.
|
98 |
-
|
99 |
-
As of llama.cpp build [b4282](https://github.com/ggerganov/llama.cpp/releases/tag/b4282) you will not be able to run the Q4_0_X_X files and will instead need to use Q4_0.
|
100 |
-
|
101 |
-
Additionally, if you want to get slightly better quality for , you can use IQ4_NL thanks to [this PR](https://github.com/ggerganov/llama.cpp/pull/10541) which will also repack the weights for ARM, though only the 4_4 for now. The loading time may be slower but it will result in an overall speed incrase.
|
102 |
-
|
103 |
-
<details>
|
104 |
-
<summary>Click to view Q4_0_X_X information (deprecated</summary>
|
105 |
-
|
106 |
-
I'm keeping this section to show the potential theoretical uplift in performance from using the Q4_0 with online repacking.
|
107 |
-
|
108 |
-
<details>
|
109 |
-
<summary>Click to view benchmarks on an AVX2 system (EPYC7702)</summary>
|
110 |
-
|
111 |
-
| model | size | params | backend | threads | test | t/s | % (vs Q4_0) |
|
112 |
-
| ------------------------------ | ---------: | ---------: | ---------- | ------: | ------------: | -------------------: |-------------: |
|
113 |
-
| qwen2 3B Q4_0 | 1.70 GiB | 3.09 B | CPU | 64 | pp512 | 204.03 ± 1.03 | 100% |
|
114 |
-
| qwen2 3B Q4_0 | 1.70 GiB | 3.09 B | CPU | 64 | pp1024 | 282.92 ± 0.19 | 100% |
|
115 |
-
| qwen2 3B Q4_0 | 1.70 GiB | 3.09 B | CPU | 64 | pp2048 | 259.49 ± 0.44 | 100% |
|
116 |
-
| qwen2 3B Q4_0 | 1.70 GiB | 3.09 B | CPU | 64 | tg128 | 39.12 ± 0.27 | 100% |
|
117 |
-
| qwen2 3B Q4_0 | 1.70 GiB | 3.09 B | CPU | 64 | tg256 | 39.31 ± 0.69 | 100% |
|
118 |
-
| qwen2 3B Q4_0 | 1.70 GiB | 3.09 B | CPU | 64 | tg512 | 40.52 ± 0.03 | 100% |
|
119 |
-
| qwen2 3B Q4_K_M | 1.79 GiB | 3.09 B | CPU | 64 | pp512 | 301.02 ± 1.74 | 147% |
|
120 |
-
| qwen2 3B Q4_K_M | 1.79 GiB | 3.09 B | CPU | 64 | pp1024 | 287.23 ± 0.20 | 101% |
|
121 |
-
| qwen2 3B Q4_K_M | 1.79 GiB | 3.09 B | CPU | 64 | pp2048 | 262.77 ± 1.81 | 101% |
|
122 |
-
| qwen2 3B Q4_K_M | 1.79 GiB | 3.09 B | CPU | 64 | tg128 | 18.80 ± 0.99 | 48% |
|
123 |
-
| qwen2 3B Q4_K_M | 1.79 GiB | 3.09 B | CPU | 64 | tg256 | 24.46 ± 3.04 | 83% |
|
124 |
-
| qwen2 3B Q4_K_M | 1.79 GiB | 3.09 B | CPU | 64 | tg512 | 36.32 ± 3.59 | 90% |
|
125 |
-
| qwen2 3B Q4_0_8_8 | 1.69 GiB | 3.09 B | CPU | 64 | pp512 | 271.71 ± 3.53 | 133% |
|
126 |
-
| qwen2 3B Q4_0_8_8 | 1.69 GiB | 3.09 B | CPU | 64 | pp1024 | 279.86 ± 45.63 | 100% |
|
127 |
-
| qwen2 3B Q4_0_8_8 | 1.69 GiB | 3.09 B | CPU | 64 | pp2048 | 320.77 ± 5.00 | 124% |
|
128 |
-
| qwen2 3B Q4_0_8_8 | 1.69 GiB | 3.09 B | CPU | 64 | tg128 | 43.51 ± 0.05 | 111% |
|
129 |
-
| qwen2 3B Q4_0_8_8 | 1.69 GiB | 3.09 B | CPU | 64 | tg256 | 43.35 ± 0.09 | 110% |
|
130 |
-
| qwen2 3B Q4_0_8_8 | 1.69 GiB | 3.09 B | CPU | 64 | tg512 | 42.60 ± 0.31 | 105% |
|
131 |
-
|
132 |
-
Q4_0_8_8 offers a nice bump to prompt processing and a small bump to text generation
|
133 |
-
|
134 |
-
</details>
|
135 |
-
|
136 |
-
</details>
|
137 |
-
|
138 |
-
## Which file should I choose?
|
139 |
-
|
140 |
-
<details>
|
141 |
-
<summary>Click here for details</summary>
|
142 |
-
|
143 |
-
A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
|
144 |
-
|
145 |
-
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.
|
146 |
-
|
147 |
-
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.
|
148 |
-
|
149 |
-
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.
|
150 |
-
|
151 |
-
Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
|
152 |
-
|
153 |
-
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.
|
154 |
-
|
155 |
-
If you want to get more into the weeds, you can check out this extremely useful feature chart:
|
156 |
-
|
157 |
-
[llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
|
158 |
-
|
159 |
-
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.
|
160 |
|
161 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
|
163 |
-
|
|
|
164 |
|
165 |
-
|
|
|
|
|
166 |
|
167 |
-
|
|
|
168 |
|
169 |
-
|
|
|
170 |
|
171 |
-
Thank you ZeroWw for the inspiration to experiment with embed/output.
|
172 |
|
173 |
-
|
|
|
1 |
---
|
2 |
+
base_model:
|
3 |
+
- Qwen/Qwen2.5-32B
|
4 |
+
library_name: transformers
|
5 |
tags:
|
6 |
- mergekit
|
7 |
- merge
|
8 |
---
|
9 |
+
<img src="https://huggingface.co/arcee-train/Virtuoso-Medium-v2/resolve/main/virtuoso-medium.jpg" alt="Virtuoso-Lite Logo" style="display: block; margin: 0 auto;" />
|
10 |
+
|
11 |
+
**Virtuoso-Medium-v2 (32B)** is our next-generation, 32-billion-parameter language model that builds upon the original Virtuoso-Medium architecture. This version is distilled from Deepseek-v3, leveraging an expanded dataset of 5B+ tokens worth of logits. It achieves higher benchmark scores than our previous release (including surpassing Arcee-Nova 2024 in certain tasks).
|
12 |
+
|
13 |
+
### Model Details
|
14 |
+
- **Architecture Base:** Qwen-2.5-32B
|
15 |
+
- **Parameter Count:** 32B
|
16 |
+
- **Tokenizer:**
|
17 |
+
- Initially integrated with Deepseek-v3 tokenizer for logit extraction.
|
18 |
+
- Final alignment uses the Qwen tokenizer, using specialized “tokenizer surgery” for cross-architecture compatibility.
|
19 |
+
- **Distillation Data:**
|
20 |
+
- ~1.1B tokens/logits from Deepseek-v3’s training data.
|
21 |
+
- Logit-level distillation using a proprietary “fusion merging” approach afterwards for maximum fidelity.
|
22 |
+
- **License:** [Apache-2.0](#license)
|
23 |
+
|
24 |
+
### Background on Deepseek Distillation
|
25 |
+
Deepseek-v3 serves as the teacher model, from which we capture logits across billions of tokens. Rather than standard supervised fine-tuning, we apply a full logit-level replication. This ensures more precise transference of knowledge, including advanced reasoning in:
|
26 |
+
- Technical and scientific queries
|
27 |
+
- Complex code generation
|
28 |
+
- Mathematical problem-solving
|
29 |
+
|
30 |
+
### Intended Use Cases
|
31 |
+
- **Advanced Chatbots & Virtual Assistants**
|
32 |
+
- **Enterprise Data Analysis & Workflow Automation**
|
33 |
+
- **Research Simulations & Natural Language Understanding**
|
34 |
+
- **Educational Tools for STEM Fields**
|
35 |
+
|
36 |
+
### Evaluations
|
37 |
+
<img src="https://huggingface.co/arcee-train/Virtuoso-Lite/resolve/main/Benchmarks.png" alt="Virtuoso-Lite Logo" style="display: block; margin: 0 auto;" />
|
38 |
+
|
39 |
+
### How to Use
|
40 |
+
Below is a sample code snippet using `transformers`:
|
41 |
+
|
42 |
+
```python
|
43 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
44 |
+
|
45 |
+
model_name = "arcee-ai/virtuoso-medium-v2-32b"
|
46 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
47 |
+
model = AutoModelForCausalLM.from_pretrained(model_name)
|
48 |
+
|
49 |
+
prompt = "Provide a concise summary of quantum entanglement."
|
50 |
+
inputs = tokenizer(prompt, return_tensors="pt")
|
51 |
+
outputs = model.generate(**inputs, max_new_tokens=150)
|
52 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
|
55 |
+
### Training & Fine-Tuning
|
56 |
+
- **Initial Training:** Began with Qwen-32B, calibrated for large-scale text ingestion.
|
57 |
+
- **Distillation & Merging:**
|
58 |
+
- Trained on ~1.1B tokens worth of Deepseek-v3 logits.
|
59 |
+
- Employed “fusion merging” to retain as much teacher expertise as possible.
|
60 |
+
- Final step included DPO to improve alignment and reduce model hallucinations.
|
61 |
+
- **Continuous Development:** Additional R1 distillations are in progress to further enhance performance and specialization.
|
62 |
|
63 |
+
### Performance
|
64 |
+
Thanks to a larger parameter count and a richer training corpus, Virtuoso-Medium-v2 delivers high scores across multiple benchmarks (BBH, MMLU-PRO, MATH, etc.). It frequently surpasses other 30B+ models and even some 70B+ architectures in specific tasks.
|
65 |
|
66 |
+
### Limitations
|
67 |
+
- **Context Length:** 128k Tokens
|
68 |
+
- **Knowledge Cut-off:** Training data may not reflect the latest events or developments, leading to gaps in current knowledge beyond June 2024.
|
69 |
|
70 |
+
### Ethical Considerations
|
71 |
+
- **Content Generation Risks:** Like any language model, Virtuoso-Medium-v2 can potentially generate harmful or biased content if prompted in certain ways.
|
72 |
|
73 |
+
### License
|
74 |
+
**Virtuoso-Medium-v2 (32B)** is released under the [Apache-2.0 License](https://www.apache.org/licenses/LICENSE-2.0). You are free to use, modify, and distribute this model in both commercial and non-commercial applications, subject to the terms and conditions of the license.
|
75 |
|
|
|
76 |
|
77 |
+
If you have questions or would like to share your experiences using these models, please connect with us on social media. We’re excited to see what you build—and how these models help you innovate!
|