This is a follow-up to our previous comparison. The models are the same, but the task has changed: this time it’s coding.
Last time, on summarization and explanation, my own ranking put Muse Glimmer-30B and Qwen3.8-27B at the top, with Gemma4-31B-it down in fourth. All of these sit in the same 30B class, so the interesting question is how far the order moves once the task is different.

What We Compared
Day to day, most of us write code in an editor with AI built in. I use Cursor; Claude Code and Codex are popular too. And plenty of people simply type a request into a chat window such as Gemini or ChatGPT and get a program back.
That second workflow is what this test covers. I’m not evaluating in-editor agent features. I’m sending a prompt in a chat-style exchange and asking for the code of a small app. Many people already use closed models this way, so the real question is whether a 30B-class local LLM will also hand back code that runs.
The Task
To find out whether the output is good enough for real work, I had each model write a simple app in Python. Gradio, a library that’s common in machine learning circles, lets you stand up a basic web app quickly, so that’s what the models were told to use.
The app is a dashboard showing the top 10 Japanese stocks by market capitalization. Stocks aren’t really the point here. I chose the topic because it makes it easy to add constraints where models tend to behave differently: a fixed universe of tickers, pulling market cap through yfinance, and mapping each ticker to its Japanese company name.
The experiment ran in two rounds:
- Round 1 (one-shot generation): the model gets the prompt and nothing else, and returns complete, runnable Python code.
- Round 2 (repair): instead of repeating the same request, the model gets its own Round 1 code back along with additional fix requirements to apply.
The Round 1 prompt is below. The Round 2 prompt is in section 4-2, next to the explanation of the repair round.

The Models

The lineup is unchanged from last time, so here are just the names. Thinking mode is handled the same way as before, too.
- Qwen3.8-27B (two setups: thinking mode ON at low, and thinking mode OFF)
- Qwen3.6-27B (thinking mode OFF)
- Muse Glimmer-30B (thinking can’t be switched off completely, so reasoning_strength=”low”)
- Gemma4-31B-it (thinking mode OFF)
The test environment is also the same: an A100 80GB on HyphaGPU. I favored reproducibility over creativity, so generation ran with do_sample=False, one shot per model per condition. The Gradio version used for launch checks was 6.24.0.
How We Scored

As before, the goal is to work out which model you could actually use on the job, and as before the evaluation is split between me and Grok4.6, each looking at a different level of detail. One thing did change: Grok’s scoring items are no longer last time’s Correctness and so on. For this task it looks at the UI and the code.
- Me (macro): I rank the models on overall impression. Does the app launch, how does the UI feel, and how maintainable is the code?
- Grok4.6 (micro): it scores Round 1 and Round 2 separately, giving UI and code up to 10 points each, and ranks each round by the total. The overall recommendation in this article is left to me.
My criteria were:
- The app launches normally, with no bugs or other defects.
- The quality of the Python code and the UI.
- UI: a qualitative call on usability and appearance. The Round 1 prompt says nothing about yen, commas, or trillion-yen notation, so a model that made the numbers readable on its own initiative earns extra credit.
- Code: is there little duplication, is it easy to maintain, and does it avoid coding-rule violations such as those flagged by flake8?
Grok’s main criteria were:
- UI: whether the app launches, whether the first data fetch happens through load, units (yen / trillion yen) and commas, and the timestamp and item count.
- Code: how the stock universe is stored, whether sorting happens before formatting, and flake8-style issues (unused variables, bare except, dead code).
My judgment alone would be lopsided, which is why the LLM evaluation is there. The two rankings don’t need to line up one to one. As long as the models near the top don’t differ wildly, I consider it a good enough objective check on my own bias.

Results
The results come in three parts: Round 1 (one-shot generation), Round 2 (repair), and a
side-by-side look at my ranking and Grok4.6’s. For each round, I cover whether the apps
launched, how fast each model ran, how I ranked them, and what stood out in the UI and the
code.
Round 1: One-Shot Generation
Here is what the models generated.
- Output of Qwen3.8-27B (thinking mode OFF)
- Output of Qwen3.8-27B (thinking mode ON)
- Qwen3.6-27B
- Muse Glimmer-30B
- Gemma4-31B-it
And here is each app after launch.
Output from Qwen3.8-27B (Thinking Mode OFF)

Other results▼
- Output from Qwen3.8-27B (Thinking Mode ON) [Image Link]
- Output from Qwen3.6-27B [Image Link]
- Output from Muse Glimmer-30B [Image Link]
- Output from Gemma4-31B-it [Image Link]
Every model produced an app that launched without trouble.
Inference times were as follows.
| Model | Inference time (sec) | Tokens | Speed (tokens/sec) |
| Qwen3.8-27B (thinking mode OFF) | 134.58 | 1840 | 13.7 |
| Qwen3.8-27B (thinking mode ON) | 188.64 | 2606 | 13.8 |
| Qwen3.6-27B | 124.94 | 1671 | 13.4 |
| Muse Glimmer-30B | 52.80 | 979 | 18.5 |
| Gemma4-31B-it | 76.59 | 1040 | 13.6 |
Just like last time, Muse Glimmer-30B is the fastest.
Now for my frank ranking. Since coding is the theme, it leans a little toward code quality.
| Overall rank | Model | UI rank | Code rank |
| 1 | Gemma4-31B-it | 3 | 1 |
| 2 | Qwen3.8-27B (thinking mode ON) | 1 | 3 |
| 3 | Muse Glimmer-30B | 5 | 2 |
| 4 | Qwen3.6-27B | 2 | 5 |
| 5 | Qwen3.8-27B (thinking mode OFF) | 4 | 4 |
What stood out in the UI
- How numbers are presented. Market caps are very large numbers, so units and commas matter if a person is going to read them at a glance. The Round 1 prompt didn’t ask for any of this, yet Qwen3.8-27B (thinking mode ON) went as far as trillion-yen units and comma separators, which made it the best-looking result.
- Whether yfinance is called before or after launch. If the code hits yfinance before the app starts, you sit waiting for the screen to appear (or a network call fires the moment the module is imported). Fetching once the app is up is the better order, and Gemma4-31B-it, Qwen3.6-27B, and Qwen3.8-27B (thinking mode OFF) did it that way. Gemma4-31B-it looks plain, but its load works properly, and that is why it got third place for UI. Muse Glimmer-30B and Qwen3.8-27B (thinking mode ON) fetched before launch.
What stood out in the Python code
- How constants are defined. The models differed in how they stored ticker codes and Japanese names: a dictionary (code to Japanese name, in one place) or a list of tuples. Tuples make sense when you’re worried about data being overwritten, but a dictionary is plenty here. Qwen3.6-27B kept a list and a dictionary separately, so the same data lives in two places and it’s easy to forget one when adding a stock. That cost it points. Qwen3.8-27B (thinking mode OFF) also lost points: it wrote part of a dictionary, then rebuilt it under a comment, leaving a duplicate definition.
- flake8 errors. The unused variable e (except Exception as e:) was flagged in Qwen3.6-27B and Qwen3.8-27B (thinking mode OFF). Gemma4-31B-it, Muse Glimmer-30B, and Qwen3.8-27B (thinking mode ON) came through flake8 with nothing notable.
Round 2: Repair
Round 2 is not a rerun of the Round 1 prompt to test reproducibility. Each model was given its Round 1 code as the base and asked for a finished version with extra fix requirements applied. Because every model is fixing its own Round 1 code, they don’t start from the same place. So Round 2 doesn’t measure whether they all solved the same repair problem. It measures whether a model can fix its own output as instructed.
The prompt is below.
In short, it asks for three things:
- Show stock prices in yen (or JPY) with comma separators and market cap converted to trillion yen, and sort in descending order on the raw numbers before turning them into display strings.
- Fetch the data after the UI has launched (app.load / demo.load), not before the app starts.
- Follow a deliberately abstract design instruction, asking for colors that are easy on the user’s eyes and a consistent look, and also add a timestamp and item count, a primary-styled refresh button, and a read-only Dataframe.
Here is what the models generated.
- Output of Qwen3.8-27B (thinking mode OFF)
- Output of Qwen3.8-27B (thinking mode ON)
- Qwen3.6-27B
- Muse Glimmer-30B
- Gemma4-31B-it
And here is each app after launch.
Output from Qwen3.6-27B

Other results▼
The surprise: Qwen3.8-27B introduced a bug with thinking mode both ON and OFF, and neither app would launch.
Qwen3.8-27B (thinking mode OFF)
Traceback (most recent call last):
File "topix_Qwen3.8-27B_thinking-off_repaired.py", line 137, in <module>
theme = gr.themes.Soft(
primary_hue=gr.themes.Color(
...<28 lines>...
],
)
TypeError: Soft.__init__() got an unexpected keyword argument 'font_google'Qwen3.8-27B (thinking mode ON)
Traceback (most recent call last):
File "topix_Qwen3.8-27B_thinking-on_repaired.py", line 98, in <module>
theme = gr.themes.Soft(
primary_hue=gr.themes.Color(
...<14 lines>...
font_google=[{"name": "Noto Sans JP", "subset": "japanese"}],
)
TypeError: Soft.__init__() got an unexpected keyword argument 'font_google'Both seem to have tried a bit too hard to make things look good and hallucinated an argument that doesn’t exist, font_google. They handled the concrete instructions (yen, commas, trillion yen, load), but they overreached on the abstract design instruction and made up an API that isn’t in the official library. That is the single biggest difference this test turned up.
Inference times were as follows.
| Model | Inference time (sec) | Tokens | Speed (tokens/sec) |
| Qwen3.8-27B (thinking mode OFF) | 113.03 | 1464 | 13.0 |
| Qwen3.8-27B (thinking mode ON) | 394.71 | 5179 | 13.1 |
| Qwen3.6-27B | 175.30 | 2270 | 12.9 |
| Muse Glimmer-30B | 82.39 | 1414 | 17.2 |
| Gemma4-31B-it | 116.29 | 1474 | 12.7 |
Muse Glimmer-30B was the fastest in Round 2 as well.
| Overall rank | Model | UI rank | Code rank |
| 1 | Gemma4-31B-it | 2 | 1 |
| 2 | Muse Glimmer-30B | 3 | 2 |
| 3 | Qwen3.6-27B | 1 | 3 |
| 4 (tie) | Qwen3.8-27B (thinking mode ON) | Did not launch | – |
| 4 (tie) | Qwen3.8-27B (thinking mode OFF) | Did not launch | – |
The two that failed to launch broke for the same reason, font_google, so I didn’t separate them and ranked them as tied.
What stood out in the UI
- How far a model goes with an abstract instruction. I kept the design instruction vague on purpose. Gemma4-31B-it and Muse Glimmer-30B stayed inside the official theme API, and Qwen3.6-27B went a step further and used color keywords that really exist. Qwen3.6-27B had the most polished look. Gemma4-31B-it also earns credit for tucking a small refresh button into the top right.
- Whether the fix requirements were met. There were three: fix the number formatting, fetch data after launch, and improve the design. The three models that launched all satisfied launch itself, the units, and load. The small misses varied by model: Muse Glimmer-30B’s item-count label is hard to make sense of, Gemma4-31B-it’s CSS barely takes effect, and Qwen3.6-27B left a column named Rank.
What stood out in the Python code
- flake8 errors. Qwen3.6-27B still has the unused e. Muse Glimmer-30B lost points for except: (a bare except).
- How constants are defined. Qwen3.6-27B’s duplicated list and dictionary survived into Round 2. I’d like a model to spot and fix that kind of thing without being told. Muse Glimmer-30B, on the other hand, moved its Round 1 pre-launch fetch into demo.load, which shows solid repair ability.
How My Ranking Compares with Grok4.6’s
Grok4.6’s output is attached below.
My ranking is an overall impression from looking at the results, while Grok4.6 follows its scores for each round, so the two don’t have to agree position by position. Grok’s Round 1 and Round 2 columns reflect the UI plus code total for that round.
| Rank | Me (Round 1) | Grok4.6 (Round 1) | Me (Round 2) | Grok4.6 (Round 2) |
| 1 | Gemma4-31B-it | Gemma4-31B-it | Gemma4-31B-it | Gemma4-31B-it |
| 2 | Qwen3.8-27B (thinking mode ON) | Qwen3.8-27B (thinking mode ON) | Muse Glimmer-30B | Muse Glimmer-30B |
| 3 | Muse Glimmer-30B | Qwen3.6-27B | Qwen3.6-27B | Qwen3.6-27B |
In Round 1, Grok4.6 and I agreed on Gemma4-31B-it in first and Qwen3.8-27B (thinking mode ON) in second. We split on third: I picked Muse Glimmer-30B, and Grok4.6 picked Qwen3.6-27B. In Grok’s Round 1 scoring, Muse’s point total is actually higher than Qwen3.6’s, but its UI is weak, so it sits lower in the ranking table. Qwen3.8-27B (thinking mode ON) wins on anticipating how things should be presented, but once load and code quality are added in, Gemma4-31B-it comes out first overall. In Round 2, with Qwen3.8-27B unable to launch, Muse Glimmer-30B moves up to second. Grok4.6 and I agreed here too. Which model to use in practice is my call, and I’ll sum that up in the next section with this round-by-round comparison in mind. Last time, on summarization and explanation, Qwen3.8-27B and Muse Glimmer-30B were on top. The takeaway this time is that the winner changes when the task is coding.
Wrapping Up
This time we compared 30B-class models on generating code for a small app.
Gemma4-31B-it, which was unremarkable on summarization and explanation, did very well at coding. Its code is quite simple and close to what I’d expect to write myself. When an LLM produces code like that, maintenance goes smoothly, and that’s a real help.
Muse Glimmer-30B also delivered code and a UI of perfectly adequate quality, as long as you don’t sweat the small stuff. It has the fastest inference too, so it should feel handy when you’re generating a lot of code. Fixing the fetch timing in the repair round left a good impression as well.
Qwen3.8-27B presented things well in Round 1, but when it met the abstract design instruction it wrote an API that doesn’t exist and couldn’t launch. What sank it wasn’t thinking mode being ON or OFF. It was inventing an argument that isn’t in the official library. You could also argue that with font_google removed, or changed to gr.themes.GoogleFont, it might have been a top contender on looks.
To sum up my recommendation: Gemma4-31B-it if you want maintainable code, and Muse Glimmer-30B if you want fast turnaround. Bear in mind this is an N=1 test on one specific task, and neither Qwen3.8 nor Qwen3.6 came out dramatically worse. Overall, for writing simple code, I think these 30B-class models are well within the range of what you can use at work.
If you haven’t yet, why not try a 30B-class model in your own work? Thanks for reading all the way to the end!

