Extend
Local AI
Run AI models on your own server, manage model files, search your documents and train on your data.
Bistro helps you run models on your own hardware. Nothing leaves the server unless you allow it. The tools sit on the Hardware page (AI and Jobs tabs). For the assistant chat, keys and approvals, see Ask Bistro.
#What Can I Run
The advisor reads RAM, GPU memory, CPU cores and AVX support. It lists model sizes from 1B to 70B and marks each one: fits on the GPU, fits in RAM (slow) or no. It also names a chat model and a tool-calling model. The Hardware page shows this as AI Models This Machine Can Run.
bistro advisor run
bistro advisor buy # the upgrade that unlocks the next sizeA model needs about its file size times 1.2 for context and runtime. GPU fit counts 95 percent of video memory. RAM fit keeps 2 GB for the system.
#Set Up a Local Assistant
Bistro ships a table of tested models (local-models.json). It picks the biggest one that fits your GPU. On a CPU it picks one of 8B or smaller, so answers stay fast enough.
bistro ai local status # the suggested model
bistro ai local setup # add --model NAME to choose, --no-pull to skip the downloadFor a full chat stack, apply the AI Box preset. See Settings.
#Model Files
One list covers Ollama, LocalAI, ComfyUI and Hugging Face caches. The AI tab shows the same list, plus a library where you search, check fit and pull.
bistro models # every model: engine, size, last used
bistro models search qwen # GGUF models on Hugging Face
bistro models fit qwen3:8b # does each quantization fit?
bistro models pull ollama qwen3:8b
bistro models pull hf ORG/REPO --quant Q4_K_M
bistro models progress
bistro models dedupe --dry-run # same content becomes one copy
bistro models offload ollama:qwen3:8b /mnt/hdd/models
bistro models prune --unused 90 # lists; add --yes to delete
bistro models rm ollama:qwen3:8b # shows it; add --yes to deleteDownloads run at low priority and resume. Gated models need a token on stdin (--token-stdin) or in the vault as hf-token. Stop the app before an offload.
#GPU Memory
Ollama keeps a model loaded for a while. The VRAM card shows what sits in video memory. You can pin a model, free one now, or unload idle models.
bistro vram status
bistro vram keep qwen3:8b on
bistro vram unload qwen3:8b
bistro vram idle 10 # unload unpinned models after 10 idle minutes
bistro vram check qwen3:14b # exit 0 when it fits#Several Machines
A model too big for one GPU can split across cluster nodes. This needs llama.cpp built with RPC on every node. Bistro does not install it. The RPC port has no login, so keep it inside your LAN. See Cluster.
bistro infer status
bistro infer plan /srv/data/models/big.gguf
bistro infer start /srv/data/models/big.gguf
bistro infer route # where to send requests
bistro infer stop
bistro infer borrow auto # a machine with no GPU uses another node's Ollama
bistro infer borrow --off#Search Your Documents
RAG indexes a folder into the Qdrant or Chroma app, using Ollama for embeddings (default nomic-embed-text). Query it by meaning. Reindexing reads only new, changed and removed files.
bistro rag add notes /srv/data/notes
bistro rag list
bistro rag query notes "backup schedule"
bistro rag reindex --all
bistro rag serve on # HTTP on 127.0.0.1:8780, bearer key
bistro rag serve key
bistro rag remove notes#Compare Models
Evals send the same prompts to several models and show the answers side by side, with time and speed. A judge model can score them from 1 to 10.
bistro evals add trivia prompts.txt # prompts split by a line with ---
bistro evals run trivia qwen3:8b llama3.1:8b --judge qwen3:14b
bistro evals show triviaAdd --via gateway to include cloud models through the AI gateway.
#GPU Jobs and Fine-Tuning
The GPU job queue runs one job per GPU. Jobs pause while the machine is busy and resume when it calms. --when cheap waits for the window CHEAP_START to CHEAP_END in /etc/bistro/bistro.conf.
bistro gpujobs add embed --gpu 0 --when cheap -- python3 /srv/data/embed.py
bistro gpujobs list
bistro gpujobs logs ID
bistro gpujobs pause ID
bistro gpujobs cancel IDFine-tuning trains a base model on your data in a container, through the same queue. The result lands in the model library.
bistro finetune image axolotl # show or set the engine image
bistro finetune add mytune --base ORG/MODEL --data /srv/data/train --engine axolotl
bistro finetune run ID --when cheap
bistro finetune logs ID
bistro finetune result ID