Phi4 Noesis is a 14B parameter open-source model designed for advanced reasoning and efficient language processing. Built on a mix of synthetic datasets, curated public domain sources, academic literature, and Q&A datasets, the model is optimized for precise instruction following and safety. With a 16k token context length, Phi-4 is ideal for applications requiring logical reasoning, low-latency responses, and deployment in memory-constrained environments. The Noesis variant enhances reasoning capabilities further, offering both Deep and Fast Reasoning modes for different use cases. The full model weights are available on Hugging Face for researchers and developers looking to integrate or fine-tune it for specific needs.
Model Resource
Hugging Face
Link: https://huggingface.co/dimsavva/phi4-noesis
Ollama
Link: https://ollama.com/dimsavva/phi4-noesis
Prerequisites for Installing Phi4 Noesis Locally
Make sure you have the following:
- GPUs: 1xRTXA6000 (for smooth execution).
- Disk Space: 50 GB free.
- RAM: 48 GB(24 Also works) but we use 48 for smooth execution
- CPU: 48 Cores(24 Also works)but we use 48 for smooth execution
Step-by-Step Process to Install Phi4 Noesis Locally
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 RTX A6000 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 Phi4 Noesis on an NVIDIA Cuda Virtual Machine. This proprietary, closed-source parallel computing platform will allow you to install Phi4 Noesis 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 Ollama
After connecting to the terminal via SSH, it’s now time to install Ollama from the official Ollama website.
Website Link: https://ollama.com/
Run the following command to install the Ollama:
curl -fsSL https://ollama.com/install.sh | sh
Step 9: Serve Ollama
Run the following command to host the Ollama so that it can be accessed and utilized efficiently:
ollama serve
Now, “Ollama is running.”
Step 10: Select Phi4 Noesis Model
Link: https://ollama.com/dimsavva/phi4-noesis:latest
Step 11: Connect with SSH
Now, open a new tab in the terminal and reconnect using SSH.
Step 12: Check Commands
Run, the following command to see a list of available commands:
ollama
Step 13: Check Available Models
Run the following command to check if the downloaded model are available:
ollama list
Step 14: Pull Phi4 Noesis Model
Run the following command to pull the Phi4 Noesis model:
ollama pull dimsavva/phi4-noesis
Step 15: Run Phi4 Noesis Model
Now, you can run the model in the terminal using the following command and interact with your model:
ollama run dimsavva/phi4-noesis
Note: This is a step-by-step guide for interacting with your model. It covers the first method for installing Phi4 Noesis locally using Ollama and running it in the terminal.
Option 1: Using Ollama (Terminal)
- Install Ollama: Download and install the Ollama tool from the official site.
- Pull the Model: Run the following command to download the desired model:
ollama pull dimsavva/phi4-noesis
- Run the Model: Start the model in the terminal:
ollama run dimsavva/phi4-noesis
Option 2: Using Open WebUI
- Set Up Open WebUI:
Follow our Open WebUI Setup Guide to configure the interface. Ensure all dependencies are installed and the environment is correctly set up.
- Refresh the Interface:
Confirm that the Phi4 Noesis model has been downloaded and is visible in the list of available models on the Open WebUI.
- Select Your Model:
Choose the Phi4 Noesis model from the list. This model is available in a single size.
- Start Interaction:
Begin using the model by entering your queries in the interface.
Conclusion
Setting up Phi4 Noesis locally allows developers and researchers to harness its powerful reasoning capabilities efficiently. By following the step-by-step guide, you can deploy the model on a GPU-powered virtual machine using NodeShift, install Ollama, and start interacting with the model either through the terminal or via Open WebUI. Whether you need deep reasoning for complex problem-solving or fast reasoning for quick responses, Phi4 Noesis offers flexibility and high performance. With easy installation and seamless integration, this model is a valuable tool for anyone working on language models, AI research, and computational reasoning.