FAQ - Help and questions

Can I use a local model such as Ollama, LM Studio or llama.cpp with the Ruststudio assistant?

#ai#local-models#offlinepublished 0 replies0 views
ReplyWatch
Share
Hacker NewsRedditLinkedInE-mail

Short answer

Yes. Ruststudio has presets for Ollama, LM Studio and llama.cpp servers. They speak the OpenAI request format on a local address, so no API key is needed and the requests stay on your own machine. Start the local server, add the preset in AI > AI Providers..., and choose a model that server has installed.

Checked with Ruststudio source code (core/rs-core/src/ai.rs); no local model server was run for this thread

Frequently asked question, written and answered by the Ruststudio team. Replies are open: corrections are welcome.

#1

Answer#

A local server is added like any other provider, with a different base URL and no key. The presets in the providers dialog use these addresses:

PresetAPI base URL
Ollama (local)http://localhost:11434/v1
LM Studio (local)http://localhost:1234/v1
llama.cpp server (local)http://localhost:8080/v1

The default port of each server can be changed in that server; if you change it, edit the base URL in the provider entry to match. The three local presets do not require a key. A "Custom: OpenAI-compatible endpoint" preset exists for any other server that offers the same request format.

How to do it#

  1. Install and start the local server, and download a model in it. The model's name in the server is what goes into Ruststudio's Model field (the Ollama preset suggests qwen2.5-coder, but only a model you have downloaded will answer). See the server's own documentation for how to download a model.
  2. In Ruststudio choose AI > AI Providers..., add the preset, and check that the base URL and model name match the server.
  3. Press Test connection, then Use this one and Save.
  4. Open the assistant with Ctrl+Shift+I.

Things to know#

  • Requests go to the address you configured. With a local address they do not leave your machine; with any other address they go to that service.
  • A small local model is a different tool from a large hosted one: it is quicker to reach and private, but write shorter, more specific requests and check the result more carefully.
  • If Test connection fails, the server is probably not running, the port differs, or the model name does not exist in the server.
    QuoteReply
    Share
    Hacker NewsRedditLinkedInE-mail

    No replies yet