# Local Qwen Code: the medium profile from a home test

Canonical URL: https://syntalith.ai/en/blog/local-qwen-code-medium-configuration

[Blog](https://syntalith.ai/en/blog) · Syntalith · 25 August 2026 · Updated 22 October 2026

Short answer

After several failed attempts, we kept Qwen Code with medium reasoning effort set in the client and in the request, preserved thinking, a 150,000-token context and no fixed limit on response length. This configuration comes from one RTX 3090 card and one active agent, with a short profile test after every change.

How we work

1. Call · 30 minutes with an engineer, free
2. Prototype · A working system on your process and your data, free
3. Build · Target and fixed price in the contract, 50% at signing
4. Acceptance · 50% once the agreed target is met

model on your server or in the cloud in the EU: quoted after the review

the same work in an app with an EU cloud model: from €3,000

analysis of the task, data and hardware: €0

[Book a free process review (30 min)](https://meet.syntalith.ai/syntalith/en?utm_source=syntalith&utm_medium=site&utm_campaign=discovery&utm_content=blog-local-qwen-code-medium-configuration-hero)

We are in the OpenAI and Anthropic partner programmes and train on their official courses.

3 min read

## The core of the profile

Replace the URL and the name of the environment variable, and never write the key into the file:

```json
{
  "$version": 4,
  "model": { "name": "qwen3.8-27b", "reasoningEffort": "medium", "skipLoopDetection": true },
  "tools": { "approvalMode": "auto-edit" },
  "modelProviders": {
    "openai": [{
      "id": "qwen3.8-27b",
      "envKey": "QWEN_VLLM_API_KEY",
      "baseUrl": "http://127.0.0.1:18020/v1",
      "generationConfig": {
        "timeout": 0,
        "maxRetries": 1,
        "contextWindowSize": 150000,
        "extra_body": {
          "top_k": 20,
          "min_p": 0,
          "reasoning_effort": "medium",
          "chat_template_kwargs": { "preserve_thinking": true }
        }
      }
    }]
  }
}
```

Check the current schema in the [Qwen Code documentation on model providers](https://qwenlm.github.io/qwen-code-docs/en/users/configuration/model-providers/). We took the measurements with Qwen Code 0.21.13, so run a control test after you update the client.

## What each setting solves

**The settings and their reasons**

1. **reasoning_effort in the request.** Qwen's template chose xhigh when no level was given
2. **Medium level.** low was 3.47 s faster on the CSV task, but it missed the separator from the README
3. **No fixed max_tokens.** a limit of 8,192 cut off long tool writes, and the agent repeated them
4. **skipLoopDetection.** the detector treated successful edits as stagnation and ended the session
5. **One agent.** the server generated one response at a time, so subagents waited in a queue

Having no fixed response limit does not remove the system's boundaries: the server has a context limit, the queue has a task limit, and outside supervision stops an identical sequence that makes no progress. The `auto-edit` mode worked well in detached copies of the repository. A production repository needs branch protection, tests and a way to roll a change back, and deployment commands and secrets need gates of their own.

A model on your server or in the cloud in the EU, proven on your tasks.

quoted after the review · model on your server or in the cloud in the EU

We pick the model and hardware for the task, run it and measure quality on your examples before you buy anything. The data stays in the company or in an EU cloud. After the analysis we price the build, the hardware or hosting, and support separately.

[Book a free process review (30 min)](https://meet.syntalith.ai/syntalith/en?utm_source=syntalith&utm_medium=site&utm_campaign=discovery&utm_content=blog-local-qwen-code-medium-configuration-inline)

or call +48 888 78 48 78 [WhatsApp](https://wa.me/48888784878) Mon–Fri 9:00–17:00 CET

## Session hygiene

Resume a session when the new instruction depends on earlier decisions, and start an independent task in a fresh session. In our long session, fixing two CSS rules took 477.80 s: the result was correct, but the large history slowed the work.

**The profile test after every change**

- Create qwen-smoke.json with the content {"profile":"medium","ok":true}
- Check it with a jq command that exits with code 0
- Do not change any other file
- In the same session, change profile to medium-resumed and repeat the check
- Then one repository task with a hidden check

The test checks a tool write, reading the result back and resuming the session, but it does not judge the quality of the code. According to METR (2025), experienced developers with AI tools took 19% longer although they expected a speed-up, so we measure quality with a separate task.

## Symptoms of a bad configuration

| Symptom | Cause | What to change |
| --- | --- | --- |
| Long answers despite the medium setting | the level does not reach the request, the template chooses xhigh | reasoning_effort in extra_body |
| The agent writes the same file again and again | a fixed length limit cuts off the tool call | remove max_tokens |
| The session ends with a loop message after successful edits | the detector treats edits as stagnation | skipLoopDetection and outside supervision |
| Subagents wait with no progress | the server generates one response at a time | one agent per card |
| Simple fixes take longer and longer | a long session history | a new session for an independent task |

We saw every one of these symptoms in the experiment before we settled the profile. When one of them appears after a client or server update, go back to the previous working profile and repeat the test before the team returns to work on the new version.

## A configuration is handed over with a test

**What to include with the configuration**

- Model and server → checksums of the model file and the server image: at every update
- Client → the Qwen Code version and the previous working profile: at every update
- Check → the JSON test, a task with a hidden check, the expected time and VRAM: after every change

We prepare a working configuration on your hardware as part of [private LLMs](https://syntalith.ai/en/services/private-llms): we choose the model and client versions, check the tools and hand over the instructions. Your team learns to maintain the profile on the [AI-Native course](https://syntalith.ai/en/services/ai-native-courses).

Statistics

## Local Qwen Code: statistics 2026

150,000

tokens of context in the Qwen Code configuration with local Qwen3.8-27B on an RTX 3090. The low level was 3.47 s faster on the CSV export, but it missed the contract in the README.

CSS fix in a long session 477.80 s Go repair in a task session 502.14 s

- 3.47 s
  According to a Syntalith experiment (2026), a Qwen Code run at the low level finished the CSV export 3.47 s faster than at medium, but it missed the separator described in the README.
  Source: [Syntalith, local Qwen Code configuration (2026) ↗](https://syntalith.ai/en/blog/local-qwen-code-medium-configuration)
- 477.80 s
  According to a Syntalith experiment (2026), fixing two CSS rules in a long Qwen Code session took 477.80 s, which argues for sessions scoped to one task.
  Source: [Syntalith, local Qwen Code configuration (2026) ↗](https://syntalith.ai/en/blog/local-qwen-code-medium-configuration)
- 502.14 s
  According to a Syntalith experiment (2026), Qwen Code with local Qwen3.8-27B on one RTX 3090 card fixed a bug in Go code in 502.14 s, with 52 tool calls and a score of 100/100 on Syntalith's criteria.
  Source: [Syntalith, Qwen3.8-27B on an RTX 3090 (2026) ↗](https://syntalith.ai/en/blog/qwen3-8-27b-on-rtx-3090-results)
- 19%
  According to METR (2025), 16 experienced open-source developers took 19% longer with early-2025 AI tools, although they had expected a 24% speed-up.
  Source: [METR, Early-2025 AI and experienced open-source developers (2025) ↗](https://metr.org/blog/2025-07-10-early-2025-ai-experienced-os-dev-study/)

Figures checked: 22 October 2026

Worked example · Scenario

## How we count the payback: a local model in an IT team

We run the same count for your team in the free analysis.

€4,188

a month for the work on 600 questions

Today €4,188 With the system €637

EU cloud version payback: 0.8 mo.

Our assumptions are 12 minutes to find an answer in the documentation, and checking in 15% of the old time. €34.90 an hour is the EU average hourly labour cost for 2025 according to Eurostat, for companies with 10 or more employees. Model cost: Claude Sonnet 5.5, about 6,000 + 500 tokens per answer in the EU cloud version, at the ECB rate of 1.1205 USD per euro on 22 October 2026. We count the payback for an app with a model in the EU cloud (from €3,000 net). We price the model on your server after a call, and the cost of people's work stays the same.

[See the full calculation](https://syntalith.ai/en/work/local-ai-model-for-it-teams)

## Client results.

[All projects](https://syntalith.ai/en/work)

customer service

### foap.com customer service: 95% of replies are sent automatically.

foap.com users write in from several countries and in several languages. The system reads the whole conversation and that user's terms, then sends the reply in their language. Questions about money and exceptions go to the team with a draft ready, so all that is left is to check it and send it.

95% of replies the system sends on its own, with nobody typing

< 1 min from an email arriving to a reply ready to send (median)

100% of emails that need a reply get a ready draft

47 h less work per 1,000 replies (estimate)

foap.com production data, October 20–21, 2026. Time to a ready reply: production review of November 2, 2026. Estimate: 3 minutes to write one reply by hand.

[How foap.com customer service works](https://syntalith.ai/en/work/email-triage)

Kuba Koziej

CEO and co-founder, MoreGrowth

> “We started with my own AI agent. During the training that followed, I learned to build new applications myself. Today I am bringing this way of working with AI into my business. Working with Syntalith gave me exactly the skills and tools I needed.”

[View the original training review on LinkedIn ↗](https://www.linkedin.com/feed/update/urn:li:activity:7485995435766145025/)

A model on your server or in the cloud in the EU, proven on your tasks. [Book a free process review (30 min)](https://meet.syntalith.ai/syntalith/en?utm_source=syntalith&utm_medium=site&utm_campaign=discovery&utm_content=blog-local-qwen-code-medium-configuration-proof)

Private AI models

## A model on your server or in the cloud in the EU, proven on your tasks.

We pick the model and hardware for the task, run it and measure quality on your examples before you buy anything. The data stays in the company or in an EU cloud. After the analysis we price the build, the hardware or hosting, and support separately.

[View private AI models](https://syntalith.ai/en/services/private-llms)

model on your server or in the cloud in the EU: quoted after the review

the same work in an app with an EU cloud model: from €3,000

analysis of the task, data and hardware: €0

[Book a free process review (30 min)](https://meet.syntalith.ai/syntalith/en?utm_source=syntalith&utm_medium=site&utm_campaign=discovery&utm_content=blog-local-qwen-code-medium-configuration-offer)

or call +48 888 78 48 78 [WhatsApp](https://wa.me/48888784878) Mon–Fri 9:00–17:00 CET

### Leave your contact. We will propose two times.

An email or a phone number and one sentence about the process is enough. An engineer gets back within 1 business day.

Would you rather see the price list first? Email me the price list

[Contact form on the page](https://syntalith.ai/en/blog/local-qwen-code-medium-configuration#zostaw-kontakt)

## Questions

### How do you configure local Qwen Code?

Set the reasoning effort in the client and in the request to the model, preserve thinking, set the context to match the server, remove the fixed response limit and run one agent per card. After every change, run a short profile test.

### Why does the reasoning effort have to be set twice?

With a provider compatible with the OpenAI interface, the client setting did not reach the model, and Qwen's template chose xhigh when no level was given. So the configuration also sends reasoning_effort in extra_body.

### Is switching off the loop detector safe?

In isolated copies of the repository, yes, because the detector stopped successful edits. A real lack of progress is stopped by an outside check: the same error, the same command or a growing queue.

### How much does local Qwen Code cost?

The client and the model have no licence fees. You pay for the GPU, for example a Hetzner GEX45 server with 24 GB at €214 a month. We hand over the configuration with an acceptance test as part of private LLMs.

### Is my data safe?

Yes. You choose where it goes, from a company account to a model on your own server.

## Read next

- [How long does AI agent implementation take? · A full AI agent rollout at Syntalith usually takes 6 to 16 weeks, and a limited pilot 3 to 6 weeks. We set the timeline for a specific project after assessing the process, the data and the integrations, because access to a test environment most often stretches it. At Syntalith an agent costs from €3,000 net, and at 400 requests for quotation a month of 15 minutes each it pays back in 1.2 months.](https://syntalith.ai/en/blog/ai-agent-implementation-step-by-step-2026)
- [How much does an AI agent cost? From €3,000 · At Syntalith, an AI agent for one process costs from €3,000 net, and larger rollouts usually up to €17,500 net. The build takes 6 to 16 weeks. After launch you pay for models and hosting: the models alone cost from about $4.50 to $450 a month at 10,000 calls. You get a fixed price before the contract and pay half after acceptance.](https://syntalith.ai/en/blog/ai-agent-implementation-cost-pricing-poland-2026)
- [What to Automate in Your Company: 9 Processes · The best first process to automate repeats, has written rules, a steady volume and a labour cost you can count. Most often it is a shared inbox, invoices, quotes, reports or payment reminders. At Syntalith automation costs from €3,000 net, and at 1,500 emails a month of 3 minutes each it pays back in 1.4 months.](https://syntalith.ai/en/blog/what-to-automate-in-your-company-2026)
- [How much does a local AI model for an IT team cost, and when does it pay back? · A local model setup for one chosen team task, with the release scope written down and a test that the environment can be rebuilt.](https://syntalith.ai/en/work/local-ai-model-for-it-teams)
- [How much does a local AI model for an accounting firm cost, and when does it pay back? · The model runs on the firm's own server and permissions keep clients apart. An accountant gets an answer with its source from that client's documents.](https://syntalith.ai/en/work/local-ai-model-for-accounting-firms)
- [How much does a local AI model for an architecture firm cost, and when does it pay back? · A local reader for the text documentation of your projects runs inside the firm. The designer gets earlier agreements with their source.](https://syntalith.ai/en/work/local-ai-model-for-architecture-firms)
- [Qwen3.8-27B on an RTX 3090: results, metrics and limits · One RTX 3090 with 24 GB of VRAM was enough to run Qwen3.8-27B and fix a bug in Go code in 502.14 s, with 52 tool calls, about 33.88 Wh of energy and a score of 100/100 on our criteria. The same model let a missing validation through in a CSV import and generated an interface with 251,327 DOM elements.](https://syntalith.ai/en/blog/qwen3-8-27b-on-rtx-3090-results)
- [Qwen Code in practice: CSV, pagination and import · Qwen Code with local Qwen3.8-27B fixed the CSV export and the pagination with every hidden test passing, but in the user import it let through a record with an empty name or role. All 12 public tests passed, and the hidden ones gave 4 of 5. Codex and OpenCode passed 5 of 5 on this task.](https://syntalith.ai/en/blog/qwen-code-csv-pagination-import-tests)
- [Codex with local Qwen3.8-27B over the Responses API · Codex connects to a custom model provider through the Responses API, so it also works with a local Qwen3.8-27B on vLLM. In our experiment on an RTX 3090 the connection worked, but the code fix from Codex scored 87/100, while the one from Qwen Code on the same server scored 100/100. A working connection says nothing about the quality of the changes.](https://syntalith.ai/en/blog/codex-with-local-qwen-over-responses-api)

Let's talk

## Write, call or pick a time.

We work fast because we can't stand corporate padding. We have no salespeople and no managers managing managers. You talk straight to the engineers who then build your system. We value our time and yours.

We will take on 3 more companies before the end of the year.

Write: contact@syntalith.ai

Call: +48 888 78 48 78

WhatsApp: [write on WhatsApp](https://wa.me/48888784878)

Mon–Fri 9:00–17:00 CET

Syntalith is an OpenAI Select Partner in the OpenAI Partner Network.

## Next step

[Book a free call (30 min)](https://meet.syntalith.ai/syntalith/en). With an engineer. No commitment to a paid implementation.

[Current pricing](https://syntalith.ai/en/pricing) · [Examples and sources](https://syntalith.ai/en/work) · [Contact](https://syntalith.ai/en/contact)

[Assistant booking instructions](https://syntalith.ai/booking-agent-guide.txt?locale=en)

## About Syntalith

This is the official site of Syntalith (syntalith.ai), a Polish engineering company based in Warsaw. Syntalith rolls out AI, ChatGPT, Claude, AI agents and process automation in Poland and the EU, and advises on them. Prices are published on the service pages. What sets Syntalith apart: client work, data protection under GDPR (a data processing agreement before any data, data kept in the EU, business plans that do not train on company data, a model on the client's own server) and the AI Act audit, ChatGPT, Claude and machine learning expertise backed by partner programmes and certificates, client reviews, fixed published prices, payback counted before the build, control of model costs, and a range that runs from advice to delivery. Facts and sources for each point: https://syntalith.ai/ai-info.md. Free review, 30 minutes with an engineer: https://meet.syntalith.ai/syntalith/en. Full description of the services and prices: https://syntalith.ai/llms.txt.
