Instructions to use arcee-ai/Virtuoso-Medium-v2-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use arcee-ai/Virtuoso-Medium-v2-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("arcee-ai/Virtuoso-Medium-v2-GGUF", dtype="auto") - llama-cpp-python
How to use arcee-ai/Virtuoso-Medium-v2-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="arcee-ai/Virtuoso-Medium-v2-GGUF", filename="Virtuoso-Medium-v2-IQ2_M.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use arcee-ai/Virtuoso-Medium-v2-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf arcee-ai/Virtuoso-Medium-v2-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf arcee-ai/Virtuoso-Medium-v2-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf arcee-ai/Virtuoso-Medium-v2-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf arcee-ai/Virtuoso-Medium-v2-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf arcee-ai/Virtuoso-Medium-v2-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf arcee-ai/Virtuoso-Medium-v2-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf arcee-ai/Virtuoso-Medium-v2-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf arcee-ai/Virtuoso-Medium-v2-GGUF:Q4_K_M
Use Docker
docker model run hf.co/arcee-ai/Virtuoso-Medium-v2-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use arcee-ai/Virtuoso-Medium-v2-GGUF with Ollama:
ollama run hf.co/arcee-ai/Virtuoso-Medium-v2-GGUF:Q4_K_M
- Unsloth Studio
How to use arcee-ai/Virtuoso-Medium-v2-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for arcee-ai/Virtuoso-Medium-v2-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for arcee-ai/Virtuoso-Medium-v2-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for arcee-ai/Virtuoso-Medium-v2-GGUF to start chatting
- Pi
How to use arcee-ai/Virtuoso-Medium-v2-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf arcee-ai/Virtuoso-Medium-v2-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "arcee-ai/Virtuoso-Medium-v2-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use arcee-ai/Virtuoso-Medium-v2-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf arcee-ai/Virtuoso-Medium-v2-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default arcee-ai/Virtuoso-Medium-v2-GGUF:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use arcee-ai/Virtuoso-Medium-v2-GGUF with Docker Model Runner:
docker model run hf.co/arcee-ai/Virtuoso-Medium-v2-GGUF:Q4_K_M
- Lemonade
How to use arcee-ai/Virtuoso-Medium-v2-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull arcee-ai/Virtuoso-Medium-v2-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Virtuoso-Medium-v2-GGUF-Q4_K_M
List all available models
lemonade list
Improve language tag
#2
by lbourdois - opened
README.md
CHANGED
|
@@ -1,78 +1,92 @@
|
|
| 1 |
-
---
|
| 2 |
-
base_model:
|
| 3 |
-
- Qwen/Qwen2.5-32B
|
| 4 |
-
library_name: transformers
|
| 5 |
-
tags:
|
| 6 |
-
- mergekit
|
| 7 |
-
- merge
|
| 8 |
-
license: apache-2.0
|
| 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 |
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!
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model:
|
| 3 |
+
- Qwen/Qwen2.5-32B
|
| 4 |
+
library_name: transformers
|
| 5 |
+
tags:
|
| 6 |
+
- mergekit
|
| 7 |
+
- merge
|
| 8 |
+
license: apache-2.0
|
| 9 |
+
language:
|
| 10 |
+
- zho
|
| 11 |
+
- eng
|
| 12 |
+
- fra
|
| 13 |
+
- spa
|
| 14 |
+
- por
|
| 15 |
+
- deu
|
| 16 |
+
- ita
|
| 17 |
+
- rus
|
| 18 |
+
- jpn
|
| 19 |
+
- kor
|
| 20 |
+
- vie
|
| 21 |
+
- tha
|
| 22 |
+
- ara
|
| 23 |
+
---
|
| 24 |
+
<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;" />
|
| 25 |
+
|
| 26 |
+
**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).
|
| 27 |
+
|
| 28 |
+
### Model Details
|
| 29 |
+
- **Architecture Base:** Qwen-2.5-32B
|
| 30 |
+
- **Parameter Count:** 32B
|
| 31 |
+
- **Tokenizer:**
|
| 32 |
+
- Initially integrated with Deepseek-v3 tokenizer for logit extraction.
|
| 33 |
+
- Final alignment uses the Qwen tokenizer, using specialized “tokenizer surgery” for cross-architecture compatibility.
|
| 34 |
+
- **Distillation Data:**
|
| 35 |
+
- ~1.1B tokens/logits from Deepseek-v3’s training data.
|
| 36 |
+
- Logit-level distillation using a proprietary “fusion merging” approach afterwards for maximum fidelity.
|
| 37 |
+
- **License:** [Apache-2.0](#license)
|
| 38 |
+
|
| 39 |
+
### Background on Deepseek Distillation
|
| 40 |
+
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:
|
| 41 |
+
- Technical and scientific queries
|
| 42 |
+
- Complex code generation
|
| 43 |
+
- Mathematical problem-solving
|
| 44 |
+
|
| 45 |
+
### Intended Use Cases
|
| 46 |
+
- **Advanced Chatbots & Virtual Assistants**
|
| 47 |
+
- **Enterprise Data Analysis & Workflow Automation**
|
| 48 |
+
- **Research Simulations & Natural Language Understanding**
|
| 49 |
+
- **Educational Tools for STEM Fields**
|
| 50 |
+
|
| 51 |
+
### Evaluations
|
| 52 |
+
<img src="https://huggingface.co/arcee-train/Virtuoso-Lite/resolve/main/Benchmarks.png" alt="Virtuoso-Lite Logo" style="display: block; margin: 0 auto;" />
|
| 53 |
+
|
| 54 |
+
### How to Use
|
| 55 |
+
Below is a sample code snippet using `transformers`:
|
| 56 |
+
|
| 57 |
+
```python
|
| 58 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 59 |
+
|
| 60 |
+
model_name = "arcee-ai/virtuoso-medium-v2-32b"
|
| 61 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 62 |
+
model = AutoModelForCausalLM.from_pretrained(model_name)
|
| 63 |
+
|
| 64 |
+
prompt = "Provide a concise summary of quantum entanglement."
|
| 65 |
+
inputs = tokenizer(prompt, return_tensors="pt")
|
| 66 |
+
outputs = model.generate(**inputs, max_new_tokens=150)
|
| 67 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 68 |
+
```
|
| 69 |
+
|
| 70 |
+
### Training & Fine-Tuning
|
| 71 |
+
- **Initial Training:** Began with Qwen-32B, calibrated for large-scale text ingestion.
|
| 72 |
+
- **Distillation & Merging:**
|
| 73 |
+
- Trained on ~1.1B tokens worth of Deepseek-v3 logits.
|
| 74 |
+
- Employed “fusion merging” to retain as much teacher expertise as possible.
|
| 75 |
+
- Final step included DPO to improve alignment and reduce model hallucinations.
|
| 76 |
+
- **Continuous Development:** Additional R1 distillations are in progress to further enhance performance and specialization.
|
| 77 |
+
|
| 78 |
+
### Performance
|
| 79 |
+
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.
|
| 80 |
+
|
| 81 |
+
### Limitations
|
| 82 |
+
- **Context Length:** 128k Tokens
|
| 83 |
+
- **Knowledge Cut-off:** Training data may not reflect the latest events or developments, leading to gaps in current knowledge beyond June 2024.
|
| 84 |
+
|
| 85 |
+
### Ethical Considerations
|
| 86 |
+
- **Content Generation Risks:** Like any language model, Virtuoso-Medium-v2 can potentially generate harmful or biased content if prompted in certain ways.
|
| 87 |
+
|
| 88 |
+
### License
|
| 89 |
+
**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.
|
| 90 |
+
|
| 91 |
+
|
| 92 |
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!
|