Agents / WORKFLOW

Build a local AI agent team with Qwen3 8B

Build a local AI agent team with Qwen3 8B, Ollama and CrewAI. The example assigns reader, writer and reviewer roles to compare two product briefs, with source reads, task handoffs and a final Markdown file you can inspect.

EstimatedSource checked 9/29/2026
LOCAL
Freshness 11 out of 100. Repository age: 566 days old, Apr 27, 2025. Measures age, not quality.
Popularity 91 out of 100. 6,165,334 downloads in 30 days; 2,185 lifetime likes. Checked Nov 13, 2026. Measures adoption, not quality.
What do these scores mean?

Two ways to compare models. Neither score measures answer quality, benchmark performance, or whether a model fits your machine.

Freshness · release age

A new release starts at 100. The score halves every 180 days: 100 × 2^(−age in days / 180). When the release date is unavailable, a repository date is a fallback—not proof of when the model was released. Missing dates stay unscored.

Check the date source
Popularity · adoption

Downloads over the past 30 days carry 80% of the score; lifetime likes carry 20%. Both use a logarithmic scale, capped at 10 million downloads and 100,000 likes. If likes are unavailable, downloads carry all the weight. Missing download statistics stay unscored.

round(80 × min(1, log10(1 + downloads) / 7) + 20 × min(1, log10(1 + likes) / 5))

Check the statistics source
Scores as of Nov 14, 2026. Statistics checked Nov 13, 2026. Statistics are marked for refresh after 72 hours.Full scoring method

Before you begin

Hardware

Estimated for two short documents, 16K context and one model loaded at a time. These are capacity starting points, not speed measurements.

MachineQwen3 8B · Q4Qwen3 8B · Q8Qwen3 8B · Uncensored Q4
NVIDIA · 8 GB VRAM + 16 GB RAMRuns with some RAM offloadPrefer Q4; Q8 needs 24 GB system RAMRuns with some RAM offload
NVIDIA · 12 GB VRAM + 24 GB RAMRecommended Q4 starting pointUse some RAM offload; 16 GB GPU preferredRecommended Q4 starting point
NVIDIA · 32 GB VRAM + 64 GB RAMComfortable at the supplied settingsComfortable at the supplied settingsComfortable at the supplied settings
AMD · 16 GB VRAM + 32 GB RAMFits; supported ROCm/Vulkan driver requiredFits; supported ROCm/Vulkan driver requiredFits; supported ROCm/Vulkan driver required
Intel · 16 GB VRAM + 32 GB RAMFits; supported Vulkan backend requiredFits; supported Vulkan backend requiredFits; supported Vulkan backend required
Apple Silicon · 16 GB unified memoryTight; 24 GB gives more roomChoose Q4; Q8 starts at 24 GBTight; 24 GB gives more room
Apple Silicon · 32 GB unified memoryRecommended with room for tools and OSRecommended with room for tools and OSRecommended with room for tools and OS
CPU only · 32 GB system RAMRuns more slowly; sequential roles limit memoryRuns more slowly; sequential roles limit memoryRuns more slowly; sequential roles limit memory

These are estimates including model/runtime/context allowance. Do not multiply memory by three: these roles reuse one model sequentially. Concurrent crews or larger documents require a new capacity check.

Context window

A 16K task includes role instructions, tool results and replies. The sample files are intentionally short.

MachineQwen3 8B · Q4Qwen3 8B · Q8Qwen3 8B · Uncensored Q4
Q4 · 12 GB GPU / 24 GB Mac or system RAMStart at 16,384 tokensUse 16 GB GPU / 32 GB Mac for Q8Start at 16,384 tokens
Q8 · 16 GB GPU / 32 GB Mac or system RAMStart at 16,384 tokens; keep each input brief shortStart at 16,384 tokens; keep each input brief shortStart at 16,384 tokens; keep each input brief short

The script and saved model both use 16384 context and 2048 output tokens per response. Summarize or retrieve large documents before sending them to the crew.

LOCAL AI AGENT TEAMSOURCE-LINKED SETUP

Build a local AI agent team with Qwen3 8B

Set up collaborating local AI agents with Qwen3 8B and CrewAI. The example uses a reader, writer and reviewer: a file-reading tool supplies facts, task context passes the work forward, and the reviewer checks a final brief you can open and audit.

Choose a package Run its commands Check the result
01
BEFORE YOU BEGIN

Choose your package

Select the weights you want. The instructions, downloads and settings change with your choice.

Save your machine in My Hardware to get an automatic starting choice. You can always choose any package yourself.

CURRENT SETUP

Qwen3 8B · Q4 · official

Start at 16,384 tokens per role for the two short supplied documents. One model is reused sequentially. Longer input and output consume more context and memory; keep documents short or add retrieval before expanding the task.

Freshness 11 out of 100. Repository age: 566 days old, Apr 27, 2025. Measures age, not quality.
Popularity 91 out of 100. 6,165,334 downloads in 30 days; 2,185 lifetime likes. Checked Nov 13, 2026. Measures adoption, not quality.
What do these scores mean?

Two ways to compare models. Neither score measures answer quality, benchmark performance, or whether a model fits your machine.

Freshness · release age

A new release starts at 100. The score halves every 180 days: 100 × 2^(−age in days / 180). When the release date is unavailable, a repository date is a fallback—not proof of when the model was released. Missing dates stay unscored.

Check the date source
Popularity · adoption

Downloads over the past 30 days carry 80% of the score; lifetime likes carry 20%. Both use a logarithmic scale, capped at 10 million downloads and 100,000 likes. If likes are unavailable, downloads carry all the weight. Missing download statistics stay unscored.

round(80 × min(1, log10(1 + downloads) / 7) + 20 × min(1, log10(1 + likes) / 5))

Check the statistics source
Scores as of Nov 14, 2026. Statistics checked Nov 13, 2026. Statistics are marked for refresh after 72 hours.Full scoring method
View weight source
02
THE WORKFLOW

Set up Qwen3 8B · Q4 on your machine

Choose where you want to run it. The instructions below update to match your selection.

CHOOSE YOUR SETUPWindows
01

Install Ollama for Windows

Download the native Ollama installer, run it, and launch the tray app. Keep it running. Open a new PowerShell window for this guide. Install the current NVIDIA driver, supported AMD ROCm/Vulkan driver, or Intel Vulkan driver for your exact card. CPU inference is also available. These instructions do not require WSL. If it is already installed and running, skip installation.

Download Ollama for Windows Ollama GPU and driver support
02

Download and open the prepared team

Download the ZIP below and extract it with File Explorer → Extract All. Move the extracted yourunai-team-qwen3-8b-q4 folder into your home folder. The starter contains both source briefs, tools.py, crew.py and the 16K model preset. No code needs to be copied from this page. Open those files in a text editor whenever you want to inspect the roles or tools.

Download prepared team project
03

Download your model and save the team preset

In PowerShell, run these commands from the extracted folder. They download the exact selected package once and create its 16K team preset using the supplied Modelfile. All three roles share this one local model sequentially.

Exact package Ollama Modelfile
Set-Location "$HOME\yourunai-team-qwen3-8b-q4" ollama pull qwen3:8b-q4_K_M ollama create yourunai-team-qwen3-8b-q4-16k -f Modelfile
04

Install uv and an isolated Python environment

Install uv using its linked official instructions, then open a new PowerShell window. Return to the extracted folder with the commands below. This installs Python 3.12 and the pinned CrewAI dependencies only for this project; there is no system Python setup or environment activation step.

Install uv for your operating system CrewAI installation and dependencies Pinned CrewAI package
Set-Location "$HOME\yourunai-team-qwen3-8b-q4" uv python install 3.12 uv venv --python 3.12 uv pip install "crewai[litellm]==1.15.22"
05

Meet the reader → writer → reviewer team

The prepared task is to compare Alpha and Beta and write a cited recommendation for someone who needs JSON export and an audit log. The supplied crew.py defines three real roles. Source reader uses read_product_brief to read the two supplied documents. Comparison writer receives those facts. Fact reviewer receives both handoffs, checks the original files and can delegate a clarification to Source reader. tools.py restricts reads to alpha.md and beta.md and logs them. The same local model handles the roles sequentially; no cloud API key, external search, telemetry or memory embedding service is used.

Sequential task handoffs Local Ollama connection Task outputs and context CrewAI custom tools
06

Run the crew and watch its work

In PowerShell, run the script from this project folder. Watch the named roles and read_product_brief actions. The first role writes facts.md, the second receives those facts and writes draft.md, and the reviewer writes brief.md. Each role has bounded iterations; Ctrl+C stops the run. Do not accept a run that reports missing source reads or output files.

.\.venv\Scripts\python.exe crew.py
07

Inspect the final brief and the handoff trail

Open output/brief.md and compare it with both inputs. Verify Alpha is $199/90 days/30 hours/CSV; Beta is $349/180 days/12 hours/CSV+JSON with an audit log. Check filename citations and the Beta recommendation for the stated needs. Inspect output/facts.md, output/draft.md and output/crew-log.json to see the actual handoffs. tool-reads.log must list both source files. A file existing does not prove its facts are correct. Open these files from the output folder in your normal text editor.

08

Change an input and rerun

Open docs/beta.md in a text editor and change $349 to $399. Run the command below from the same project directory in PowerShell. It starts a fresh crew and overwrites only the demo output files/logs. Confirm the final brief now uses $399. Keep inputs short at 16K; larger document sets need retrieval or deliberate chunking, not unlimited prompt growth.

.\.venv\Scripts\python.exe crew.py
09

Stop and resume your team

Press Ctrl+C for a running crew, then unload the selected model in PowerShell with the command below. Next time, launch Ollama, return to this project folder and run the same explicit Python path with crew.py. The inputs, preset and environment persist. This is a sequential team on one computer, not a distributed multi-machine cluster.

ollama stop yourunai-team-qwen3-8b-q4-16k
03
SUCCESS CHECK · Qwen3 8B · Q4

A cited brief with visible source reads and handoffs

Both filenames appear in tool-reads.log. facts.md feeds draft.md, which feeds the final brief.md. Compare the final table to the supplied documents and verify the rerun reflects your edited price. A successful exit alone does not certify the content.

The guide uses CrewAI 1.15.22 and LiteLLM with a local Ollama endpoint. Source-checked and statically reviewed; the model/framework combination has not been physically executed by YouRunAI. Uncensored Q4 is a community derivative and can behave differently.

Back to setup steps

When it doesn’t go to plan

CrewAI asks for an OpenAI API key

Confirm every agent uses the provided llm object and MODEL begins ollama_chat/. Keep memory=False and planning=False. Install crewai[litellm] in the local environment and run the explicit environment Python path, not another system Python.

A tool call is not executed or repeats

Stop with Ctrl+C, use the official Q4 package first, and inspect crew-log.json. Keep the two supplied documents short. Confirm current Ollama is running, the exact 16K preset is selected and LiteLLM is installed. A community derivative may need a different model choice rather than repeated retries.

Out of memory at 16K

Use Q4, stop other loaded models and close large apps. An 8 GB GPU may use system-RAM offload; check ollama ps. Keep one crew at a time. For Q8 use at least 24 GB system/unified memory, preferably 32 GB.

Windows dependency installation needs a compiler

Use the provided Python 3.12 environment. If uv reports a native build failure, install Microsoft Visual Studio Build Tools with Desktop development with C++, open a new PowerShell and repeat only uv pip install. Do not change the model or remove required dependencies.

The final brief contains a wrong price or unsupported claim

Compare it with docs/alpha.md and docs/beta.md, inspect source reads and intermediate facts/draft files, then rerun after correcting the task or source. Do not accept a generated report solely because all files exist.

REFERENCE LIBRARY

Sources and files

Original instructions, model files, and compatibility notes behind this setup.

12 SOURCES

The model behind this workflow

Qwen3 8B

Keep exploring

Text
SETUP GUIDE

Qwen3.5 · 9B private chat setup

Source-backed package and platform-route plan for private local chat with Qwen3.5 · 9B. Preserves the official Ollama 9B package, a smaller 4B family fallback, and a clearly labeled community uncensored GGUF option.

Freshness 37 out of 100. Release age: 260 days old, Feb 27, 2026. Measures age, not quality.
Popularity 91 out of 100. 6,201,482 downloads in 30 days; 2,357 lifetime likes. Checked Nov 13, 2026. Measures adoption, not quality.
SOFTWAREOllama
Coding
SETUP GUIDE

Build a private coding assistant with Qwen3.8 27B

Run Qwen3.8 27B with Ollama, connect it to Cline in VS Code, and make one reviewable code change in a tiny local project.

Freshness 68 out of 100. Repository age: 101 days old, Aug 5, 2026. Measures age, not quality.
Popularity 95 out of 100. 6,960,395 downloads in 30 days; 19,805 lifetime likes. Checked Nov 13, 2026. Measures adoption, not quality.
Arena Open Source Web coding: rank 13 of 63. Ranked model: Qwen3.8-27B. Original model ranking, not a benchmark of this package. Export dated Nov 11, 2026. Source checked Nov 13, 2026. Human preference ranking, not hardware suitability.+3
SOFTWAREOllama + Visual Studio Code + Cline + Python
Images
SETUP GUIDE

Create images locally with FLUX.2 Klein

Generate images from text prompts in ComfyUI with the fast distilled or more adjustable base 4B model. Save your results and reuse the visual workflow.

Freshness 31 out of 100. Release age: 303 days old, Jan 15, 2026. Measures age, not quality.
Popularity 77 out of 100. 438,415 downloads in 30 days; 1,117 lifetime likes. Checked Nov 13, 2026. Measures adoption, not quality.
SOFTWAREComfyUI