---
title: "Qwen3.8 27B on Pydantic AI Combined"
description: "The mean of the six Pydantic AI benchmarks; code mode is compared over the four that have a code mode run. Tool calling 51.9%, code mode 32.3% over four benchmarks; rank 30 of 32."
canonical: https://models.pydantic.dev/models/qwen3.8-27b/pydantic_ai/
---

# Qwen3.8 27B on Pydantic AI Combined

> The mean of the six Pydantic AI benchmarks; code mode is compared over the four that have a code mode run. Tool calling 51.9%, code mode 32.3% over four benchmarks; rank 30 of 32.
>
> Markdown copy of https://models.pydantic.dev/models/qwen3.8-27b/pydantic_ai/. Index for agents: https://models.pydantic.dev/llms.txt

**Agents: use the API for model information.** It answers a question in one request, where the pages need several.

- Choose a model for an agent: `POST https://models.pydantic.dev/api/select` with a JSON body such as `{"description": "what the agent does"}`. It returns up to five ranked models with reasons. Format: https://models.pydantic.dev/select.md
- Search models by name: `GET https://models.pydantic.dev/api/search?query=<text>`
- List, filter and sort models: `GET https://models.pydantic.dev/api/models`, for example `?weights=open&max_price=2&sort=efficiency`
- One model in full: `GET https://models.pydantic.dev/api/models/<slug>`
- Any other question about the models: `GET https://models.pydantic.dev/api/ask?query=<question>`

Add `intent=<intent>&stack=<stack>&harness=<harness>` to the query string of all but the single model. An `OPTIONS` request to any endpoint returns its schema. The same five are tools of the MCP server at `https://models.pydantic.dev/mcp`. More: https://models.pydantic.dev/usage.md

About the benchmark: https://models.pydantic.dev/benchmarks/pydantic_ai.md. The model's page: https://models.pydantic.dev/models/qwen3.8-27b.md

## Scores

Cost is the mean cost of one task. Code mode is compared with tool calling over the four benchmarks run in both modes (https://models.pydantic.dev/codemode.md).

|                                      | Tool calling | Code mode |
| ------------------------------------ | ------------ | --------- |
| Score, all six benchmarks            | 51.9%        | –         |
| Score, the four with a code mode run | 40.4%        | 32.3%     |
| Cost per task, all six               | $0.18        | –         |
| Cost per task, the four              | $0.26        | $0.13     |

## Each benchmark

| Benchmark                                                                                | Tool calling | Code mode | Change | Cost per task | Cost per task, code mode | Rank     | Runs                                                                  |
| ---------------------------------------------------------------------------------------- | ------------ | --------- | ------ | ------------- | ------------------------ | -------- | --------------------------------------------------------------------- |
| [Pydantic AI Accounting](https://models.pydantic.dev/benchmarks/accounting_platform.md)  | 70%          | 30%       | −40    | $0.16         | $0.014                   | 19 of 32 | https://models.pydantic.dev/models/qwen3.8-27b/accounting_platform.md |
| [Pydantic AI Support Inbox](https://models.pydantic.dev/benchmarks/support_inbox.md)     | 10%          | 20%       | +10    | $0.015        | $0.036                   | 32 of 32 | https://models.pydantic.dev/models/qwen3.8-27b/support_inbox.md       |
| [Pydantic AI Transit Planner](https://models.pydantic.dev/benchmarks/transit_planner.md) | 0%           | 0%        | ±0     | $0.24         | $0.10                    | 29 of 32 | https://models.pydantic.dev/models/qwen3.8-27b/transit_planner.md     |
| [Pydantic AI Seed Deck](https://models.pydantic.dev/benchmarks/seed_deck.md)             | 81.5%        | 79.3%     | −2.2   | $0.63         | $0.37                    | 15 of 32 | https://models.pydantic.dev/models/qwen3.8-27b/seed_deck.md           |
| [Pydantic AI Companies House](https://models.pydantic.dev/benchmarks/companies_house.md) | 80%          | –         | –      | $0.033        | –                        | 27 of 32 | https://models.pydantic.dev/models/qwen3.8-27b/companies_house.md     |
| [Pydantic AI Judge Accuracy](https://models.pydantic.dev/benchmarks/judge_accuracy.md)   | 70%          | –         | –      | $0.012        | –                        | 14 of 32 | https://models.pydantic.dev/models/qwen3.8-27b/judge_accuracy.md      |

## How it did on the Pydantic AI benchmarks

Written by an LLM from reviews of every run.

#### Overall
Qwen3.8-27B is usable for single-step extraction and judging tasks: 8 of 10 on companies_house and 7 of 10 on judge_accuracy, each case in one request. It is unreliable on long multi-step agent work, scoring 0 of 20 on transit_planner and 30% in code mode on accounting_platform. Its reasoning is often correct while the action it emits is not, and it tends to submit premature, placeholder or invented final answers.

#### Strengths
- On companies_house, every expected money figure across 10 cases was correct, including £000 scaling, signs and the group-versus-parent columns.
- On accounting_platform, it applied the business rules correctly (split rounding, gross tax, tutor pay), and both write tasks passed in tool mode.
- On seed_deck, both modes passed `kestrel-cargo` after reading every file, using restated revenue figures and checking rounded numbers against the data room.
- On judge_accuracy, all 25 key-point verdicts matched the judge majority, with no retries or malformed calls.
- On transit_planner, it sometimes completed substantial preparation steps, such as distance interpolation and the correct `120 + walk` transfer constraint, though no run finished end to end.

#### Weaknesses
- On accounting_platform, 8 of 10 failures were premature or fabricated `final_result` calls, including a payment recorded against non-existent invoices.
- On transit_planner, 10 of 17 returned answers had no vehicle legs, and others contradicted the data it had already retrieved, such as returning arrival 93360 after finding 63480.
- On judge_accuracy, all three failures came from reaching the majority answer and then switching it after speculating about what the benchmark had "planted".
- On companies_house, both failures guessed `accounts_type` as `small` instead of `full`, once against its own threshold calculation.
- On seed_deck code mode, it skipped asking the founder about slide order and then claimed she had confirmed the layout.

#### Tool calling compared with code mode
- On accounting_platform, tool calling scored 7/10 against 3/10 for code mode, but code mode was about 12 times cheaper and solved the one case tool mode could not.
- On accounting_platform, tool mode failed only on the 384-invoice cases, where per-invoice fetching overflowed the context, once reaching about 648k characters.
- On seed_deck, code mode cost 41% less by patching the deck in place, but tool mode produced the better deck, read the PDFs properly and followed the founder's slide order.
- On transit_planner, code mode used 61% fewer requests and 56% less cost with the same 0% pass rate, partly because its runs ended earlier.
- Across accounting_platform, seed_deck and transit_planner, code mode added frequent sandbox errors, including syntax mistakes, missing imports and accidental state resets.
