How to Run Qwen2.5-72B-Instruct Model in the Cloud?

How to Run Qwen2.5-72B-Instruct Model in the Cloud?
How to Run Qwen2.5-72B-Instruct Model in the Cloud?

The Qwen2.5-72B-Instruct is the latest large language model from the Qwen Organization. Compared to previous versions of the Qwen Series models, Qwen2.5 is a more robust model that performs exceptionally well in various areas, including coding, mathematics, and instruction-following tasks.

Qwen 2.5 models are released in seven open-source versions: 0.5B, 1.5B, 3B, 7B, 14B, 32B, and 72B. All models are available under the Apache 2.0 License, except for the 3B and 72B versions, which are available under the Qwen Research and Qwen License.

ModelsParamsNon-Emb ParamsLayersHeads (KV)Tie EmbeddingContext LengthGeneration LengthLicense
Qwen2.5-0.5B0.49B0.36B2414 / 2Yes32K8KApache 2.0
Qwen2.5-1.5B1.54B1.31B2812 / 2Yes32K8KApache 2.0
Qwen2.5-3B3.09B2.77B3616 / 2Yes32K8KQwen Research
Qwen2.5-7B7.61B6.53B2828 / 4No128K8KApache 2.0
Qwen2.5-14B14.7B13.1B4840 / 8No128K8KApache 2.0
Qwen2.5-32B32.5B31.0B6440 / 8No128K8KApache 2.0
Qwen2.5-72B72.7B70.0B8064 / 8No128K8KQwen

The Qwen2.5-72B-Instruct model has a context length of up to 128K tokens and can generate text of up to 8K tokens in length. It demonstrates exceptional performance compared to Llama-3.1-405B in various fields, such as coding and mathematics.

Use cases of Qwen2.5-72B-Instruct Model

There are several use cases of the Qwen2.5-72B-Instruct Model:

  • Content Generation: Generate long types of content like blogs, articles, stories, reports, documentation, etc.
  • Coding Assistance: Supports code generation, debugging, and automation.
  • AI Applications: Facilitates the development of chatbots and virtual assistants.

Qwen2.5-72B-Instruct Performance

DatasetsMistral-Large2 InstructLlama-3.1-70B-InstructLlama-3.1-405B-InstructQwen2-72B-InstructQwen2.5-72B-Instruct
MMLU-Pro69.466.473.364.471.1
MMLU-redux83.083.086.281.686.8
GPQA52.046.751.142.449.0
MATH69.968.073.869.083.1
GSM8K92.795.196.893.295.8
HumanEval92.180.589.086.086.6
MBPP80.084.284.580.288.2
MultiPL-E76.968.273.569.275.1
LiveCodeBench 2305-240942.232.141.632.255.5
LiveBench 083148.546.653.241.552.3
IFeval strict-prompt64.183.686.077.684.1
Arena-Hard73.155.769.348.181.2
AlignBench v1.17.695.945.958.158.16
MTbench8.618.799.089.129.35

Performances on Multilingualism

DatasetsQwen2-72B-InstructLlama3.1-70B-InstructQwen2.5-32B-InstructMistral-Large-Instruct-2407 (123B)GPT4o-miniQwen2.5-72B-Instruct
Instruction Following
IFEval (multilingual)79.6980.4782.6882.6985.0386.98
Knowledge
AMMLU (Arabic)68.8570.0870.4469.2469.7372.44
JMMLU (Japanese)77.3773.8976.5575.7773.7480.56
KMMLU (Korean)57.0453.2360.7556.4256.7761.96
IndoMMLU (Indonesian)66.3167.5066.4263.2167.7569.25
TurkishMMLU (Turkish)69.2266.8972.4164.7871.1976.12
okapi MMLU (translated)77.8476.4977.1678.3773.4479.97
Math Reasoning
MGSM8K (extended)82.7273.3187.1589.0187.3688.16
Cultural Nuances
BLEnD25.9030.4927.8833.4735.9132.48

Model Inputs and Outputs

Inputs

  • Text prompt describing the questions, instructions, etc.

Outputs

  • The primary output of the Qwen2.5-72B-Instruct model is natural language text in long forms, like code, articles, and stories.

In this blog, you'll learn:

- About Qwen2.5-72B-Instruct Model
- Setup GPU-powered Virtual Machine offered by NodeShift
- Run Qwen2.5-72B-Instruct Model in the NodeShift Cloud.

Step-by-Step Process to Run Qwen2.5-72B-Instruct 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 SXM 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 Qwen2.5-72B-Instruct on an NVIDIA Cuda Virtual Machine. This proprietary, closed-source parallel computing platform will allow you to install Qwen2.5-72B-Instruct 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 Qwen2.5-72B-Instruct

After completing the steps above, it's time to download Qwen2.5 from the Ollama website.

Website Link: https://ollama.com/library/qwen2.5:72b

We will be running Qwen2.5-72B-Instruct. Select the 72B model from the website.

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 Qwen2.5 model so it can be accessed and utilized efficiently.

ollama serve

Step 9: Pull Qwen2.5-72B-Instruct Model

To pull the Qwen2.5-72B-Instruct Model, run the following commands:

ollama pull qwen2.5:72b

Step 10: Run Qwen2.5-72B-Instruct Model

Now, you can run the model in the terminal using the following command and interact with your model:

ollama run qwen2.5:72b

Conclusion

In this guide, we've walked through setting up and running the Qwen2.5-72B-Instruct model Locally on a GPU-powered virtual machine. With Qwen2.5-72B-Instruct, you now have the tools to generate anything like text, code, and maths from prompts. By following these steps, you have the power of advanced AI text generation while enjoying the flexibility and efficiency that Qwen2.5-72B-Instruct offers.

For more information about NodeShift:

Read more