Which Ollama Local Model is Best? Sunflower SVG Comparison (16 Models)

After testing LLMs on ducks, vehicles, marine life, chess, sports, and machines, we wanted to know: can today’s top models capture the mathematical beauty of nature? This time we asked our Ollama local models to draw a sunflower with seeds – a prompt that tests whether models understand Fibonacci spiral patterns (real sunflower seeds are arranged in intersecting clockwise and counter-clockwise spirals that follow Fibonacci numbers like 21, 34, 55, and 89), radial symmetry, color gradients (dark center seeds, bright yellow petals, green stem and leaves), and organic curves that blend mathematics with aesthetics.

The prompt was: Make an svg image of a sunflower with seeds

This is the eleventh in our SVG benchmark series. See also: duck on a bicycle, duck with a parachute, duck driving a jeep, cherry blossom trees, duck programmer debugging at 3am, baby shark fish, octopus playing chess, FIFA World Cup 2026, elephant on a skateboard, flying helicopter, pineapple, pinecone, nautilus shell, dates palm tree.

Why a sunflower? This prompt is a mathematical stress test for SVG generation because it combines: (1) Fibonacci spirals – real sunflower seeds follow Fibonacci sequences, and a model with strong mathematical intuition should attempt spiral arrangements rather than a simple grid of dots, (2) Two-scale structure – a sunflower has a dark seed-filled center and bright outer petals, requiring the model to distinguish two visual zones, (3) Radial symmetry – petals and seeds radiate from the center, testing the model’s understanding of rotational geometry and <transform> usage, (4) Color theory – yellow petals, brown or black seeds, green stem and leaves – the model must choose a coherent palette, (5) Organic vs. geometric – the model must balance mathematical precision (spirals) with organic softness (petal shapes), and (6) Scale and density – a real sunflower has hundreds of seeds; the model must decide how many to draw and how to arrange them without making the SVG file enormous.

The goal is not to declare a winner – it is to give you the data so you can pick the best model for your own use case. We show you the SVG, the stats, and a short analysis for each. You decide.

How to Choose the Best Ollama Model for Sunflower SVGs

The sunflower prompt rewards different things than previous prompts. Here are the criteria to use:

  • Fibonacci spiral pattern: Does the model arrange seeds in spiral patterns (clockwise and counter-clockwise)? Or does it just place them in a grid, concentric circles, or random dots? True Fibonacci spirals are the gold standard.
  • Petal detail: Does it draw distinct petals around the center? How many petals? Real sunflowers have 34, 55, or 89 petals (Fibonacci numbers).
  • Two-zone structure: Is there a clear dark seed center and bright petal ring? Or is it just a flat yellow circle?
  • Color depth: Does it use gradients for the seeds (dark brown to black) and petals (yellow to orange)? Or flat fills only?
  • Radial symmetry: Is the flower radially symmetric? Are the petals evenly spaced around the center?
  • Stem and leaves: Does it include a green stem and leaves for context? Or just the flower head floating in a void?
  • SVG code quality: Does it use <defs>, <use>, and transforms to efficiently generate repeating seeds and petals? Good code structure is a sign of model competence.

How It Works

The script discovers all locally installed models via the Ollama API (/api/tags), then sends the identical prompt through the OpenAI-compatible endpoint (http://localhost:11434/v1/chat/completions). Each model’s response is parsed for an <svg>...</svg> block, and the extracted SVG is saved for rendering with minimal post-processing (adding width="100%" height="auto" for responsive embedding and fixing XML errors so the SVG renders in browsers).

Unlike our cloud model benchmarks, these models run entirely on the local GPU – no cloud subscription or network round-trip required. This means generation times reflect local hardware performance, and model sizes range from 1B to 31B parameters. Embedding, vision, and OCR models are automatically skipped.

Summary Table: Compare All Models at a Glance

Use this table to quickly compare models on the metrics that matter. The verdict column is a one-line summary to help you shortlist – but read the per-model sections below for the full picture before you decide.

# Model SVG Size Shapes Colors Complexity Verdict
1 cieloforge/qwen2.5-14B-instruct-spec:latest 3050 25 2 Medium Balanced
2 deepseek-r1:1.5b 2974 20 1 Medium Balanced
3 deepseek-r1:7b 872 6 2 Compact Compact
4 gemma3:1b-it-qat 544 4 2 Compact Compact
5 gemma3:4b 1015 13 3 Compact Compact
6 gemma4:12b 2840 39 7 Medium Balanced
7 gemma4:26b-a4b-it-qat 2884 29 7 Medium Balanced
8 lfm2.5:latest 78 0 0 Compact Compact
9 llama3.1:8b 1153 14 8 Compact Compact
10 qwen2.5-coder-14b:latest 443 6 2 Compact Compact
11 qwen2.5-coder:7b 594 4 3 Compact Compact
12 qwen2.5:3b 1810 21 7 Compact Compact
13 qwen2.5:7b 1938 8 5 Compact Compact
14 qwen3.5:4b 2661 19 4 Medium Balanced
15 qwen3.5:9b 1533 1 7 Compact Compact
16 qwen3.5:latest 991 7 5 Compact Compact
17 gemma4:31b-it-qat - - - - Failed
18 gemma4:latest - - - - Failed
19 jeffgreen311/Eve-V2-Unleashed-Qwen3.5-8B-Liberated-4K-4B-Merged:latest - - - - Failed
20 kwangsuklee/Qwen3.5-9B.Q4_K_M-Claude-4.6-Opus-Reasoning-Distilled-v2:latest - - - - Failed
21 qwen3:14b - - - - Failed
22 qwen3:8b - - - - Failed
23 SetneufPT/Qwen3.6-27B-MTP_Q3_32K_16GB-GPU:latest - - - - Failed
24 SetneufPT/Qwen3.6-27B.MTP_Q3_32K_16GB-GPU:latest - - - - Failed
25 VladimirGav/Qwen3.6-27B-16GB-VRAM-Uncensored:latest - - - - Failed

16 out of 25 models produced a valid SVG. The 9 that failed either returned an error or did not include a valid <svg>...</svg> block in their response.

Quick Recommendation by Use Case

If you just want a shortcut, here is which model to pick based on what you care about:

  • You want the most mathematically accurate seed spirals: look for models whose SVG shows visible spiral patterns in the seed arrangement
  • You want the most visually beautiful sunflower: pick models labeled “Very high” complexity in the table above
  • You want a small, efficient SVG for web embedding: pick models with “Compact” verdict
  • You want accurate botanical detail (petals, stem, leaves): check the per-model analysis for stem and leaf presence
  • You want gradient-rich coloring: look for models that used <linearGradient> or <radialGradient>
  • You want to compare within a model family: pick deepseek-v4-pro vs deepseek-v4-flash, or glm-5.1 vs glm-5.2
  • You want a balance of detail and speed: pick models labeled “Balanced” or “Detailed”

Now read on for the full per-model breakdown and judge for yourself.

1. cieloforge/qwen2.5-14B-instruct-spec:latest

SVG size: 3050 characters
Complexity: Medium
Shape elements: 25
Distinct colors: 2
Raw response: 3340 characters
Generation time: 148.9s

cieloforge/qwen2.5-14B-instruct-spec:latest sunflower SVG

Analysis

This SVG contains approximately 25 shape elements and uses 2 distinct colors.

Notable SVG techniques used:

  • Uses <defs> blocks for reusable components (a sign of well-structured, editable SVG)
  • Includes animation elements – the model attempted motion
  • Uses Bezier curves (C, Q, A path commands) for smooth organic shapes
  • Contains XML comments, showing the model’s internal documentation of its work

This is a compact SVG (under 5,000 characters) that uses minimal markup to convey the scene. The model prioritized efficiency and simplicity over elaborate detail.

View raw SVG source ```xml </g> </svg> ``` </details> ## 2. `deepseek-r1:1.5b` **SVG size:** 2974 characters **Complexity:** Medium **Shape elements:** 20 **Distinct colors:** 1 **Raw response:** 3860 characters **Generation time:** 150.3s ![deepseek-r1:1.5b sunflower SVG](/assets/img/diagrams/ollama-svg-sunflower/deepseek-r1_1.5b.svg) ### Analysis This SVG contains approximately **20 shape elements** and uses **1 distinct colors**. **Notable SVG techniques used:** - Contains XML comments, showing the model's internal documentation of its work This is a compact SVG (under 5,000 characters) that uses minimal markup to convey the scene. The model prioritized efficiency and simplicity over elaborate detail.
View raw SVG source ```xml <path fill="currentColor" d" /> </circle> </circle> M-29-9.92c-.035.007-.07 .121-1.57.608a41 41 0 01 75-109zM160 160c0 0 160 60 160-60 160 0 a160 160 0 00-160-60z"/> ```
## 3. `deepseek-r1:7b` **SVG size:** 872 characters **Complexity:** Compact **Shape elements:** 6 **Distinct colors:** 2 **Raw response:** 1349 characters **Generation time:** 102.3s ![deepseek-r1:7b sunflower SVG](/assets/img/diagrams/ollama-svg-sunflower/deepseek-r1_7b.svg) ### Analysis This SVG contains approximately **6 shape elements** and uses **2 distinct colors**. **Notable SVG techniques used:** - Uses transforms (translate, rotate, scale) for precise positioning and rotation - Contains XML comments, showing the model's internal documentation of its work This is a compact SVG (under 5,000 characters) that uses minimal markup to convey the scene. The model prioritized efficiency and simplicity over elaborate detail.
View raw SVG source ```xml ```
## 4. `gemma3:1b-it-qat` **SVG size:** 544 characters **Complexity:** Compact **Shape elements:** 4 **Distinct colors:** 2 **Raw response:** 2981 characters **Generation time:** 127.3s ![gemma3:1b-it-qat sunflower SVG](/assets/img/diagrams/ollama-svg-sunflower/gemma3_1b-it-qat.svg) ### Analysis This SVG contains approximately **4 shape elements** and uses **2 distinct colors**. **Notable SVG techniques used:** - Uses Bezier curves (`C`, `Q`, `A` path commands) for smooth organic shapes - Contains XML comments, showing the model's internal documentation of its work This is a compact SVG (under 5,000 characters) that uses minimal markup to convey the scene. The model prioritized efficiency and simplicity over elaborate detail.
View raw SVG source ```xml </svg> ``` </details> ## 5. `gemma3:4b` **SVG size:** 1015 characters **Complexity:** Compact **Shape elements:** 13 **Distinct colors:** 3 **Raw response:** 3519 characters **Generation time:** 179.7s ![gemma3:4b sunflower SVG](/assets/img/diagrams/ollama-svg-sunflower/gemma3_4b.svg) ### Analysis This SVG contains approximately **13 shape elements** and uses **3 distinct colors**. **Notable SVG techniques used:** - Contains XML comments, showing the model's internal documentation of its work This is a compact SVG (under 5,000 characters) that uses minimal markup to convey the scene. The model prioritized efficiency and simplicity over elaborate detail.
View raw SVG source ```xml ```
## 6. `gemma4:12b` **SVG size:** 2840 characters **Complexity:** Medium **Shape elements:** 39 **Distinct colors:** 7 **Raw response:** 3451 characters **Generation time:** 170.2s ![gemma4:12b sunflower SVG](/assets/img/diagrams/ollama-svg-sunflower/gemma4_12b.svg) ### Analysis This SVG contains approximately **39 shape elements** and uses **7 distinct colors**. **Notable SVG techniques used:** - Uses transforms (translate, rotate, scale) for precise positioning and rotation - Uses Bezier curves (`C`, `Q`, `A` path commands) for smooth organic shapes - Contains XML comments, showing the model's internal documentation of its work This is a compact SVG (under 5,000 characters) that uses minimal markup to convey the scene. The model prioritized efficiency and simplicity over elaborate detail.
View raw SVG source ```xml ```
## 7. `gemma4:26b-a4b-it-qat` **SVG size:** 2884 characters **Complexity:** Medium **Shape elements:** 29 **Distinct colors:** 7 **Raw response:** 3778 characters **Generation time:** 330.7s ![gemma4:26b-a4b-it-qat sunflower SVG](/assets/img/diagrams/ollama-svg-sunflower/gemma4_26b-a4b-it-qat.svg) ### Analysis This SVG contains approximately **29 shape elements** and uses **7 distinct colors**. **Notable SVG techniques used:** - Uses transforms (translate, rotate, scale) for precise positioning and rotation - Uses Bezier curves (`C`, `Q`, `A` path commands) for smooth organic shapes - Contains XML comments, showing the model's internal documentation of its work This is a compact SVG (under 5,000 characters) that uses minimal markup to convey the scene. The model prioritized efficiency and simplicity over elaborate detail.
View raw SVG source ```xml ```
## 8. `lfm2.5:latest` **SVG size:** 78 characters **Complexity:** Compact **Shape elements:** 0 **Distinct colors:** 0 **Raw response:** 2500 characters **Generation time:** 363.3s ![lfm2.5:latest sunflower SVG](/assets/img/diagrams/ollama-svg-sunflower/lfm2.5_latest.svg) ### Analysis This SVG contains approximately **0 shape elements** and uses **0 distinct colors**. **Notable SVG techniques used:** - Uses standard SVG primitives (rect, circle, path, polygon) to compose the scene This is a compact SVG (under 5,000 characters) that uses minimal markup to convey the scene. The model prioritized efficiency and simplicity over elaborate detail.
View raw SVG source ```xml <svg xmlns="http://www.w3.org/2000/svg" … width="100%" height="auto"> … </svg> ```
## 9. `llama3.1:8b` **SVG size:** 1153 characters **Complexity:** Compact **Shape elements:** 14 **Distinct colors:** 8 **Raw response:** 2724 characters **Generation time:** 176.7s ![llama3.1:8b sunflower SVG](/assets/img/diagrams/ollama-svg-sunflower/llama3.1_8b.svg) ### Analysis This SVG contains approximately **14 shape elements** and uses **8 distinct colors**. **Notable SVG techniques used:** - Uses transforms (translate, rotate, scale) for precise positioning and rotation - Uses Bezier curves (`C`, `Q`, `A` path commands) for smooth organic shapes - Contains XML comments, showing the model's internal documentation of its work This is a compact SVG (under 5,000 characters) that uses minimal markup to convey the scene. The model prioritized efficiency and simplicity over elaborate detail.
View raw SVG source ```xml ```
## 10. `qwen2.5-coder-14b:latest` **SVG size:** 443 characters **Complexity:** Compact **Shape elements:** 6 **Distinct colors:** 2 **Raw response:** 816 characters **Generation time:** 201.4s ![qwen2.5-coder-14b:latest sunflower SVG](/assets/img/diagrams/ollama-svg-sunflower/qwen2.5-coder-14b_latest.svg) ### Analysis This SVG contains approximately **6 shape elements** and uses **2 distinct colors**. **Notable SVG techniques used:** - Contains XML comments, showing the model's internal documentation of its work This is a compact SVG (under 5,000 characters) that uses minimal markup to convey the scene. The model prioritized efficiency and simplicity over elaborate detail.
View raw SVG source ```xml ```
## 11. `qwen2.5-coder:7b` **SVG size:** 594 characters **Complexity:** Compact **Shape elements:** 4 **Distinct colors:** 3 **Raw response:** 1772 characters **Generation time:** 195.6s ![qwen2.5-coder:7b sunflower SVG](/assets/img/diagrams/ollama-svg-sunflower/qwen2.5-coder_7b.svg) ### Analysis This SVG contains approximately **4 shape elements** and uses **3 distinct colors**. **Notable SVG techniques used:** - Uses Bezier curves (`C`, `Q`, `A` path commands) for smooth organic shapes - Contains XML comments, showing the model's internal documentation of its work This is a compact SVG (under 5,000 characters) that uses minimal markup to convey the scene. The model prioritized efficiency and simplicity over elaborate detail.
View raw SVG source ```xml ```
## 12. `qwen2.5:3b` **SVG size:** 1810 characters **Complexity:** Compact **Shape elements:** 21 **Distinct colors:** 7 **Raw response:** 2592 characters **Generation time:** 186.8s ![qwen2.5:3b sunflower SVG](/assets/img/diagrams/ollama-svg-sunflower/qwen2.5_3b.svg) ### Analysis This SVG contains approximately **21 shape elements** and uses **7 distinct colors**. **Notable SVG techniques used:** - Contains XML comments, showing the model's internal documentation of its work This is a compact SVG (under 5,000 characters) that uses minimal markup to convey the scene. The model prioritized efficiency and simplicity over elaborate detail.
View raw SVG source ```xml ```
## 13. `qwen2.5:7b` **SVG size:** 1938 characters **Complexity:** Compact **Shape elements:** 8 **Distinct colors:** 5 **Raw response:** 2706 characters **Generation time:** 185.9s ![qwen2.5:7b sunflower SVG](/assets/img/diagrams/ollama-svg-sunflower/qwen2.5_7b.svg) ### Analysis This SVG contains approximately **8 shape elements** and uses **5 distinct colors**. **Notable SVG techniques used:** - Uses `` blocks for reusable components (a sign of well-structured, editable SVG) - Includes gradient fills for richer visual depth - Uses transforms (translate, rotate, scale) for precise positioning and rotation - Uses Bezier curves (`C`, `Q`, `A` path commands) for smooth organic shapes - Contains XML comments, showing the model's internal documentation of its work This is a compact SVG (under 5,000 characters) that uses minimal markup to convey the scene. The model prioritized efficiency and simplicity over elaborate detail.
View raw SVG source ```xml ```
## 14. `qwen3.5:4b` **SVG size:** 2661 characters **Complexity:** Medium **Shape elements:** 19 **Distinct colors:** 4 **Raw response:** 2765 characters **Generation time:** 144.1s ![qwen3.5:4b sunflower SVG](/assets/img/diagrams/ollama-svg-sunflower/qwen3.5_4b.svg) ### Analysis This SVG contains approximately **19 shape elements** and uses **4 distinct colors**. **Notable SVG techniques used:** - Uses `` blocks for reusable components (a sign of well-structured, editable SVG) - Includes gradient fills for richer visual depth - Uses Bezier curves (`C`, `Q`, `A` path commands) for smooth organic shapes - Contains XML comments, showing the model's internal documentation of its work This is a compact SVG (under 5,000 characters) that uses minimal markup to convey the scene. The model prioritized efficiency and simplicity over elaborate detail.
View raw SVG source ```xml /* Sunflower Gradient */ /* Stem Texture */ </circle> ```
## 15. `qwen3.5:9b` **SVG size:** 1533 characters **Complexity:** Compact **Shape elements:** 1 **Distinct colors:** 7 **Raw response:** 7821 characters **Generation time:** 400.7s ![qwen3.5:9b sunflower SVG](/assets/img/diagrams/ollama-svg-sunflower/qwen3.5_9b.svg) ### Analysis This SVG contains approximately **1 shape elements** and uses **7 distinct colors**. **Notable SVG techniques used:** - Uses `` blocks for reusable components (a sign of well-structured, editable SVG) - Includes gradient fills for richer visual depth - Contains XML comments, showing the model's internal documentation of its work This is a compact SVG (under 5,000 characters) that uses minimal markup to convey the scene. The model prioritized efficiency and simplicity over elaborate detail.
View raw SVG source ```xml </li> linearGradient id=PetalGreen"> <offset="0%" #a4d35f"></stop></stop>fill=#8bb86f</color>/</stop> --> </defs> <offset=29.17%">stop=#388e3c</color><stop offset="--opacity-</stop />/--> </p --offset=50%" fill=color=#7cb342"></gradient> </svg> ``` </details> ## 16. `qwen3.5:latest` **SVG size:** 991 characters **Complexity:** Compact **Shape elements:** 7 **Distinct colors:** 5 **Raw response:** 1595 characters **Generation time:** 467.9s ![qwen3.5:latest sunflower SVG](/assets/img/diagrams/ollama-svg-sunflower/qwen3.5_latest.svg) ### Analysis This SVG contains approximately **7 shape elements** and uses **5 distinct colors**. **Notable SVG techniques used:** - Uses `` blocks for reusable components (a sign of well-structured, editable SVG) - Uses `` references to reuse defined elements -- ideal for repeating motifs like seeds, scales, or leaflets - Uses transforms (translate, rotate, scale) for precise positioning and rotation - Uses Bezier curves (`C`, `Q`, `A` path commands) for smooth organic shapes - Contains XML comments, showing the model's internal documentation of its work This is a compact SVG (under 5,000 characters) that uses minimal markup to convey the scene. The model prioritized efficiency and simplicity over elaborate detail.
View raw SVG source ```xml Seeds</svg> ``` </details> ## Failed Models The following 9 models did not produce a valid SVG (either returned an error or the response did not contain a parseable `...` block): - `gemma4:31b-it-qat` -- TimeoutError: timed out - `gemma4:latest` -- TimeoutError: timed out - `jeffgreen311/Eve-V2-Unleashed-Qwen3.5-8B-Liberated-4K-4B-Merged:latest` -- TimeoutError: timed out - `kwangsuklee/Qwen3.5-9B.Q4_K_M-Claude-4.6-Opus-Reasoning-Distilled-v2:latest` -- no SVG block in response - `qwen3:14b` -- TimeoutError: timed out - `qwen3:8b` -- TimeoutError: timed out - `SetneufPT/Qwen3.6-27B-MTP_Q3_32K_16GB-GPU:latest` -- TimeoutError: timed out - `SetneufPT/Qwen3.6-27B.MTP_Q3_32K_16GB-GPU:latest` -- TimeoutError: timed out - `VladimirGav/Qwen3.6-27B-16GB-VRAM-Uncensored:latest` -- TimeoutError: timed out ## Conclusion We asked 25 Ollama local models to draw **a sunflower** -- a subject deeply connected to Fibonacci mathematics. The results reveal each model's natural instinct for mathematical patterns, organic curves, and natural color palettes. **Key takeaways:** - **Mathematical intuition varies widely**: some models attempted Fibonacci spiral arrangements naturally, while others defaulted to simple grids or flat shapes. The models that attempted spirals demonstrate a deeper understanding of natural geometry. - **Detail and file size trade-off**: models that produced the richest scenes (Very high complexity) also generated the largest SVG files. For web embedding, "Balanced" or "Detailed" models may be more practical. - **Color palettes differ dramatically**: some models used sophisticated gradients and 15+ distinct colors, while others used as few as 4 flat colors. More colors generally means a more lifelike result. - **Code structure quality varies**: the best models used ``, ``, and `` elements to efficiently generate repeating structures (seeds, scales, leaflets). This is a strong signal of model capability for practical SVG work. - **No single model is best at everything**: the "right" model depends on whether you prioritize mathematical accuracy, visual beauty, file size, or code quality. **Try it yourself**: run the benchmark script with your own prompt and see how the models perform on your specific use case. The full code is available in the [ollama-svg-benchmark repository](https://github.com/py2ai/ollama-svg-benchmark). --- *Which model do you think drew the best sunflower? Let us know in the comments below!*
Watch PyShine on YouTube

Contents