All docs

Docs › Studio › Studio on your computer

Use a model you run yourself

How to have Studio use an AI model that runs on this computer, on another machine of yours, or on a GPU machine in your own cloud account.

Most people use a cloud AI service or their Claude or ChatGPT subscription. That is the fastest way, and it is what Studio starts with. A model you run yourself is for when you want your work to stay on machines you control, want to work offline, or already pay for GPU machines in your company's cloud. Nothing goes to us either way.

Before you start

  • A machine big enough for the model. The model below needs 64 GB of memory or more on a computer (a Mac with Apple silicon, or a PC whose graphics share the computer's memory), or a GPU with 48 GB or more in the cloud. Smaller machines can run smaller models, but those don't build apps well.
  • Patience. On a computer, a build takes minutes rather than seconds.
  • English works best. Open models are less reliable in other languages. For those, a cloud AI service does better.

The model we suggest is Qwen3.6-35B-A3B, in the UD-Q4_K_M file from unsloth/Qwen3.6-35B-A3B-GGUF on Hugging Face (22 GB), together with that page's mmproj-F16.gguf file so it can read photos. Any server that speaks the OpenAI API works with Studio: llama.cpp's llama-server, vLLM, SGLang, Ollama or LM Studio.

Tip: your AI can do the setup steps below for you, on this computer or on any machine in your SSH config. Ask it, for example: Set up llama-server with Qwen3.6-35B-A3B on mygpu, as in the guide.

Run a model on this computer

  1. Get llama.cpp:

    • Mac: brew install llama.cpp
    • Windows or Linux: download the vulkan build for your system from the llama.cpp releases page on GitHub (ggml-org/llama.cpp) and unzip it. Nothing is installed.
  2. Download the two model files into one folder, for example with hf download unsloth/Qwen3.6-35B-A3B-GGUF Qwen3.6-35B-A3B-UD-Q4_K_M.gguf mmproj-F16.gguf --local-dir models.

  3. Start the server and leave it running:

     llama-server -m models/Qwen3.6-35B-A3B-UD-Q4_K_M.gguf --mmproj models/mmproj-F16.gguf -ngl 99 -fa on -c 65536 --jinja --host 127.0.0.1 --port 8080
  4. Connect Studio to it (below) with the address http://127.0.0.1:8080/v1.

You'll see: the server print that it is listening on 127.0.0.1:8080. The first request takes about a minute to start while the model reads Studio's instructions; after that, requests start right away.

Use a model on another machine of yours

For a stronger machine at home or in the office, reached with SSH.

  1. Start the server on that machine as in Run a model on this computer, keeping --host 127.0.0.1 so it is not open to the network.

  2. On this computer, connect to it through SSH and leave the window open:

     ssh -N -L 8080:127.0.0.1:8080 mymachine
  3. Connect Studio with the address http://127.0.0.1:8080/v1.

You'll see: Studio talking to the model on the other machine as if it ran here. The connection lasts while the SSH window stays open.

Use a GPU machine in your own cloud account

For a GPU machine you rent in AWS, Google Cloud, Azure or another cloud. It is set up like any other machine of yours.

  1. Start a Linux machine with a GPU of 48 GB or more, and add it to your SSH config (for example as mygpu).

  2. On the machine, download the model files into ~/models as above.

  3. Start the server with Docker and the GPU, open only to the machine itself:

     docker run -d --restart unless-stopped --gpus all -v ~/models:/models -p 127.0.0.1:8080:8080 ghcr.io/ggml-org/llama.cpp:server-cuda -m /models/Qwen3.6-35B-A3B-UD-Q4_K_M.gguf --mmproj /models/mmproj-F16.gguf -ngl 99 -fa on -c 65536 --jinja --host 0.0.0.0 --port 8080
  4. On this computer, connect through SSH as in Use a model on another machine of yours: ssh -N -L 8080:127.0.0.1:8080 mygpu.

  5. Connect Studio with the address http://127.0.0.1:8080/v1.

Stop the machine when you are done. A cloud GPU machine is billed for every hour it is on, whether you use it or not.

Tip: if you use Studio on that server, Studio there can use the model directly at http://127.0.0.1:8080/v1, with no SSH step.

Connect Studio to your model

  1. Open Settings → Use your own API key.
  2. Choose Other (OpenAI-compatible).
  3. Fill in:
    • Address: http://127.0.0.1:8080/v1 (or your server's address).
    • Key: any text, unless your server asks for a key.
    • Model: any name; the server uses the model it has loaded.
  4. Press Save, then Test.

You'll see: the model's answer to a short question, and the first card on Studio & AI naming your own AI.

Tip: Remove key goes back to what you used before, for example when you stop the cloud machine.

Keep it private and safe

  • Where your work goes. With a model on this computer, nothing leaves it. With another machine or a cloud machine, your requests go only to that machine. Nothing goes to us.
  • Don't open the model's port to the internet. Anyone who can reach it can use your GPU. Keep the server on 127.0.0.1 and reach it through SSH, as above. If it has to be on a network, give it a key (--api-key for llama-server) and enter the same key in Studio.
  • Your cloud account's own rules apply to a cloud machine: who can reach it, where it runs and what it costs.