Upstage/Dense

SOLAR-Pro 22B

chatreasoningThinking
22.1B
Parameters
4K
Context length
7
Benchmarks
4
Quantizations
30K
HF downloads
Architecture
Dense
Released
2024-10-15
Layers
64
KV Heads
10
Head Dim
128
Family
solar
<p align="left"> <a href="https://go.upstage.ai/3Xk9J6X"> </a> <p>

Solar Pro Preview: The most intelligent LLM on a single GPU

Summary

We introduce Solar Pro Preview, an advanced large language model (LLM) with 22 billion parameters designed to fit into a single GPU. Solar Pro Preview shows superior performance compared to LLMs with less than 30 billion parameters and delivers performance comparable to models over three times its size, such as Llama 3.1 with 70 billion parameters.

Solar Pro Preview is developed using an enhanced version of our previous depth up-scaling method, which scales a Phi-3-medium model with 14 billion parameters to 22 billion parameters, intended to run on a GPU with 80GB of VRAM. Our carefully curated training strategy and dataset have significantly enhanced performance from Phi-3-medium, particularly on the MMLU-Pro and IFEval benchmarks, both respected for evaluating a model’s knowledge and instruction-following abilities.

Solar Pro Preview is a pre-release version of the official Solar Pro, with limitations on language coverage and a maximum context length of 4K. However, we believe Solar Pro Preview not only stands out as a highly efficient and capable model, but has the potential to be further extended to cover more languages and capabilities. The official version of Solar Pro will be released this November 2024 with expanded language support beyond English and longer context windows. To stay informed about the latest updates, please sign up for our mailing list. If you have any feedback or questions about the model, please visit our model discussion board and connect with us directly.

Usage

Solar Pro Preview is an instruction-tuned language model. This model is specifically designed to follow instructions and engage in conversational tasks.

Chat Template

As an instruction-tuned model, Solar Pro Preview uses the ChatML template for optimal performance in conversational and instruction-following tasks. This approach aligns with the model's training data and is likely to yield more accurate and relevant responses. For instance, a question formatted in the ChatML template looks like the following, where the model generates the answer after <|im_start|>assistant. Note that system prompts are not currently supported in Solar Pro Preview. This feature will be available in the official release.

<|im_start|>user
Please, introduce yourself.<|im_end|>
<|im_start|>assistant

Text Generation

Below is an example inference code that details loading the model, applying the chat template, and generating the model answer.

# Install requirements
# !pip install transformers==4.44.2 torch==2.3.1 flash_attn==2.5.8 accelerate==0.31.0

# Load model
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("upstage/solar-pro-preview-instruct")
model = AutoModelForCausalLM.from_pretrained(
    "upstage/solar-pro-preview-instruct",
    device_map="cuda",  
    torch_dtype="auto",  
    trust_remote_code=True,
)
# Apply chat template
messages = [
    {"role": "user", "content": "Please, introduce yourself."},
]
prompt = tokenizer.apply_chat_template(messages, return_tensors="pt", add_generation_prompt=True).to(model.device)
# Generate text
outputs = model.generate(prompt, max_new_tokens=512)
print(tokenizer.decode(outputs[0]))

Solar Pro Preview is also available as an API in Upstage Console and we provide other easy-to-use methods as well. If you'd like to explore these options, please visit our blog page.

Evaluation

Solar Pro Preview is evaluated over a variety of benchmarks.

Solar-pro-previewPhi-3-medium-4K-instructPhi-3.5-MoE-instructGemma 2 27B ITLlama-3.1-8B-instructLlama-3.1-70B-instruct
Release Date2024.09.082024.05.022024.08.202024.06.252024.06.182024.06.16
Model size22B14B41.9B (6.6B)27B8B70B
LicenseMITMITMITgemmallama3.1llama3.1
MMLU79.1478.0278.6676.1368.2582.09
MMLU Pro52.1147.5146.9945.6837.8853.01
IFEval84.3764.3769.1575.3677.4084.13
ARC-C68.8666.5568.3474.0660.2470.39
GPQA36.3835.7834.3836.3835.2641.06
HellaSwag86.3685.6885.9786.0280.0886.42
EQBench77.9176.7877.2280.3265.8082.52
BigBench Hard67.3163.0962.5864.8851.0669.54

...

Quantizations & VRAM

Q4_K_M4.5 bpw
13.2 GB
VRAM required
94%
Quality
Q6_K6.5 bpw
18.7 GB
VRAM required
97%
Quality
Q8_08 bpw
22.9 GB
VRAM required
100%
Quality
FP1616 bpw
45.0 GB
VRAM required
100%
Quality

Benchmarks (7)

IFEval73.0
BBH69.0
HumanEval66.0
MMLU-PRO48.0
MATH22.1
GPQA16.1
MUSR15.0

GPUs that can run this model

At Q4_K_M quantization. Sorted by minimum VRAM.

Find the best GPU for SOLAR-Pro 22B

Build Hardware for SOLAR-Pro 22B