Quick Start with Local LLMs
This guide will help you get started with DevoxxGenie using local LLM providers. Running LLMs locally gives you privacy and doesn't require API keys, though it does require more system resources.
Prerequisites
Before starting, ensure you have:
- DevoxxGenie plugin installed in IntelliJ IDEA
- One of the supported local LLM providers installed on your system
Supported Local LLM Providers
DevoxxGenie supports several local LLM providers:
Setting Up with Ollama (Recommended)
Ollama is one of the easiest ways to run LLMs locally. Here's how to set it up with DevoxxGenie:
1. Install Ollama
Download and install Ollama from ollama.com/download for your operating system.
2. Download a Model
After installing Ollama, open a terminal or command prompt and run:
ollama run llama3.2
This will download the Llama 3.2 model. You can also try other models like:
ollama run phi2 # Smaller, faster model
ollama run llava # Multimodal model with image support
ollama run codellama # Optimized for code
3. Configure DevoxxGenie
- In IntelliJ IDEA, click on the DevoxxGenie icon in the right toolbar
- In the DevoxxGenie window, click on the settings dropdown (top-right corner)
- Select "Ollama" as the LLM provider
- Select your downloaded model from the model dropdown
4. Start Using DevoxxGenie
Now you can start prompting DevoxxGenie. Try:
- Selecting a code snippet and asking for an explanation
- Asking for help with a programming concept
- Requesting code generation for a specific task
Setting Up with Other Local Providers
LMStudio
- Download and install LMStudio
- Launch LMStudio and download a model of your choice
- Start the local server in LMStudio
- In DevoxxGenie settings, select "LMStudio" as the provider
- Choose your model from the dropdown
GPT4All
- Download and install GPT4All
- Launch GPT4All and download a model
- Start the API server in GPT4All
- In DevoxxGenie settings, select "GPT4All" as the provider
- Configure the model settings as needed
Custom OpenAI-Compatible Providers
For other local providers that expose an OpenAI-compatible API:
- In DevoxxGenie settings, select "Custom OpenAI" as the provider
- Configure the URL endpoint (e.g.,
http://localhost:8000/v1) - Set the model name as required by your provider
- Adjust other settings as needed
Troubleshooting Local LLM Issues
Connection Problems
If DevoxxGenie can't connect to your local LLM provider:
- Ensure the LLM service is running
- Check that the port is not blocked by a firewall
- Verify the URL in DevoxxGenie settings matches your LLM provider's endpoint
- For Ollama, check that it's running with
ollama list
Performance Issues
If responses are slow or the model is struggling:
- Try a smaller model that requires fewer resources
- Ensure your system has adequate RAM and GPU (if applicable)
- Close other resource-intensive applications
- Adjust the context window size in settings to be smaller
Next Steps
Now that you've set up DevoxxGenie with a local LLM provider, you can: