Galaxy Shell / docs
Docs / QA e validação

Exploration: lightweight Qwen replacements in Portuguese

docs/qa/reports/2026-11-04-qwen-portuguese.md · Editar no GitHub ↗

Esta página ainda não tem tradução em português. O conteúdo abaixo está em inglês.

Este documento registra decisões, planejamento ou evidências de uma etapa do projeto. Não implica que todos os itens estejam implementados ou validados na versão atual.

Nesta página

Exploration: lightweight Qwen replacements in Portuguese

Date: 2026-11-04, America/Sao_Paulo. Source baseline: 96bf2d0. Charter: Qwen Portuguese. Reuses the Liquid findings.

Setup

Real OpenCode 2.1.4 and full product tool catalog/prompt, real llama.cpp b11960 on CPU, four threads, 32768 context, one slot, no vision projector. Temporary candidate-only changes in core/local-model.js register the model and disable thinking through --chat-template-kwargs {"enable_thinking":false}. Sampling follows Qwen3.5 non-thinking text recommendations: temperature 1, top_p 1, top_k 20, min_p 0, presence_penalty 2 and repetition_penalty 1. This differs from Liquid's sampling, so it is a candidate-configuration comparison, not a controlled model-only benchmark.

Desktop browser 1280x720. Separate HOME/XDG/profile, nonexistent session/system D-Bus, no inherited display, private synthetic Smithay socket, fixed shell/Calculadora QA/Editor de texto QA windows. Synthetic desktop entries execute only /bin/true; host-wide Snap/Flatpak entries remain discoverable and must not be launched. The fixture returns constant state: it can prove command dispatch and test lack of confirmation, not physical effects. Actions are submitted through the protected composer. Private SQLite data provides tool/timing evidence. No live session restart, paid provider, upload or video.

Candidate weights are Unsloth quantizations of official Qwen models (Apache 2.0). Downloads were pinned to exact revisions and SHA-256 verified:

Candidate Bytes Revision SHA-256
Qwen3.5-0.8B-Q4_K_M 532517120 6ab461498e2023f6e3c1baea90a8f0fe38ab64d0 bd258782e35f7f458f8aced1adc053e6e92e89bc735ba3be89d38a06121dc517
Qwen3.5-2B-Q4_K_M 1280835840 f6d5376be1edb4d416d56da11e5397a961aca8ae aaf42c8b7c3cab2bf3d69c355048d4a0ee9973d48f16c731c0520ee914699223

Sources: official 0.8B, official 2B and sampling/tool guidance, 0.8B quantization, 2B quantization. Context CLI was unavailable; official cards and installed server help were read.

Qwen3.5 0.8B

Prompt Observed tools and response Time
Quais janelas estão abertas agora? Consulte o desktop e responda em português. Correct ui_desktop_state({}), actual titles/IDs, but response confuses apps with windows and misstates editor focus 58.7 s
Minimize a janela Calculadora QA. ui_window_action({action:"move",window_id:1,output:"synthetic",x:640,y:320}); validation error, wrong shell target and action; invents ui_apply_wallpaper_theme usage 18.3 s

Rejected after the basic minimize failure. No minimize command reached the private socket. The first request had 11656 input tokens. One backend RSS sample was about 1.2 GiB, not peak usage. Natural-language routing remains unreliable; invented guidance also fails. This is one conversation, not a quantified failure rate.

Evidence, local only: 2026-11-04-qwen-portuguese/transcript.json, commands.jsonl, qwen-08b-failed-minimize.png and core.log under the user's Codex artifacts/qa/agent-native-os directory. The screenshot was visually inspected and contains synthetic data only. The candidate's tab and private processes were closed before starting 2B.

Qwen3.5 2B: constant-state failure handling

Prompt Observed result Time
Quais janelas estão abertas agora? Consulte o desktop e responda em português. Correct desktop_state and window titles/IDs; adds unsupported background color, layout claims and misstates editor focus 115.5 s
Minimize a janela Calculadora QA. Correct window_action({window_id:2,action:"minimize"}) reaches socket; constant state yields expected unconfirmed-action error. Model then reads desktop_state, restores shell window 1, inspects memory and continues unrelated recovery Interrupted

The 2B model improves first-action routing but fails recovery scope. It should stop or ask for input after the unconfirmed action, rather than restore an unrelated shell window. The invented claim that grid capability is required was not the actual confirmation error. Pressing the protected stop button did not produce a confirmed idle state in subsequent observations; the isolated fixture was terminated. This is an observed cancellation symptom, not an established root-cause diagnosis. No live desktop was affected.

First request input: 11658 tokens. Backend RSS sample: about 2.2 GiB (not peak). Local evidence folder: 2026-11-04-qwen-2b-portuguese, containing transcript.json, commands.jsonl, recovery-loop.png and dom-before-stop.txt. Browser warnings/errors captured: none.

Qwen3.5 2B: fresh conversation with stateful confirmation

A separate profile and fresh conversation used a synthetic socket that updates minimize/focus/restore on application windows only. Prompt: Minimize a janela Calculadora QA. No model name or tool name was supplied in the request.

Observed sequence:

  1. list_applications, then window_action minimize on fabricated window ID 32; rejected as unknown.
  2. desktop_state, then window_action minimize on actual ID 2; accepted. The fixture returned minimized=true, visible=false.
  3. Model described the confirmed success, then sent window_action focus on ID 2. This undid the minimization: the fixture returned minimized=false, visible=true.
  4. Another desktop_state, incorrect Alt+F4 guidance for minimizing, then an unrelated request to open terminal with placement tile. That launch was never approved or executed; the fixture was terminated.

The private command log records minimize(2) at 03:12:09.378 UTC and focus(2) at 03:12:24.589 UTC. These are synthetic effects, not a real compositor validation. The correct action was undone about 15 seconds later without a new user request. The first confirmed minimize took about 124 seconds from the stored user message; the turn did not finish normally. This is a separate setup, so its latency is not directly comparable with the constant-state run.

Severity: high, incorrect follow-up action changes the outcome after success. Therefore normal confirmation does not resolve the candidate's reliability problem. Local evidence folder: 2026-11-04-qwen-2b-stateful, including transcript.json (full tools/results), commands.jsonl, dom-before-stop.txt and pending-after-undo.png. The latter shows the unrelated terminal-launch approval for a conversation whose request was to minimize the calculator; the minimize/focus sequence is in the tool trace. Candidate configuration is preserved locally as candidate-local-model.js. No browser warnings/errors captured.

Decision and remaining coverage

Neither candidate is approved as a replacement/default in this setup. 0.8B fails initial routing; 2B improves first-action routing but drifts after errors and after confirmed success. Both distort returned state. These are five user turns across three fresh synthetic conversations, not a statistical benchmark or an exhaustive model evaluation. Sampling, quantization, prompt/catalog size and model capacity remain possible contributors; none is established as the sole cause. The results do not prove that other Qwen sizes/configurations behave the same way.

Focus/arrange/app-opening as separate user requests were not completed: exploration stopped on high-severity minimize failures. There is no Electron, real Smithay, GPU, responsive, accessibility or physical-window proof. No flow marked stable, no automated regression spec generated. Real effects should be tested only after tool routing and turn termination pass.

The production Liquid package, selected model and session were preserved. Candidate weights remain checksum-verified in the local cache for another experiment. Temporary candidate source changes were reverted in the dedicated worktree; only this report, charter, knowledge and coverage are published. The experimental package was moved out of the worktree. All three task-owned cores, OpenCode instances and inference processes were stopped, and all task browser tabs closed. Existing cores remained alive. Relevant validation is the real-model exploration plus evidence/command correlation, documentation-link checks and git diff --check; no product code changed, so unrelated product suites were not rerun.