How to deploy Solar Pro 22B in the Cloud?
Solar Pro Preview is a high-performance model with 22 billion parameters, designed to operate on a single GPU. Despite its size, it consistently outperforms other models with fewer than 30 billion parameters and delivers results comparable to much larger solutions, such as the Llama 3.1 model with 70 billion parameters.
Optimized to run efficiently on GPUs with 80GB of VRAM, Solar Pro Preview builds on the Phi-3-medium framework, scaling it from 14 billion to 22 billion parameters through an enhanced depth-scaling technique. The carefully selected training process and dataset have contributed to significant improvements in tasks measuring comprehension and instruction-following abilities, like MMLU-Pro and IFEval.
As an early version of the upcoming Solar Pro, this release comes with certain limitations. It currently supports fewer languages and has a 4K context length ceiling. Nevertheless, the model stands out for its power and efficiency, with plans for the final release in November 2024, promising broader language support and an extended context window for more diverse use cases.
Evaluation
Solar Pro Preview is evaluated over a variety of benchmarks.
Solar-pro-preview | Phi-3-medium-4K-instruct | Phi-3.5-MoE-instruct | Gemma 2 27B IT | Llama-3.1-8B-instruct | Llama-3.1-70B-instruct | |
---|---|---|---|---|---|---|
Release Date | 2024.09.08 | 2024.05.02 | 2024.08.20 | 2024.06.25 | 2024.06.18 | 2024.06.16 |
Model size | 22B | 14B | 41.9B (6.6B) | 27B | 8B | 70B |
License | MIT | MIT | MIT | gemma | llama3.1 | llama3.1 |
MMLU | 79.14 | 78.02 | 78.66 | 76.13 | 68.25 | 82.09 |
MMLU Pro | 52.11 | 47.51 | 46.99 | 45.68 | 37.88 | 53.01 |
IFEval | 84.37 | 64.37 | 69.15 | 75.36 | 77.40 | 84.13 |
ARC-C | 68.86 | 66.55 | 68.34 | 74.06 | 60.24 | 70.39 |
GPQA | 36.38 | 35.78 | 34.38 | 36.38 | 35.26 | 41.06 |
HellaSwag | 86.36 | 85.68 | 85.97 | 86.02 | 80.08 | 86.42 |
EQBench | 77.91 | 76.78 | 77.22 | 80.32 | 65.80 | 82.52 |
BigBench Hard | 67.31 | 63.09 | 62.58 | 64.88 | 51.06 | 69.54 |
MUSR | 45.85 | 42.28 | 46.79 | 45.67 | 29.68 | 47.22 |
GSM8K | 89.69 | 84.76 | 82.26 | 62.85 | 75.97 | 92.12 |
MBPP | 61.59 | 60.27 | N/A (*) | 63.08 | 52.20 | 65.51 |
Evaluation Protocol
For easy reproduction of our evaluation results, we list the evaluation tools and settings used below. All evaluations are conducted with NVIDIA DGX H100.
Evaluation setting | Metric | Evaluation tool | |
---|---|---|---|
MMLU | 5-shot | macro_avg / acc | lm-eval-harness #928e8bb |
MMLU Pro | 5-shot | macro_avg / acc | lm-eval-harness #928e8bb |
IFEval | 0-shot, chat_template | mean of prompt_level_strict_acc and instruction_level_strict_acc | lm-eval-harness #928e8bb |
ARC-C | 25-shot | acc_norm | lm-eval-harness #928e8bb |
GPQA | 0-shot | acc_norm | lm-eval-harness #928e8bb |
HellaSwag | 10-shot | acc_norm | lm-eval-harness #928e8bb |
EQBench | 0-shot, chat_template | eqbench score | lm-eval-harness #928e8bb |
BigBench Hard | 3-shot | macro_avg / acc_norm | lm-eval-harness #928e8bb |
MUSR | 0-shot | macro_avg / acc_norm | lm-eval-harness #928e8bb |
GSM8K | 8-shot, CoT | acc, exact_match & strict_extract | lm-eval-harness #928e8bb |
MBPP | 0-shot | pass@1 | bigcode-evaluation-harness #0f3e95f |
The results may vary slightly for different batch sizes and experimental environment such as GPU type.
Step-by-Step Process to Deploy Solar Pro 22B Model in the Cloud
For the purpose of this tutorial, we will use a GPU-powered Virtual Machine offered by NodeShift; however, you can replicate the same steps with any other cloud provider of your choice. NodeShift provides the most affordable Virtual Machines at a scale that meets GDPR, SOC2, and ISO27001 requirements.
Step 1: Sign Up and Set Up a NodeShift Cloud Account
Visit the NodeShift Platform and create an account. Once you've signed up, log into your account.
Follow the account setup process and provide the necessary details and information.
Step 2: Create a GPU Node (Virtual Machine)
GPU Nodes are NodeShift's GPU Virtual Machines, on-demand resources equipped with diverse GPUs ranging from H100s to A100s. These GPU-powered VMs provide enhanced environmental control, allowing configuration adjustments for GPUs, CPUs, RAM, and Storage based on specific requirements.
Navigate to the menu on the left side. Select the GPU Nodes option, create a GPU Node in the Dashboard, click the Create GPU Node button, and create your first Virtual Machine deployment.
Step 3: Select a Model, Region, and Storage
In the "GPU Nodes" tab, select a GPU Model and Storage according to your needs and the geographical region where you want to launch your model.
We will use 1x H100 GPU for this tutorial to achieve the fastest performance. However, you can choose a more affordable GPU with less VRAM if that better suits your requirements.
Step 4: Select Authentication Method
There are two authentication methods available: Password and SSH Key. SSH keys are a more secure option. To create them, please refer to our official documentation.
Step 5: Choose an Image
Next, you will need to choose an image for your Virtual Machine. We will deploy Solar Pro 22B on an NVIDIA Cuda Virtual Machine. This proprietary, closed-source parallel computing platform will allow you to install Solar Pro 22B on your GPU Node.
After choosing the image, click the 'Create' button, and your Virtual Machine will be deployed.
Step 6: Virtual Machine Successfully Deployed
You will get visual confirmation that your node is up and running.
Step 7: Connect to GPUs using SSH
NodeShift GPUs can be connected to and controlled through a terminal using the SSH key provided during GPU creation.
Once your GPU Node deployment is successfully created and has reached the 'RUNNING' status, you can navigate to the page of your GPU Deployment Instance. Then, click the 'Connect' button in the top right corner.
Now open your terminal and paste the proxy SSH IP or direct SSH IP.
Next, if you want to check the GPU details, run the command below:
nvidia-smi
Step 8: Install Solar Pro
After completing the steps above, it's time to download Solar Pro from the Ollama website.
Website Link: https://ollama.com/library/solar-pro
Then run the following command to install Ollama:
curl -fsSL https://ollama.com/install.sh | sh
After the installation process is complete, run the following command to see a list of available commands:
ollama
Next, run the following command to host the Solar Pro model so that it can be accessed and utilized efficiently.
ollama serve
Step 9: Install Solar Pro 22B Model
To install the Solar Pro 22B Model, run the following command:
Website Link: https://ollama.com/library/solar-pro:22b
ollama pull solar-pro:22b
Step 10: Run Solar Pro 22B Model
Now, you can run the model in the terminal using the following command and interact with your model:
ollama run solar-pro:22b
Conclusion
Solar Pro 22B is a groundbreaking open-source model from Meta that brings state-of-the-art AI capabilities to developers and researchers. Following this step-by-step guide, you can quickly deploy Solar Pro 22B on a GPU-powered Virtual Machine with NodeShift, harnessing its full potential. NodeShift provides an accessible, secure, affordable platform to run your AI models efficiently. It is an excellent choice for those experimenting with Solar Pro 22B and other cutting-edge AI tools.