TL;DR: I pulled Qwen3 8B into Ollama, pointed a ByteChef connection at http://localhost:11434, and built two workflows: a support-ticket classifier that always returns the same JSON shape, and an AI agent that calls a tool before it answers. On an M3 Max the classifier answers in under a second once the model is loaded (about 9 s on the very first call), and the agent finishes its tool call and answer in 2.1 to 2.6 s. Every request went to localhost.
Disclosure: I work on ByteChef, an open-source workflow automation platform. Everything below, screenshots and numbers included, comes from one live run on my laptop.
The sentence that stops automation projects
"We can't send that data to a hosted model."
Contracts, patient records, financial data, source code, anything under GDPR or a customer's data agreement. Once a workflow posts it to a hosted API, it is out of your hands, and a lot of useful automation never gets built for that reason alone.
A local model takes the objection away. It runs on hardware you own and the data stays on your network. Three more things come with it:
- Cost at volume. My test ticket used 92 prompt tokens and 44 output tokens. Real tickets are longer, so call it 300 tokens each: 100,000 tickets a month is about 30 million tokens on a hosted bill. Locally, it's a machine you already paid for.
- No outside dependency. No rate limits, no provider outages, nobody retiring your model. After the download, it runs without an internet connection.
- Control. You pick the exact model and version, and it changes only when you change it.
What I wanted to find out is how well this works in practice.
What I tested on
| Machine | Apple M3 Max, 64 GB unified memory |
| Runtime | Ollama 0.40.9 |
| ByteChef | 0.36 or later (the Thinking section explains why) |
| Model | qwen3:8b (Q4_K_M), a 5.2 GB download |
| Memory while loaded | about 10 to 11 GB, 100% on the GPU, 40,960-token context |
| Generation speed | 51 to 53 tokens per second |
Why Ollama? LM Studio, llama.cpp's server and vLLM all run local models too. Ollama installs with one command and downloads models by name, and ByteChef has a dedicated Ollama component: a connection, a model dropdown that reads what you have installed, and settings for Ollama-specific options like Thinking and Keep alive.
Why Qwen3 8B? I needed a model that fits on a laptop, calls tools reliably and sticks to a JSON schema. It does all three. If you have less memory, qwen3:4b is the next size down, though I didn't test it for this post.
How the pieces talk
ByteChef talks to Ollama over HTTP on the same machine. The triage workflow sends one request per ticket. The agent sends two: one where the model asks for a tool, and one where it writes the answer after ByteChef has run that tool.
Step 1: Pull the model
Install Ollama, then:
ollama pull qwen3:8b ollama run qwen3:8b "Say hello in five words." The download took 157 seconds on my connection. Nothing after this point needs the internet.
Or run everything with Docker Compose
On Linux you can start PostgreSQL, ByteChef and Ollama together. The Compose file also downloads qwen3:8b and the nomic-embed-text embedding model on first start:
curl -O https://raw.githubusercontent.com/bytechefhq/bytechef/master/docker-compose.ollama.yml docker compose -f docker-compose.ollama.yml up Inside that stack Ollama is at http://ollama:11434, not localhost. The Local Docker docs cover other models and NVIDIA GPUs.
On a Mac, don't run Ollama in Docker. Docker on macOS can't give containers the Apple GPU, so Ollama falls back to the CPU. Even the tiny qwen3:0.6b took 38 seconds to answer one chat message that way. Install Ollama natively, run ByteChef with the plain docker-compose.yml, and use http://host.docker.internal:11434 as the URL.
Step 2: Create the connection
In ByteChef, open Connections → New Connection and pick Ollama.
The URL depends on where things run:
| Setup | URL |
|---|---|
| Ollama and ByteChef on the same machine | http://localhost:11434 |
| ByteChef in Docker, Ollama on the host | http://host.docker.internal:11434 |
| The Compose file above | http://ollama:11434 |
| A shared GPU server | that server's address |
Leave Token empty for a local Ollama. If Ollama sits behind a reverse proxy that checks a bearer token, enter it here and ByteChef sends it with every request.
Step 3: Build the triage workflow
The workflow takes a ticket and asks Qwen3 for a category, a priority and a one-sentence summary.
- Create a workflow with a Manual trigger and add an input named
ticketunder Workflow Inputs. - Add Ollama → Ask and pick your Ollama connection.
- Open the Model dropdown. It lists what is installed on your Ollama server, so
qwen3:8bis already there.
- Leave Format on Simple. This setting is about how you write the prompt (one Prompt and one System Prompt field, versus a list of messages in Advanced). It has nothing to do with the shape of the answer.
- Set Prompt to the
ticketdata pill, and System Prompt to: "You triage customer support tickets. Pick the category and priority, and write a one-sentence summary."
- The shape of the answer is set under Response. Set Response Format to Structured data and build the schema in Response Schema with three text fields. Ollama holds the model to the schema while it writes, so you get JSON in the same shape every time:
{ "type": "object", "properties": { "category": { "type": "string", "enum": ["BILLING", "TECHNICAL", "SALES"] }, "priority": { "type": "string", "enum": ["LOW", "MEDIUM", "HIGH"] }, "summary": { "type": "string" } }, "required": ["category", "priority", "summary"] } To skip the clicking, import the template (it already has the schema) and pick your connection.
Step 4: Run it
Give the ticket input a test value and click Test. Mine:
Hi, I upgraded to the Team plan yesterday and my card was charged twice - once for $49 and again for $49 a few minutes later. Our finance team needs this fixed before month-end close. Can you refund the duplicate charge?
It came back BILLING, HIGH, with a summary that mentions the duplicate $49 charge, in 874 ms. Over three runs the classifier took 0.87 to 1.03 s, which is fast enough to run inside a webhook handler while the sender waits.
The first call is slower: 9.1 s, of which 8.1 s is Ollama loading the model into GPU memory. By default Ollama unloads a model after five idle minutes. If tickets arrive all day, set Keep alive for on the Ask step (for example 30m) or OLLAMA_KEEP_ALIVE on the server, and only the first call after a quiet spell waits for the load.
Turn Thinking off unless the step needs it
Qwen3 is a reasoning model and "thinks" before answering unless told not to. ByteChef's Thinking option (under Advanced) is off by default, and when it's off ByteChef tells Ollama to skip the reasoning. The difference was bigger than I expected. Same ticket, same schema:
| Thinking | Time | Tokens generated | Answer |
|---|---|---|---|
| Off (default) | 0.89 s | 44 | BILLING / HIGH |
| On | 3.0 to 5.6 s | 146 to 289 | BILLING / HIGH |
The answer was the same either way. For classification and extraction, reasoning only adds latency. Turn it on for steps like multi-step analysis, and pick a Reasoning effort.
One gotcha: when I first ran this, switching Thinking off did nothing, so Qwen3 reasoned anyway and every call took 3 to 6 times longer. That's fixed in ByteChef 0.36, so use 0.36 or later.
Step 5: Give an agent a local model and a tool
The Ask action makes one call and returns. An AI agent can also call tools, and with Qwen3 that works locally too. I built a small agent that works out a first-response deadline: high-priority tickets get four hours, and the agent has to look up the current time instead of guessing it.
- AI Agent → Chat, with the system prompt: "High-priority tickets must get a first response within 4 hours. Always call the Get current date tool first, then reply with the current time and the exact SLA deadline. Do not guess the date."
- Model: the Ollama model element with
qwen3:8b. - Tools: Date Helper → Get Current Date.
This one is a template too.
The agent called the tool, got 12:31:22, and answered with a deadline of 16:31:22. That is two model calls (one to ask for the tool, one to write the answer) in 2.1 to 2.6 s.
I only tested the tool call. Memory, guardrails and RAG attach the same way whichever model you use, and RAG can stay local as well: the Ollama Embedding element works with a self-hosted vector store such as PgVector or Qdrant. I didn't measure that part.
What an 8B model is good at, and where it struggles
A quantized 8B model is not a frontier model. In my testing it did well at:
- Classification and routing. High-volume, easy work, which is where per-token pricing hurts most.
- Extraction into a structured-output schema.
- Summarizing text you already have.
- Short tool-using agents like the one above: one or two tools and a clear instruction.
Hosted frontier models still do better at long multi-step reasoning, picking the right tool out of many, careful writing and hard analysis. I tried a single tool; with many to choose from, expect a hosted model to do noticeably better.
You don't have to choose one model
In ByteChef the model is an element you attach to each step, so you decide per step:
- Keep anything that touches regulated data on the local model, and send only the redacted results to a hosted model for the harder reasoning.
- Run the high-volume, easy steps (classification, embeddings) locally, and save the hosted model for the few steps that need it.
Moving a step from Ollama to a hosted provider, or back, means attaching a different model element. The rest of the workflow stays as it is.
Try it
That ticket with the duplicate $49 charge never left the laptop, and it was sorted in under a second.
To run it yourself:
ollama pull qwen3:8b- Import the ticket triage template or the SLA deadline agent template into a self-hosted ByteChef (0.36 or later) that can reach your Ollama server.
- Pick your Ollama connection and click Test.
If you try it with a different local model, I'd like to hear which one and how it did.






