Crystalcareai commited on
Commit
31b2928
·
verified ·
1 Parent(s): 1dd76fa

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +64 -160
README.md CHANGED
@@ -1,173 +1,77 @@
1
  ---
2
- quantized_by: bartowski
3
- pipeline_tag: text-generation
4
- base_model: arcee-train/Virtuoso-Medium-v2
5
  tags:
6
  - mergekit
7
  - merge
8
  ---
9
-
10
- ## Llamacpp imatrix Quantizations of Virtuoso-Medium-v2
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/b4552">b4552</a> for quantization.
13
-
14
- Original model: https://huggingface.co/arcee-train/Virtuoso-Medium-v2
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
- Run them directly with [llama.cpp](https://github.com/ggerganov/llama.cpp), or any other llama.cpp based project
21
-
22
- ## Prompt format
23
-
24
- ```
25
- <|im_start|>system
26
- {system_prompt}<|im_end|>
27
- <|im_start|>user
28
- {prompt}<|im_end|>
29
- <|im_start|>assistant
30
- ```
31
-
32
- ## Download a file (not the whole branch) from below:
33
-
34
- | Filename | Quant type | File Size | Split | Description |
35
- | -------- | ---------- | --------- | ----- | ----------- |
36
- | [Virtuoso-Medium-v2-Q8_0.gguf](https://huggingface.co/bartowski/Virtuoso-Medium-v2-GGUF/blob/main/Virtuoso-Medium-v2-Q8_0.gguf) | Q8_0 | 34.82GB | false | Extremely high quality, generally unneeded but max available quant. |
37
- | [Virtuoso-Medium-v2-Q6_K_L.gguf](https://huggingface.co/bartowski/Virtuoso-Medium-v2-GGUF/blob/main/Virtuoso-Medium-v2-Q6_K_L.gguf) | Q6_K_L | 27.26GB | false | Uses Q8_0 for embed and output weights. Very high quality, near perfect, *recommended*. |
38
- | [Virtuoso-Medium-v2-Q6_K.gguf](https://huggingface.co/bartowski/Virtuoso-Medium-v2-GGUF/blob/main/Virtuoso-Medium-v2-Q6_K.gguf) | Q6_K | 26.88GB | false | Very high quality, near perfect, *recommended*. |
39
- | [Virtuoso-Medium-v2-Q5_K_L.gguf](https://huggingface.co/bartowski/Virtuoso-Medium-v2-GGUF/blob/main/Virtuoso-Medium-v2-Q5_K_L.gguf) | Q5_K_L | 23.74GB | false | Uses Q8_0 for embed and output weights. High quality, *recommended*. |
40
- | [Virtuoso-Medium-v2-Q5_K_M.gguf](https://huggingface.co/bartowski/Virtuoso-Medium-v2-GGUF/blob/main/Virtuoso-Medium-v2-Q5_K_M.gguf) | Q5_K_M | 23.26GB | false | High quality, *recommended*. |
41
- | [Virtuoso-Medium-v2-Q5_K_S.gguf](https://huggingface.co/bartowski/Virtuoso-Medium-v2-GGUF/blob/main/Virtuoso-Medium-v2-Q5_K_S.gguf) | Q5_K_S | 22.64GB | false | High quality, *recommended*. |
42
- | [Virtuoso-Medium-v2-Q4_1.gguf](https://huggingface.co/bartowski/Virtuoso-Medium-v2-GGUF/blob/main/Virtuoso-Medium-v2-Q4_1.gguf) | Q4_1 | 20.64GB | false | Legacy format, similar performance to Q4_K_S but with improved tokens/watt on Apple silicon. |
43
- | [Virtuoso-Medium-v2-Q4_K_L.gguf](https://huggingface.co/bartowski/Virtuoso-Medium-v2-GGUF/blob/main/Virtuoso-Medium-v2-Q4_K_L.gguf) | Q4_K_L | 20.42GB | false | Uses Q8_0 for embed and output weights. Good quality, *recommended*. |
44
- | [Virtuoso-Medium-v2-Q4_K_M.gguf](https://huggingface.co/bartowski/Virtuoso-Medium-v2-GGUF/blob/main/Virtuoso-Medium-v2-Q4_K_M.gguf) | Q4_K_M | 19.85GB | false | Good quality, default size for most use cases, *recommended*. |
45
- | [Virtuoso-Medium-v2-Q4_K_S.gguf](https://huggingface.co/bartowski/Virtuoso-Medium-v2-GGUF/blob/main/Virtuoso-Medium-v2-Q4_K_S.gguf) | Q4_K_S | 18.78GB | false | Slightly lower quality with more space savings, *recommended*. |
46
- | [Virtuoso-Medium-v2-Q4_0.gguf](https://huggingface.co/bartowski/Virtuoso-Medium-v2-GGUF/blob/main/Virtuoso-Medium-v2-Q4_0.gguf) | Q4_0 | 18.71GB | false | Legacy format, offers online repacking for ARM and AVX CPU inference. |
47
- | [Virtuoso-Medium-v2-IQ4_NL.gguf](https://huggingface.co/bartowski/Virtuoso-Medium-v2-GGUF/blob/main/Virtuoso-Medium-v2-IQ4_NL.gguf) | IQ4_NL | 18.68GB | false | Similar to IQ4_XS, but slightly larger. Offers online repacking for ARM CPU inference. |
48
- | [Virtuoso-Medium-v2-Q3_K_XL.gguf](https://huggingface.co/bartowski/Virtuoso-Medium-v2-GGUF/blob/main/Virtuoso-Medium-v2-Q3_K_XL.gguf) | Q3_K_XL | 17.92GB | false | Uses Q8_0 for embed and output weights. Lower quality but usable, good for low RAM availability. |
49
- | [Virtuoso-Medium-v2-IQ4_XS.gguf](https://huggingface.co/bartowski/Virtuoso-Medium-v2-GGUF/blob/main/Virtuoso-Medium-v2-IQ4_XS.gguf) | IQ4_XS | 17.69GB | false | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
50
- | [Virtuoso-Medium-v2-Q3_K_L.gguf](https://huggingface.co/bartowski/Virtuoso-Medium-v2-GGUF/blob/main/Virtuoso-Medium-v2-Q3_K_L.gguf) | Q3_K_L | 17.24GB | false | Lower quality but usable, good for low RAM availability. |
51
- | [Virtuoso-Medium-v2-Q3_K_M.gguf](https://huggingface.co/bartowski/Virtuoso-Medium-v2-GGUF/blob/main/Virtuoso-Medium-v2-Q3_K_M.gguf) | Q3_K_M | 15.93GB | false | Low quality. |
52
- | [Virtuoso-Medium-v2-IQ3_M.gguf](https://huggingface.co/bartowski/Virtuoso-Medium-v2-GGUF/blob/main/Virtuoso-Medium-v2-IQ3_M.gguf) | IQ3_M | 14.81GB | false | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
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
- 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.
 
 
 
 
 
 
162
 
163
- 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.
 
164
 
165
- </details>
 
 
166
 
167
- ## Credits
 
168
 
169
- Thank you kalomaze and Dampf for assistance in creating the imatrix calibration dataset.
 
170
 
171
- Thank you ZeroWw for the inspiration to experiment with embed/output.
172
 
173
- Thank you to LM Studio for sponsoring my work.
 
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!