- Docs
- Local models
- Run models on your PC
Local models
Run AI models on your own PC
Download a model that fits your computer and run it on your PC. Your code and messages stay on this computer and it works without internet.
Codevalanche has its own local AI engine. Models that run on this computer keep your code and messages here, and they work without internet once downloaded.
Get your first model
- Open Local models. In Settings, under models that run on this PC.
- Pick the recommended model. Codevalanche recommends a model for your computer based on its memory and graphics card, and says why: for example “Already on this computer and fits in your 32 GB of memory”.
- Download it. If the local AI engine is not set up yet, one click sets up both. The engine is downloaded once and checked before use.
- Choose it in a conversation. Local models appear in the model picker like any other.
You can keep working while a model downloads. The download continues after a restart, and if the connection drops it resumes from where it stopped.
Find other models
Find a model searches public models. Each file says how it fits this computer:
| Label | Meaning |
|---|---|
| Fits in the graphics card | The model might fit entirely in your GPU’s memory, which can make it much faster. |
| Fits partly in the graphics card | Part of it runs on the GPU, the rest in normal memory. |
| Fits in memory | It runs in your computer’s memory. |
| Too large | It might need more than your computer has. Downloading it is not recommended. |
Codevalanche downloads a model only when the publisher gives a SHA-256 checksum, and pins it to an exact version, so the files you run are the files that were checked. You can also add a .gguf file that is already on your PC with Register a .gguf model file.
The default model
You can make a local model the default for new conversations. Commit messages and pull request text that Codevalanche writes also use it. Conversations you already have keep their model.
Settings for people who tune models
| Context | How much text the model reads at once. The app shows the context this PC loads and the model’s maximum. |
| Guardrails | Stops a model from loading if it could overload this PC: balanced, strict, or your own memory limit. |
| Unload when idle | Frees memory after the model has not been used for a while. |
| Longest answer | The longest single answer. A task that uses tools is never cut. |
| Thinking | Automatic follows the model; On and Off fix it from the next answer. |
The engine listens only on this computer (127.0.0.1) and is protected with a token.
Disk space
Removing a model deletes its files from this PC; you can download it again any time. Models from an earlier version are shown separately; nothing is deleted automatically.
Questions
Are local models as good as cloud models?
They are smaller, so they suit focused tasks best. They are private, work offline and have no usage limits.
Can local models read pictures?
Not yet in local runs.
Can I use LM Studio instead?
Yes. See LM Studio and local servers.