https://continue.dev/docs/walkthroughs/codellama Skip to main content Continue LogoContinue Logo ContinueDocs GitHub Search On this page Using Code Llama with Continue With Continue, you can use Code Llama as a drop-in replacement for GPT-4, either by running locally with Ollama or GGML or through Replicate. If you haven't already installed Continue, you can do that here. For more general information on customizing Continue, read our customization docs. TogetherAI 1. Create an account here 2. Copy your API key that appears on the welcome screen 3. Click the "play" button on Code Llama Instruct (13B) on the Together Models list 4. Update your Continue config file to look like this: from continuedev.src.continuedev.core.models import Models from continuedev.src.continuedev.libs.llm.together import TogetherLLM config = ContinueConfig( ... models=Models( default=TogetherLLM( api_key="", model="togethercomputer/CodeLlama-13b-Instruct" ) ) ) Ollama 1. Download Ollama here (it should walk you through the rest of these steps) 2. Open a terminal and run ollama pull codellama* 3. Change your Continue config file to look like this: from continuedev.src.continuedev.libs.llm.ollama import Ollama config = ContinueConfig( ... models=Models( default=Ollama(model="codellama") ) ) 5. Reload the VS Code window for changes to take effect *Only the 7b model is available right now. The others will be ready later today or tomorrow. Replicate 1. Get your Replicate API key here 2. Change your Continue config file to look like this: from continuedev.src.continuedev.core.models import Models from continuedev.src.continuedev.libs.llm.replicate import ReplicateLLM config = ContinueConfig( ... models=Models( default=ReplicateLLM( model="", api_key="") ) ) 3. Reload the VS Code window for changes to take effect Edit this page * TogetherAI * Ollama * Replicate Docs * Introduction * VS Code Community * Discord * Twitter More * GitHub * Website Copyright (c) 2023 Continue Dev, Inc.