Using Llama 3.1 with Continue
Continue makes it easy to code with the latest open-source models, including the entire Llama 3.1 family of models.
If you haven't already installed Continue, you can do that here for VS Code or here for JetBrains. For more general information on customizing Continue, read our customization docs.
Below we share some of the easiest ways to get up and running, depending on your use-case.
Ollama
Ollama is the fastest way to get up and running with local language models. We recommend trying Llama 3.1 8b, which is impressive for its size and will perform well on most hardware.
- Download Ollama here (it should walk you through the rest of these steps)
- Open a terminal and run
ollama run llama3.1:8b
- Change your Continue config file like this:
{
"models": [
{
"title": "Llama 3.1 8b",
"provider": "ollama",
"model": "llama3.1-8b"
}
]
}
Groq
Groq provides the fastest available inference for open-source language models, including the entire Llama 3.1 family.
- Obtain an API key here
- Update your Continue config file like this:
{
"models": [
{
"title": "Llama 3.1 405b",
"provider": "groq",
"model": "llama3.1-405b",
"apiKey": "<API_KEY>"
}
]
}
Together AI
Together AI provides fast and reliable inference of open-source models. You'll be able to run the 405b model with good speed.
- Create an account here
- Copy your API key that appears on the welcome screen
- Update your Continue config file like this:
{
"models": [
{
"title": "Llama 3.1 405b",
"provider": "together",
"model": "llama3.1-405b",
"apiKey": "<API_KEY>"
}
]
}
Replicate
Replicate makes it easy to host and run open-source AI with an API.
- Get your Replicate API key here
- Change your Continue config file like this:
{
"models": [
{
"title": "Llama 3.1 405b",
"provider": "replicate",
"model": "llama3.1-405b",
"apiKey": "<API_KEY>"
}
]
}