Skip to main content
Pick a recipe that matches your hardware and use case. Each one gives you the exact commands to get a working local model and expose it through Tokios in minutes.
Hardware: 8 GB VRAM GPU (RTX 3060, 4060, or similar) Use case: Code completion and chat inside your editor Backend: Ollama + Continue or Cline
1

Install Ollama and pull a 7B coder model

2

Verify the model responds

3

Install the Tokios connector and register a deployment

In the dashboard, register a deployment named my-coder pointing at upstream qwen2.5-coder:7b. Create an API key.
4

Configure Continue or Cline

Expected performance: ~40 tok/s on an RTX 4060. Responsive tab completion and inline edits with 4K context.
Hardware: 16 GB VRAM GPU (RTX 4080, 4070 Ti Super, or similar) Use case: Self-hosted ChatGPT-style interface for household use Backend: Ollama + Open WebUI + Tokios
1

Start a 14B chat model with Ollama

2

Run Open WebUI with Docker

Open http://localhost:3000 and create an admin account.
3

Expose through Tokios for remote access

Register a deployment named family-chat pointing at qwen2.5:14b. Create an API key for each family member — scoped keys let you revoke access individually.
Expected performance: ~25 tok/s on an RTX 4080 with 8K context. Comfortable for multi-turn conversations.
Create separate API keys per family member so you can revoke one without affecting others.
Hardware: 48 GB+ VRAM (A6000, 2x RTX 4090, or A100) Use case: Shared model endpoint for a development team Backend: vLLM + Tokios
1

Install vLLM and launch a 70B model

2

Verify the server responds

3

Install the Tokios connector

Point the connector at http://127.0.0.1:8000/v1.
4

Register a deployment and create scoped keys

Register a deployment named team-70b. In the Keys tab, create 1 key per teammate. Scope each key to the team-* pattern so teammates can only reach shared deployments.
Expected performance: ~30 tok/s aggregate throughput with AWQ quantization. Handles 3–5 concurrent requests with acceptable latency.
With 2 GPUs, tensor parallelism gives better decode throughput than pipeline parallelism on a single node. See Tensor vs pipeline parallelism.
Hardware: 24 GB VRAM GPU (RTX 3090, 4090, or similar) Use case: Ask questions about your PDFs and documents without sending them to the cloud Backend: Ollama (embedding + chat) + custom RAG script + Tokios
1

Pull an embedding model and a 32B chat model

The embedding model (~270 MB) creates vector representations of your documents. The 32B model answers questions grounded in those embeddings.
2

Build a simple RAG pipeline

3

Expose the chat model through Tokios

Register a deployment named doc-qa pointing at qwen2.5:32b. Your RAG script can now call the model through https://api.tokios.com/v1 from any machine, while embeddings stay local.
Expected performance: ~15 tok/s for the 32B model on an RTX 4090. Embedding is near-instant for short passages.
Keep the embedding model local (it is fast and small) and route only the chat model through Tokios. This avoids sending document text over the network for embedding.
Hardware: NVIDIA DGX Spark (128 GB unified memory) Use case: Maximum throughput for large MoE models Backend: vLLM + Tokios
1

Launch a 120B MoE model at FP8

The DGX Spark’s 128 GB unified memory fits models that need 2–3 consumer GPUs. MoE models like Qwen3-235B-A22B only activate ~22B parameters per token, so inference is fast despite the large total parameter count.
2

Verify and benchmark

3

Expose through Tokios

Register a deployment named spark-moe. Create keys for each client that needs access.
Expected performance: ~35 tok/s on DGX Spark for the active parameter set. 16K context fits comfortably in unified memory.
See vLLM on DGX Spark and DGX Spark memory tuning for detailed configuration options.
Hardware: Any laptop with 16 GB RAM (no dedicated GPU required) Use case: Private AI assistant that works without internet Backend: Ollama (CPU mode)
1

Install Ollama and pull a quantized 7B model

Q4_K_M quantization keeps the model under 5 GB, so it runs on CPU with 16 GB RAM.
2

Chat locally — no internet required

That is it. The model runs entirely on your laptop. No network calls, no telemetry, no API keys.
3

Optionally expose through Tokios when online

When you have internet and want to reach the model from another device:
Register a deployment named laptop-offline. The connector only dials out when the network is available — offline, your model keeps working locally.
Expected performance: ~5 tok/s on CPU (modern laptop). Usable for chat and drafting, not for real-time coding assistance.
If your laptop has an Apple silicon chip, Ollama uses the Neural Engine and Metal automatically — expect 20–30 tok/s on M-series chips.
Hardware: 24 GB+ VRAM GPU Use case: Serve 3 models of different sizes through 1 Tokios endpoint Backend: Ollama or vLLM + Tokios with config file
1

Pull 3 models at different sizes

2

Create a multi-route connector config

Create tokios-connector.json:
3

Register all 3 deployments in the dashboard

In the Models tab, register:
4

Route by sending the model field

Expected performance: The 3B model responds in under 1 second. The 32B model takes 2–3 seconds for the first token but produces higher-quality output. Same endpoint, same key, different model field.
Ollama keeps only 1 model in VRAM at a time by default and swaps on request. If you need all 3 loaded simultaneously, run separate backends or use vLLM with LoRA adapters. See Model routing.
Hardware: Any GPU or CPU running a local model Use case: Compare throughput and latency across models, quantizations, or hardware Backend: Any + Tokios
1

Start your model server

Use any backend — Ollama, vLLM, llama.cpp, or LM Studio. Confirm it responds on its /v1 endpoint.
2

Run a throughput benchmark

3

Benchmark through Tokios to measure end-to-end latency

4

Compare quantizations

Pull the same model at different quantizations and benchmark each:
Run the same prompt against each and compare tokens per second. Q5_K_M typically gives the best quality-to-speed trade-off at 7B.
Expected results: The tunnel adds 50–150 ms of latency per request (1 round trip to the Tokios gateway). Streaming throughput is nearly identical to local — the tunnel does not buffer SSE.
For a more structured benchmark, see Benchmark your deployment.

Next steps

Case studies

Real deployment patterns from teams and individuals running local models.

Choose a local model

Pick the right model and quantization for your hardware and workflow.

Model routing

Register multiple deployments and switch models by changing the model field.

Quickstart

Go from zero to a working connector, deployment, and API key.