
Setting up a local instance of Novita AI can significantly enhance your ability to experiment with cutting-edge AI models without relying on cloud infrastructure.
Artificial Intelligence (AI) is rapidly transforming industries, with applications spanning from healthcare to finance, and customer service to automation. Among the most intriguing developments in AI are large language models (LLMs), which allow for powerful natural language processing (NLP) capabilities. One such cutting-edge tool is Novita AI, a Local LMM (Large Multimodal Model) designed to offer robust AI-powered solutions. In this guide, we will walk you through the process of setting up a local Novita AI instance on your system.
What is Novita AI?

Novita AI is a specialized LMM that can process and understand both text and visual data. It is designed to work in local environments, meaning you can install and run it on your own servers or machines, ensuring privacy and control over the data and processes. Local deployment of AI models like Novita is especially important for businesses and developers who need to comply with strict data privacy regulations or require AI-powered solutions that work offline.
In the following sections, we will cover everything you need to know to set up Novita AI locally, from prerequisites to installation and configuration.
Prerequisites for Installing Novita AI
Before diving into the installation, make sure your system meets the following requirements:
- Operating System: Linux (Ubuntu is commonly recommended for AI setups), or Windows with WSL (Windows Subsystem for Linux).
- Hardware Requirements: A powerful CPU (preferably multi-core), at least 16GB of RAM (32GB recommended), and sufficient disk space (SSD recommended for speed).
- Python Environment: Novita AI requires Python 3.8 or higher. Make sure you have Python and
pip
installed. - CUDA (for GPU acceleration): If you plan to run Novita AI on a GPU, make sure you have CUDA installed. This will speed up processing by offloading tasks to your GPU.
- Git: Git is used for cloning the necessary repositories for Novita AI.
Once you have these prerequisites ready, you’re all set to begin the installation process.
Step 1: Installing Dependencies
The first step in setting up Novita AI is installing all the necessary dependencies. Start by updating your package list and installing Python-related libraries and tools.
For Ubuntu (Linux):
- Update Package List and Install Python Dependencies:bashCopy code
sudo apt update sudo apt install python3-pip python3-dev python3-venv git
- Optional: Install CUDA for GPU (if applicable)
If you are using an Nvidia GPU, install CUDA and the necessary Nvidia drivers. This step depends on your GPU model and should follow Nvidia’s official installation guide.
For Windows with WSL:
Follow similar steps using the WSL terminal, ensuring you install the necessary Linux packages and Python dependencies.
Step 2: Clone the Novita AI Repository
Once the dependencies are in place, the next step is to clone the official Novita AI repository. This can be done using Git.
bashCopy codegit clone https://github.com/novita-ai/novita-ai.git
cd novita-ai
This will download the source code and dependencies needed for Novita AI.
Step 3: Set Up a Virtual Environment (Optional but Recommended)
To avoid conflicts with other Python packages on your system, it’s a good idea to create a virtual environment for Novita AI.
- Create a Virtual Environment:bashCopy code
python3 -m venv novita-env
- Activate the Virtual Environment:For Linux/macOS:bashCopy code
source novita-env/bin/activate
For Windows:bashCopy codenovita-env\Scripts\activate
This step ensures that all dependencies for Novita AI are installed in an isolated environment.
Step 4: Install Novita AI Dependencies
With the virtual environment activated (if used), install the necessary Python libraries by running the following command:
bashCopy codepip install -r requirements.txt
This will install the core libraries, including AI model dependencies, machine learning frameworks like TensorFlow or PyTorch, and other necessary tools.
Step 5: Configure Novita AI
Some configuration may be necessary before you can run the model locally. Configuration involves setting up access to certain APIs, adjusting paths, or setting parameters for model training and inference.
- Edit Configuration Files:
Navigate to the configuration files in the repository directory. Here, you will find aconfig.yaml
or similar configuration file where you can specify settings like model sizes, input data paths, and any custom parameters. Modify this file based on your system setup. - Optional: Add GPU Configuration:
If you’re using a GPU, ensure that the relevant CUDA or GPU settings are configured in the model settings.
Step 6: Download Pre-trained Models
Novita AI typically uses pre-trained models for language processing and multimodal tasks. To get started quickly, you’ll need to download the appropriate models.
- Run the Download Script:bashCopy code
python download_models.py
This will automatically download the pre-trained models needed to use Novita AI locally. Depending on the model size, this process might take some time and require a stable internet connection. - Manual Model Download:
If the script fails or you prefer manual download, you can visit the official Novita AI model repository and download the models from there.
Step 7: Running Novita AI Locally
With everything set up, you are now ready to run Novita AI on your local machine. The repository should contain an entry script to start the AI server. Run the following command to launch Novita AI:
bashCopy codepython run_local.py
This will start the model in local mode. You can now send requests to the AI model via an HTTP server (often running on localhost:5000
or similar), or by interacting with it through the provided Python API.
Step 8: Test Novita AI
To ensure that Novita AI is running correctly, you can perform a basic test by sending a query to the model.
bashCopy codecurl -X POST http://localhost:5000/api/query -d '{"text": "Hello, Novita AI!"}' -H "Content-Type: application/json"
If everything is set up correctly, you should receive a response from the AI model in the terminal or your API client.
Troubleshooting Common Issues
1. Missing Dependencies:
If you encounter errors related to missing packages or dependencies, ensure that all required libraries are installed. Check the requirements.txt
file and make sure to run pip install -r requirements.txt
.
2. Memory Errors:
If your system runs out of memory when running the model, try adjusting the batch size or running the model on a machine with more resources (e.g., a GPU server or a machine with more RAM).
3. Model Download Fails:
Ensure that your internet connection is stable during the model download phase. If necessary, you can manually download the models from the official repository and place them in the correct directories.
Conclusion
Setting up a local instance of Novita AI can significantly enhance your ability to experiment with cutting-edge AI models without relying on cloud infrastructure. By following these steps, you’ll have Novita AI running smoothly on your local machine, ready for text and multimodal processing tasks.