codellama docs
This commit is contained in:
parent
88a8166476
commit
6c67b38172
1 changed files with 48 additions and 0 deletions
48
docs/docs/walkthroughs/codellama.md
Normal file
48
docs/docs/walkthroughs/codellama.md
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
# 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.
|
||||
|
||||
For more general information on customizing Continue, read [our customization docs](../customization.md).
|
||||
|
||||
## Ollama
|
||||
|
||||
1. Download Ollama [here](https://ollama.ai/) (it should walk you through the rest of these steps)
|
||||
2. Open a terminal and run `ollama pull codellama:7b-q4_0`\*
|
||||
3. Run `ollama serve codellama:7b-q4_0`
|
||||
4. Change your Continue config file to look like this:
|
||||
|
||||
```python
|
||||
from continuedev.src.continuedev.libs.llm.ollama import Ollama
|
||||
|
||||
config = ContinueConfig(
|
||||
...
|
||||
models=Models(
|
||||
default=Ollama(model="codellama:7b-q4_0")
|
||||
)
|
||||
)
|
||||
```
|
||||
|
||||
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](https://replicate.ai/)
|
||||
2. Change your Continue config file to look like this:
|
||||
|
||||
```python
|
||||
from continuedev.src.continuedev.core.models import Models
|
||||
from continuedev.src.continuedev.libs.llm.replicate import ReplicateLLM
|
||||
|
||||
config = ContinueConfig(
|
||||
...
|
||||
models=Models(
|
||||
default=ReplicateLLM(
|
||||
model="<CODE_LLAMA_MODEL_ID>",
|
||||
api_key="<MY_REPLICATE_API_KEY>")
|
||||
)
|
||||
)
|
||||
```
|
||||
|
||||
3. Reload the VS Code window for changes to take effect
|
||||
Loading…
Add table
Reference in a new issue