Skip to content

Running models locally

Dline can connect to models that run on your own machine. Local models need no API key, and request data never leaves your computer.

  1. Install a local runtime (Ollama or LM Studio).

  2. Start the runtime’s local server.

  3. Open Dline settings and choose the matching provider under Provider.

  4. Select a local model under Model.

  5. If the model has a small context window, check Use compact prompt.

MemoryTypical local setup
16–32 GBSmall or quantized models
32–64 GBMid-size coding models
64 GB or moreLarger models and longer context windows

Download Ollama from ollama.com and install the build for your operating system.

  • Browse the Ollama model library.
  • Filter by popularity, model size, and last update.
  • Open a model page and copy its ollama pull command.
Terminal window
ollama pull <model-name>
ollama run <model-name>
  1. Open Dline settings.
  2. Set Provider to Ollama.
  3. Dline connects to http://localhost:11434 by default. To use another address, check Use custom base URL and enter it; authenticated instances also accept an optional API key.
  4. Search for and select the model under Model.
  5. Set Model Context Window to the model’s real capacity (default 32768).
  • Make sure Ollama is running before you send a message.
  • If the connection fails, check that http://localhost:11434 is reachable.
  • If the model is missing from the list, run ollama pull <model-name> first.
  • For models with a small context window (for example 8K or less), check Use compact prompt in the Ollama or LM Studio settings.
  • Keep tasks focused: a smaller context produces faster responses.
  • Start a new task when the context grows too large.