<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Qwen on Alessandro Sangiorgi — GPU Performance Engineer</title><link>https://contact.alessandrosangiorgi.net/tags/qwen/</link><description>Recent content in Qwen on Alessandro Sangiorgi — GPU Performance Engineer</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sun, 27 Sep 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://contact.alessandrosangiorgi.net/tags/qwen/index.xml" rel="self" type="application/rss+xml"/><item><title>Codex, Qwen3.8, and a Chat Template That Refused to Bend</title><link>https://contact.alessandrosangiorgi.net/posts/qwen3-8-vllm-responses-api-system-message-chat-template/</link><pubDate>Sun, 27 Sep 2026 00:00:00 +0000</pubDate><guid>https://contact.alessandrosangiorgi.net/posts/qwen3-8-vllm-responses-api-system-message-chat-template/</guid><description>&lt;p&gt;I run &lt;a href="https://github.com/openai/codex"&gt;Codex CLI&lt;/a&gt; against a locally hosted &lt;strong&gt;unsloth/Qwen3.8-27B-NVFP4&lt;/strong&gt;, served by vLLM on an RTX 5090. It&amp;rsquo;s wired up as a Codex profile (&lt;code&gt;qwen38.config.toml&lt;/code&gt;) pointing at &lt;code&gt;http://10.8.0.34:8000/v1&lt;/code&gt;. It had been working. Then one session it started failing, reliably, with this:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#e6edf3;background-color:#0d1117;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-json" data-lang="json"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;{&lt;span style="color:#7ee787"&gt;&amp;#34;error&amp;#34;&lt;/span&gt;:{&lt;span style="color:#7ee787"&gt;&amp;#34;message&amp;#34;&lt;/span&gt;:&lt;span style="color:#a5d6ff"&gt;&amp;#34;System message must be at the beginning.&amp;#34;&lt;/span&gt;,&lt;span style="color:#7ee787"&gt;&amp;#34;type&amp;#34;&lt;/span&gt;:&lt;span style="color:#a5d6ff"&gt;&amp;#34;BadRequestError&amp;#34;&lt;/span&gt;,&lt;span style="color:#7ee787"&gt;&amp;#34;param&amp;#34;&lt;/span&gt;:&lt;span style="color:#79c0ff"&gt;null&lt;/span&gt;,&lt;span style="color:#7ee787"&gt;&amp;#34;code&amp;#34;&lt;/span&gt;:&lt;span style="color:#a5d6ff"&gt;400&lt;/span&gt;}}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The interesting part wasn&amp;rsquo;t that it failed — it&amp;rsquo;s &lt;em&gt;when&lt;/em&gt; it failed. The very first prompt of a session always went through fine. The break only showed up on the &lt;strong&gt;second&lt;/strong&gt; turn, right after the model made a tool call (a shell command) and Codex sent the result back. First turn: 200 OK. First tool round-trip: 400. Every time.&lt;/p&gt;</description></item></channel></rss>