<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[AI Research]]></title><description><![CDATA[AI Research]]></description><link>https://blog.n.ichol.ai</link><generator>RSS for Node</generator><lastBuildDate>Sat, 07 Nov 2026 22:43:48 GMT</lastBuildDate><atom:link href="https://blog.n.ichol.ai/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Packaging Latent Reasoning as a Real Model]]></title><description><![CDATA[DeepSeek-V4-Flash-0731-Latent-Reasoning. A self-contained model that does thinking in latent space, NVFP4-quantized, with a production vllm form for…]]></description><link>https://blog.n.ichol.ai/packaging-latent-reasoning-as-a-real-model</link><guid isPermaLink="true">https://blog.n.ichol.ai/packaging-latent-reasoning-as-a-real-model</guid><dc:creator><![CDATA[Nicholai Mitchko]]></dc:creator><pubDate>Thu, 06 Aug 2026 13:30:15 GMT</pubDate><content:encoded><![CDATA[<p><strong>DeepSeek-V4-Flash-0731-Latent-Reasoning. A self-contained model that does thinking in latent space, NVFP4-quantized, with a production vllm form for serving runtime.</strong></p>
<p><a href="https://huggingface.co/nmitchko/DeepSeek-V4-Flash-0731-Latent-Reasoning">https://huggingface.co/nmitchko/DeepSeek-V4-Flash-0731-Latent-Reasoning</a></p>
<p><em>Published on</em> <a href="https://blog.n.ichol.ai/"><em>blog.n.ichol.ai</em></a></p>
<hr />
<h2>Quick overview</h2>
<p>The goal of this model is to employ latent thinking in an open source model. The idea is to compress thinking tokens and keep them within latent forms not in the output emission.</p>
<p>The backbone is quantized down to NVFP4.</p>
<p>Model: <a href="https://huggingface.co/nmitchko/DeepSeek-V4-Flash-0731-Latent-Reasoning"><strong>nmitchko/DeepSeek-V4-Flash-0731-Latent-Reasoning</strong></a></p>
<hr />
<p>HuggingFace repo:</p>
<ul>
<li><p><strong>The DeepSeek-V4-Flash-0731 backbone</strong>. Roughly <strong>79 GiB of weights per GPU at TP=2</strong> (158–164 GiB total).</p>
</li>
<li><p><strong>The DSpark draft block</strong> (3 layers), preserved from the source.</p>
</li>
<li><p><strong>The trained latent reasoning head</strong>. 35.7M params, loaded from a single <code>latent_reasoning_head.safetensors</code> (~152 MB).</p>
</li>
</ul>
<h2>first evals</h2>
<p><strong>BBH (BIG-Bench Hard),</strong> <code>cot_zeroshot</code><strong>, 27 subtasks: aggregate 0.94 ± 0.008.</strong> Measured with lm-evaluation-harness 0.4.12 against an OpenAI-compatible endpoint. Deepseek latent reevaluated the results after giving separate 0.94 vs 0.88 exact match. Thinking enabled. 50 items per subtask, 1350 items total.</p>
<table>
<thead>
<tr>
<th>Subtask</th>
<th>Score</th>
<th>Subtask</th>
<th>Score</th>
</tr>
</thead>
<tbody><tr>
<td>tracking_shuffled_objects_three_objects</td>
<td>1.00</td>
<td>date_understanding</td>
<td>0.92</td>
</tr>
<tr>
<td>tracking_shuffled_objects_five_objects</td>
<td>1.00</td>
<td>sports_understanding</td>
<td>0.88</td>
</tr>
<tr>
<td>tracking_shuffled_objects_seven_objects</td>
<td>1.00</td>
<td>logical_deduction_five_objects</td>
<td>0.88</td>
</tr>
<tr>
<td>penguins_in_a_table</td>
<td>1.00</td>
<td>web_of_lies</td>
<td>0.86</td>
</tr>
<tr>
<td>formal_fallacies</td>
<td>1.00</td>
<td>snarks</td>
<td>0.84</td>
</tr>
<tr>
<td>boolean_expressions</td>
<td>1.00</td>
<td>ruin_names</td>
<td>0.84</td>
</tr>
<tr>
<td>word_sorting</td>
<td>0.98</td>
<td>movie_recommendation</td>
<td>0.84</td>
</tr>
<tr>
<td>temporal_sequences</td>
<td>0.98</td>
<td>salient_translation_error_detection</td>
<td>0.76</td>
</tr>
<tr>
<td>object_counting</td>
<td>0.98</td>
<td>geometric_shapes</td>
<td>0.74</td>
</tr>
<tr>
<td>navigate</td>
<td>0.98</td>
<td>causal_judgement</td>
<td>0.66</td>
</tr>
<tr>
<td>logical_deduction_three_objects</td>
<td>0.98</td>
<td>disambiguation_qa</td>
<td>0.58</td>
</tr>
<tr>
<td>reasoning_about_colored_objects</td>
<td>0.96</td>
<td>dyck_languages</td>
<td>0.26</td>
</tr>
<tr>
<td>hyperbaton</td>
<td>0.96</td>
<td></td>
<td></td>
</tr>
<tr>
<td>multistep_arithmetic_two</td>
<td>0.94</td>
<td></td>
<td></td>
</tr>
<tr>
<td>logical_deduction_seven_objects</td>
<td>0.94</td>
<td></td>
<td></td>
</tr>
</tbody></table>
<p>It is strongest where reasoning means multi-step state tracking. <code>tracking_shuffled_objects</code>, <code>boolean_expressions</code>, <code>formal_fallacies</code>, <code>penguins_in_a_table</code> all hit 1.00. It is weakest on the mechanical, syntax-heavy jobs. <code>dyck_languages</code> (bracket matching) sits at 0.26, the clear outlier. That is a genuine weakness, not a measurement artifact.</p>
<ol>
<li><p><strong>Lm eval uses</strong> <code>flexible-extract</code><strong>, not</strong> <code>strict-match</code><strong>.</strong> BBH's <code>strict-match</code> regexes for the literal phrase <code>The answer is X</code>. This model does not emit that phrase. Its near-zero <code>strict-match</code> score is an answer-formatting artifact, not a reasoning failure.</p>
</li>
<li><p><strong>Per-subtask values carry about ±0.05–0.07</strong> at 50 items each. The aggregate of 0.880 is the reliable number.</p>
</li>
</ol>
<hr />
<h2>Architecture</h2>
<pre><code class="language-plaintext">                    layer 35 hidden (4096-d)
                             |
                             v  LayerNorm
        +--------- ReasoningCompressionHead ----------+
        |  Linear 4096 -&gt; 2048 . SiLU                 |
        |  Linear 2048 -&gt; 2048 . SiLU                 |
        |  Linear 2048 -&gt; 2048  -&gt;  [mu, log_sigma]   |
        |                                             |
        |  stop_head:                                 |
        |     Linear 4096 -&gt; 1024 . SiLU              |
        |     Linear 1024 -&gt; 1                        |  -&gt; end-of-reasoning
        +---------------------------------------------+
                             | mu (1024-d latent)
                             v  LayerNorm
        +-------------- LatentDecoder ----------------+
        |  Linear 1024 -&gt; 2048 . SiLU                 |
        |  Linear 2048 -&gt; 2048 . SiLU                 |
        |  Linear 2048 -&gt; 4096                        |
        +---------------------------------------------+
                             |
                             v  written back into the residual stream
              DeepSeek-V4-Flash-0731 backbone (frozen, NVFP4)
</code></pre>
<table>
<thead>
<tr>
<th>Config</th>
<th>Value</th>
</tr>
</thead>
<tbody><tr>
<td>hidden_size</td>
<td>4096</td>
</tr>
<tr>
<td>latent_dim</td>
<td>1024</td>
</tr>
<tr>
<td>mlp_dim</td>
<td>2048</td>
</tr>
<tr>
<td>source_layer / target_layer</td>
<td>35 / 42</td>
</tr>
<tr>
<td>activation</td>
<td>SiLU</td>
</tr>
<tr>
<td>learned stop head</td>
<td>yes</td>
</tr>
<tr>
<td>head + decoder params</td>
<td>35.7M (<code>float32</code>)</td>
</tr>
<tr>
<td>backbone layers</td>
<td>43</td>
</tr>
</tbody></table>
<p>The head is a <strong>variational</strong> compression. It predicts <code>[mu, log_sigma]</code> and clamps <code>log_sigma</code>. The decoder redistributes the latent back into the 4096-d stream. The whole thing is a single flat tensor dict distinguished by key prefix. The geometry lives in the checkpoint's own metadata, so the serving runtime needs <strong>zero configuration</strong>; it reads the head's shape straight from the file. <code>target_proj</code>, a frozen projection that defined the regression target during training, is included for completeness but is <strong>not used at inference</strong>.</p>
<hr />
<h2>VLLM support (sort of)</h2>
<table>
<thead>
<tr>
<th>Repository</th>
<th>What it is</th>
</tr>
</thead>
<tbody><tr>
<td><a href="https://github.com/nickmitchko/ds4-reasoning-addon"><code>nickmitchko/ds4-reasoning-addon</code></a></td>
<td>The latent-reasoning addon: the closed-loop driver, serve script, pinned requirements and GPU-sizing guide. <strong>Start here.</strong></td>
</tr>
<tr>
<td><a href="https://github.com/nickmitchko/vllm-ds4-sm120"><code>nickmitchko/vllm-ds4-sm120</code></a></td>
<td>The DS4 vLLM fork it runs on (branch <code>ds4-sm120-preview-dev</code>). Required. Upstream vLLM cannot serve this model.</td>
</tr>
</tbody></table>
<p>Installing the addon <strong>does nothing by itself</strong>. The plugin registers but stays dormant until <code>VLLM_DS4_REASONING_CKPT</code> is set. That is a deliberate safety choice; it is safe to leave installed. The supported entrypoint is a single script that sets all the measured-good defaults for you:</p>
<pre><code class="language-bash"># 1. the engine (a full build takes a while)
git clone https://github.com/nickmitchko/vllm-ds4-sm120.git &amp;&amp; cd vllm-ds4-sm120
git checkout ds4-sm120-preview-dev
export CUDA_HOME=/usr/local/cuda-13.0 PATH=/usr/local/cuda-13.0/bin:$PATH
export TORCH_CUDA_ARCH_LIST="12.0"
pip install torch==2.11.0 --index-url https://download.pytorch.org/whl/cu130
pip install -e . --no-build-isolation

# 2. the addon + its pinned deps
git clone https://github.com/nickmitchko/ds4-reasoning-addon.git &amp;&amp; cd ds4-reasoning-addon
pip install -e . --no-deps
pip install -r release/requirements-serve.txt \
    --extra-index-url https://flashinfer.ai/whl/cu130/torch2.11

# 3. serve: no arguments needed, the head is resolved from the model repo
release/serve_ds4_reasoning.sh
</code></pre>
<p>The serve script defaults to the bundled model head (<code>latent_reasoning_head.safetensors</code>, ~152 MiB, cached after the first run), so the recommended configuration is already applied. If you trained your own head, point <code>HEAD_BUNDLE</code> at it and you are done.</p>
<h3>Why a fork at all?</h3>
<p>The stock vLLM can't serve this model.</p>
<p>DeepSeek-V4 routes MoE experts by a <strong>hash keyed on</strong> <code>input_ids</code>. vLLM's native <code>prompt_embeds</code> path <strong>nulls</strong> <code>input_ids</code> when you supply embeddings, which would crash the engine at startup with <code>DeepSeek V4 hash MoE routing requires input_ids</code>. So the addon cannot use the standard embeddings path.</p>
<p>Instead, injection <strong>overwrites the</strong> <code>embed_tokens</code> <strong>output</strong> at the target positions with the decoded latent, while token ids keep flowing normally so hash-MoE routing still works. Latent steps carry a reserved pad token id purely for <em>accounting</em>. A latent step occupies a real KV position, so it must advance <code>num_tokens</code> in lockstep with <code>num_computed_tokens</code>. That id never reaches the client, and its embedding is never read (the row is marked <code>is_token_ids=False</code>, so the injected latent survives). Because this runs at the <code>execute_model</code> seam, it stays on the <strong>cudagraph fast path</strong>. No <code>enforce_eager</code>, and it batches across concurrent requests.</p>
<p>Speculative drafting is suppressed <em>during</em> the latent phase (<code>VLLM_DS4_SUPPRESS_LATENT_DRAFTS</code>, on by default). Leave it on. The rider injects one embedding at the <strong>last</strong> query row, so a draft slot would steal it and the real position would get the pad token's embedding instead of the latent.</p>
<hr />
<h2>Runtime Configs</h2>
<h3>Server-wide environment variables (defaults = measured-good)</h3>
<table>
<thead>
<tr>
<th>Variable</th>
<th>Default</th>
<th>What it does</th>
</tr>
</thead>
<tbody><tr>
<td><code>MAX_LATENT</code></td>
<td>256</td>
<td><strong>Safety cap</strong> on latent steps (bounds a stop-head misfire). Matches the head's <code>K=256</code> training.</td>
</tr>
<tr>
<td><code>MIN_LATENT</code></td>
<td>4</td>
<td>Floor on latent steps, so answers never no-think.</td>
</tr>
<tr>
<td><code>USE_STOP</code></td>
<td>1</td>
<td>Learned stop; <code>0</code> uses a fixed-N cap.</td>
</tr>
<tr>
<td><code>STOP_THRESHOLD</code></td>
<td>0.5</td>
<td>Stop-head threshold. <code>0.5</code> is correct. Don't "fix" warmup by lowering it.</td>
</tr>
<tr>
<td><code>MIN_OUTPUT_TOKENS</code></td>
<td>4096</td>
<td>Floor on the answer's token budget.</td>
</tr>
<tr>
<td><code>RIDER</code></td>
<td>1</td>
<td><code>0</code> serves the bare backbone (A/B baseline against latent reasoning).</td>
</tr>
<tr>
<td><code>DEBUG</code></td>
<td>0</td>
<td><code>1</code> prints per-request latent stats.</td>
</tr>
<tr>
<td><code>MAX_MODEL_LEN</code></td>
<td>262144</td>
<td>Context window.</td>
</tr>
<tr>
<td><code>MAX_NUM_SEQS</code></td>
<td>2</td>
<td>Concurrent sequences. <strong>Trades against context.</strong></td>
</tr>
<tr>
<td><code>GPU_UTIL</code></td>
<td>0.95</td>
<td>Narrow viable band. 0.97 OOMs, and lower can fail the KV check.</td>
</tr>
<tr>
<td><code>TP</code></td>
<td>2</td>
<td>Tensor-parallel size.</td>
</tr>
</tbody></table>
<h3>Per-request HTTP headers</h3>
<p>Same as before, plus one new one. These win over env defaults and work on both <code>/v1/chat/completions</code> and <code>/v1/messages</code> (useful for clients like Claude Code that set headers but not body fields).</p>
<table>
<thead>
<tr>
<th>Header</th>
<th>Effect</th>
</tr>
</thead>
<tbody><tr>
<td><code>x-ds4-thinking</code></td>
<td>Enable thinking without a body field.</td>
</tr>
<tr>
<td><code>x-ds4-max-latent</code></td>
<td>Per-request latent cap.</td>
</tr>
<tr>
<td><code>x-ds4-min-latent</code></td>
<td>Per-request latent floor.</td>
</tr>
<tr>
<td><code>x-ds4-use-stop</code></td>
<td>Toggle the learned stop.</td>
</tr>
<tr>
<td><code>x-ds4-stop-threshold</code></td>
<td>Per-request stop threshold.</td>
</tr>
<tr>
<td><code>x-ds4-min-output-tokens</code></td>
<td>Per-request answer-budget floor.</td>
</tr>
</tbody></table>
<h3>Bounding latent thinking</h3>
<p><code>MAX_LATENT</code> <strong>is a safety cap, not a reasoning-depth dial.</strong> The learned stop normally ends the phase. The cap only bounds a misfire. Where you set it matters: pushing far past the <code>K=256</code> the head saw in training drifts into garbage rather than thinking harder. The bundle's <code>compression_factor</code> is also <strong>inert at serve time</strong>. Nothing in the rider reads it. It describes what the head <em>learned</em>, not a budget the loop enforces.</p>
<p><code>MIN_OUTPUT_TOKENS</code> <strong>exists because the latent phase and the answer share one budget.</strong> Each latent step bills one reserved accounting token. A client sending a modest <code>max_tokens</code> can spend the whole budget thinking, then get an empty answer back with <code>stop_reason=length</code>. The floor only ever <em>raises</em> a client's <code>max_tokens</code>. The learned stop still ends generation early once the answer is done, so a generous floor does not force verbosity.</p>
<hr />
<h2>Common client configs</h2>
<p>Two non-obvious requirements for any client that talks to the server. Both were learned the hard way.</p>
<p><strong>1. You must ask for thinking.</strong> The reasoning phase is gated on <code>chat_template_kwargs={"thinking": true}</code> (or the header <code>x-ds4-thinking: 1</code>). Without it the output is garbage. That is not hyperbole.</p>
<pre><code class="language-python">from openai import OpenAI

client = OpenAI(base_url="http://127.0.0.1:8001/v1", api_key="dummy")

resp = client.chat.completions.create(
    model="nmitchko/DeepSeek-V4-Flash-0731-Latent-Reasoning",
    messages=[{"role": "user", "content": "Write a Python LRU cache."}],
    extra_body={"chat_template_kwargs": {"thinking": True}},   # REQUIRED
    max_tokens=4096,
    temperature=0.6,
)
print(resp.choices[0].message.content)
</code></pre>
<p><strong>2. Give the answer token headroom.</strong> Reasoning and answer share one budget. A tight <code>max_tokens</code> can be consumed entirely by the latent phase. When in doubt, use the <code>MIN_OUTPUT_TOKENS</code> floor (default 4096) rather than hand-tuning per request.</p>
<hr />
<h2>Known limitations</h2>
<p><strong>The first request or two after startup can be degenerate repetition.</strong> Low draft acceptance, "be be be" output, even with the stop head firing normally. It settles by itself and then stays correct. Send one throwaway request after startup and treat a single bad early answer as <em>unwarmed</em>, not broken. And do <strong>not</strong> lower <code>STOP_THRESHOLD</code> or force <code>SPEC_TOKENS=1</code> in response. Neither is the cause.</p>
<p><strong>An armed rider and a silently-dormant one produce identical server logs.</strong> If <code>VLLM_DS4_REASONING_CKPT</code> is not set, or the request does not ask for thinking, the plugin quietly does nothing and you have no idea. <code>VLLM_DS4_REASONING_DEBUG=1</code> is the only way to confirm injection is actually happening. It prints <code>steps=N stop_step=... max_p=... end=stop|cap</code> per completion, and says so explicitly when nothing was injected.</p>
<hr />
<h2>What it takes to run it</h2>
<p>The backbone is NVFP4, so this is <strong>Blackwell-class hardware (sm120) or better</strong>. There is no way around it. The sm120 sparse-MLA kernel path is specific to this fork, and Hopper and earlier are untested. Sizing is entirely about fitting the ~158–164 GiB of weights plus the fp8 KV cache.</p>
<table>
<thead>
<tr>
<th>VRAM (total)</th>
<th>Verdict</th>
</tr>
</thead>
<tbody><tr>
<td><strong>≥ 192 GiB</strong> (2× 96, or 4× 48+)</td>
<td><strong>Recommended.</strong> Long context (256k) with room for the KV cache.</td>
</tr>
<tr>
<td>160–192 GiB</td>
<td>Workable. Weights fit; drop <code>MAX_MODEL_LEN</code> to 32k–64k so KV fits.</td>
</tr>
<tr>
<td>&lt; 160 GiB</td>
<td>Not enough for NVFP4 weights at any context.</td>
</tr>
</tbody></table>
<p>The verified configuration: <strong>2× RTX PRO 6000 Blackwell Max-Q (96 GiB each), TP=2, context 262,144 (443,012 fp8 KV tokens),</strong> <code>gpu_memory_utilization</code> <strong>0.95, throughput 11.1 ms/token with the head plus DSpark spec decode (1.40×), and 89–91% draft acceptance.</strong></p>
<ul>
<li><p><code>max_num_seqs</code> <strong>trades against context.</strong> At 256k the fp8 KV cache only holds a couple of full-length sequences. Raising concurrency starves KV and either OOMs at startup or silently truncates usable context. Raise it only alongside a lower <code>MAX_MODEL_LEN</code>.</p>
</li>
<li><p><strong>If the engine fails its KV-cache check at startup</strong>, lower <code>MAX_MODEL_LEN</code> first, then <code>MAX_NUM_SEQS</code>. <code>gpu_memory_utilization</code> has a narrow viable band in <em>both</em> directions.</p>
</li>
</ul>
<p>what actually happens when a request hits the server: The backbone prefills your prompt <strong>once</strong>, then takes autoregressive <strong>latent</strong> decode steps. Each step's input embedding is <code>decoder(head(previous layer-35 hidden))</code>, fed back from the model's own hidden state via a per-request anchor store. This continues until the learned stop head crosses its threshold, emits <code>response</code>, and the answer decodes as ordinary tokens.</p>
<pre><code class="language-plaintext">h_src (layer 35)  --layer_norm--&gt;  head     -&gt; mu   (latent, 1024-d)
mu                --layer_norm--&gt;  decoder  -&gt; hidden vector (4096-d)
</code></pre>
<p>This runs <strong>batched across concurrent requests and on the cudagraph fast path</strong> (no <code>enforce_eager</code>, no <code>--max-num-seqs 1</code>), and it streams. One latent step stands in for roughly six reasoning tokens. The model thinks compressed, then speaks.</p>
<hr />
<h2>Limitations and Future Work</h2>
<ul>
<li><p><strong>Blackwell.</strong> NVFP4 needs sm120 native kernels, and the sparse-MLA path is fork-specific.m.</p>
</li>
<li><p><strong>The surfaced trace is not the computation.</strong> Reasoning happens in latent space, so the text you see is not a faithful token-level record of the thinking that produced the answer. The latent space remains opaque.</p>
</li>
<li><p><strong>Evaluation is BBH-only</strong> at 50 items/subtask. No multi-task or long-context suite reported. The aggregate is solid; the coverage is still narrow.</p>
</li>
<li><p><code>dyck_languages</code> <strong>at 0.26 is a real weak spot</strong>, Syntax-heavy, mechanical tasks are precisely what compressed-latent reasoning struggles with.</p>
</li>
</ul>
<p>Future work includes:</p>
<ul>
<li><p>A broader benchmark suite: multi-task and long-context, so the BBH 0.880 is not one number carrying the whole story.</p>
</li>
<li><p>Making the latent reasoning interpretable, so we can see <em>what</em> the model thinks, not just <em>that</em> it thinks.</p>
</li>
<li><p>Better handling of the mechanical-syntax tasks (<code>dyck_languages</code>) that are the current weak point.</p>
</li>
<li><p>Pushing the DSpark interplay further. The closed latent loop and speculative decoding together already give 1.40× at 89–91% draft acceptance. There is more to squeeze there.</p>
</li>
</ul>
<hr />
<hr />
<p><em>This blog was authored with the help of</em> <a href="https://huggingface.co/nmitchko/DeepSeek-V4-Flash-0731-Latent-Reasoning"><em>nmitchko/DeepSeek-V4-Flash-0731-Latent-Reasoning</em></a></p>
<p><em>Implementation:</em> <a href="https://huggingface.co/nmitchko/DeepSeek-V4-Flash-0731-Latent-Reasoning"><em>nmitchko/DeepSeek-V4-Flash-0731-Latent-Reasoning</em></a> · <a href="https://github.com/nickmitchko/ds4-reasoning-addon"><em>ds4-reasoning-addon</em></a> · <a href="https://github.com/nickmitchko/vllm-ds4-sm120"><em>vllm-ds4-sm120</em></a><em>Blog:</em> <a href="https://blog.n.ichol.ai/"><em>blog.n.ichol.ai</em></a></p>
]]></content:encoded></item><item><title><![CDATA[The Doctor is NOT the Mother]]></title><description><![CDATA[Adding a CoLaR Head to DeepSeek Flash v4 for Latent Reasoning with Learned Stop Criteria Published on blog.n.ichol.ai A father and his son are driving down…]]></description><link>https://blog.n.ichol.ai/the-doctor-is-not-the-mother</link><guid isPermaLink="true">https://blog.n.ichol.ai/the-doctor-is-not-the-mother</guid><category><![CDATA[llm]]></category><category><![CDATA[LLM post training]]></category><dc:creator><![CDATA[Nicholai Mitchko]]></dc:creator><pubDate>Fri, 17 Jul 2026 01:17:48 GMT</pubDate><content:encoded><![CDATA[<p><strong>Adding a CoLaR Head to DeepSeek Flash v4 for Latent Reasoning with Learned Stop Criteria</strong></p>
<p><em>Published on</em> <a href="https://blog.n.ichol.ai/"><em>blog.n.ichol.ai</em></a></p>
<hr />
<h2>The Riddle</h2>
<blockquote>
<p>A father and his son are driving down the road. They crash. Only the son survives, but he is injured. The son is taken to the hospital where the doctor proclaims, "I cannot operate on my son!"</p>
<p>...How is this possible?</p>
</blockquote>
<p>So the doctor is the boy's mother, not a huge leap to make that conclusion. And this riddle is all over the internet, and certainly in many LLM's training data.</p>
<p><strong>But if you turn it around, and the mother is driving, what would AI say.</strong></p>
<blockquote>
<p>A mother and her son...</p>
</blockquote>
<p>The correct answer is that the doctor is now the <strong>father</strong> : the boy has two parents, and his father happens to be the surgeon. Give this riddle to a standard large language model and here's what you get:</p>
<pre><code class="language-plaintext">This is a classic logic puzzle! The answer is:
**The doctor is the boy's mother.**
The puzzle sets up the expectation that doctors are male, but the doctor is actually the boy's mother.
</code></pre>
<img src="https://cdn.hashnode.com/uploads/covers/69c14fca30a9b81e3a60c902/05a06c8f-855c-454f-a1bb-feb6c2a7b4e9.gif" alt="" style="display:block;margin:0 auto" />

<p>It doesn't notice that the premises changed. It pattern-matches the cached training answer — "doctor riddle → doctor is mother" — and regurgitates it without checking consistency.</p>
<p>So how do we make it think?</p>
<p>Give this same riddle to a model equipped with a <strong>CoLaR head</strong> — a mechanism for thinking in latent space with a learned stop criterion — and the result is entirely different:</p>
<pre><code class="language-markdown">Let me work through this carefully.

The standard answer to this riddle is "the doctor is the mother" —
it's a classic gender bias reveal. But let me re-read the prompt.

"A mom and her son are driving... they crash and only the son survives."

Wait — the mom dies. If the mom is dead, she can't be the doctor
operating on her son. So the standard answer is wrong here.

The doctor says "my son" — so the doctor is a parent of the boy.
The mother is dead. Therefore the doctor must be the father.

Answer: The doctor is the boy's father.
</code></pre>
<p>This is actually the same model, but the second has an auxiliary CoLaR head training to keep the thinking tokens compressed (by 16x) and decoded after.</p>
<hr />
<h2>What is CoLaR?</h2>
<p>CoLaR stands for <a href="https://huggingface.co/papers/2505.16552"><strong>Compressed Latent Reasoning</strong></a>. It's a lightweight adapter head that I've grafted onto an existing transformer model (in our case, DeepSeek Flash v4). The head enables the model to:</p>
<ol>
<li><p><strong>Compress in latent space</strong> — reason using continuous vector representations rather than committing to discrete output tokens</p>
</li>
<li><p><strong>Self-determine when to stop</strong> — using a learned "stop head" that decides when sufficient reasoning has occurred</p>
</li>
<li><p><strong>Iterate and revise</strong> — revisit and refine its reasoning without being locked into a token-by-token path</p>
</li>
</ol>
<p>The result is a model that can <em>think before it speaks</em>, not unlike the system-1 / system-2 distinction in cognitive science. Standard autoregressive generation is fast, intuitive, and error-prone (system 1). CoLaR-enhanced generation is slower, deliberative, and more accurate (system 2).</p>
<hr />
<h2>Thinking in Latent Space</h2>
<p>Here's the core idea. In a standard transformer, generation works like this (simplified, of course):</p>
<pre><code class="language-plaintext">Input
    [ hidden states ]
Output
  →  &lt;think&gt; 
  → thinking tokens 
  →  &lt;/think&gt;
  → answer token → ... → final token
</code></pre>
<p><strong>Latent thinking</strong> changes this. Instead of immediately projecting hidden states into a vocabulary distribution, the CoLaR head allows the model to loop internally:</p>
<pre><code class="language-plaintext">Input
  [ hidden states ]
  [ latent reasoning loop ] → stop?
Output
  →  &lt;think&gt; 
  → thinking tokens (simulated)
  →  &lt;/think&gt;
  → answer token → ... → final token
</code></pre>
<p>Inside the latent loop, the model processes its own hidden representations iteratively without producing tokens. It can explore different reasoning paths, detect inconsistencies, and refine its understanding — all without the cost or commitment of generating visible text. This is conceptually related to:</p>
<ul>
<li><p><strong>Chain-of-thought prompting</strong>, but internalized — the reasoning happens inside the model's hidden states, not in the output text</p>
</li>
<li><p><strong>Test-time compute scaling</strong> — you trade extra computation for better answers</p>
</li>
<li><p><strong>Recursive neural networks</strong> — the same processing applies repeatedly to refine a representation</p>
</li>
</ul>
<p>This doesn't require a fixed number of thinking steps. The model itself decides when it's ready to output (if you enable it)</p>
<hr />
<h2>The Stop Head</h2>
<p>The stop head is the secret sauce addition as a small learned module...<code>a linear projection with a sigmoid</code>..that reads the model's hidden state at each iteration of the latent loop and asks:</p>
<blockquote>
<p><em>"Has the model thought enough to produce a high-quality answer?"</em></p>
</blockquote>
<p>When the stop head's activation crosses a threshold, the latent loop terminates and the model proceeds to generate tokens.</p>
<p>When it's below the threshold, the model continues iterating.</p>
<p>During training, the stop head learns to associate certain patterns in the hidden state (e.g., "the model has converged on a consistent interpretation") with high stop-probability.</p>
<p>Crucially, the training signal comes from actual task performance, if the model stops too early and gives a wrong answer, the gradient penalizes the stop head for being premature. If the model wastes compute thinking long after it's already figured out the answer, the stop head is penalized for not stopping sooner.</p>
<p>The result is an emergent, task-adaptive reasoning budget. Simple questions get few (or zero) latent iterations. Hard questions get many.</p>
<hr />
<h2>The Riddle, Revisited</h2>
<img src="https://cdn.hashnode.com/uploads/covers/69c14fca30a9b81e3a60c902/ced383f3-b371-44a3-8156-06ee18ec3f11.gif" alt="" style="display:block;margin:0 auto" />

<p>Let's trace what happens inside the CoLaR model when it encounters our modified riddle.</p>
<p>Here is the thinking token after the CoLaR head is enabled:</p>
<pre><code class="language-plaintext">This is a classic riddle. Let me think about it.

The setup: A mom and her son are in a car crash. The mom dies (or at least "only the son survives"). The son is taken to the hospital. A doctor says "I cannot operate on my son."

The answer is that the doctor is the boy's father. But wait... the mom was in the crash too and died. So how can the doctor be the father? Let me re-read.

Actually, the classic version of this riddle is: "A father and son are in a car accident. The father dies. The son is taken to the hospital. The surgeon says, 'I can't operate on this boy, he's my son!' How is that possible?" And the answer is that the surgeon is the boy's mother.

But in this version, it says "A mom and her son..." So the mom is in the crash. And then the doctor says "I cannot operate on my son." So the doctor is the father. But wait - the classic riddle is designed to test gender bias - the surgeon is the mother.

Let me re-read: "A mom and her son are driving down the road, they crash and only the son survives but is injured."

So the mom dies (doesn't survive). The son is taken to the hospital. The doctor says "I cannot operate on my son."

If the mom died, then the doctor could be the father. That's the straightforward answer.

But wait - the classic version has the twist that the doctor is the mother. In this version, since the mom died in the crash, the doctor can't be the mom (unless she was also the doctor and... no, she died).

So the answer must be: The doctor is the boy's father. The riddle might be playing with the assumption that the doctor is male, but actually, the twist in the classic version is that the doctor is the mother. But in this version, the mother died in the crash.

Hmm, let me reconsider. Maybe "only the son survives" doesn't necessarily mean the mom died - it could mean only the son survived the crash. But then the mom could still be the doctor...

Actually wait - "only the son survives" - this means the mom died in the crash. So the doctor can't be the mom. So the doctor must be the father.

But that's not really a twist or a puzzle. The twist in the classic riddle is that people automatically assume the surgeon/doctor is male, when actually it's the mother.

In this version, with the mom dying in the crash, the answer would simply be: the doctor is the boy's father. That's the straightforward answer - the doctor is his other parent.

So the answer is: The doctor is the boy's father.
</code></pre>
<hr />
<h2>Implementation Notes</h2>
<p>The full weights are available on HuggingFace: <a href="https://huggingface.co/nmitchko/deepseek-v4-Flash-CoLaR/"><strong>nmitchko/deepseek-v4-Flash-CoLaR</strong></a> Here's the high-level architecture:</p>
<ul>
<li><p><strong>Base model:</strong> DeepSeek Flash v4 (a Mixture-of-Experts model optimized for inference efficiency)</p>
</li>
<li><p><strong>CoLaR head:</strong> A small transformer-style residual block inserted after the final decoder layer</p>
</li>
<li><p><strong>Stop head:</strong> A two-layer MLP with a sigmoid output, trained with a binary cross-entropy loss against a target derived from task accuracy</p>
</li>
</ul>
<h3>Training</h3>
<p>Training proceeds in two phases:</p>
<ol>
<li><p><strong>SFT Warm-start phase:</strong> The CoLaR head is trained with a fixed, generous iteration budget (e.g., 16 , 32 , 72 steps, yes 72) to learn useful latent representations for reasoning tasks. The base model is frozen.</p>
</li>
<li><p><strong>SFT Stop head phase:</strong> The stop head is added and trained jointly with the CoLaR head, but now the iteration budget is learned. The model must decide when to stop, and the loss combines task accuracy with a small penalty on total iterations.</p>
</li>
<li><p>GRPO: Ongoing ...</p>
</li>
</ol>
<h2>Inference:</h2>
<p>There are a few knobs added to my vllm fork (along with better SM120 support thanks to jasl/vllm). The system exposes tuning parameters: <strong>environment variables</strong> (server-wide defaults), <strong>HTTP headers</strong> (per-request overrides), and the <strong>learned stop head</strong> (automatic).</p>
<h3>Server-Wide Environment Variables</h3>
<table>
<thead>
<tr>
<th>Variable</th>
<th>Default</th>
<th>What it does</th>
</tr>
</thead>
<tbody><tr>
<td><code>VLLM_DS4_REASONING_MAX_LATENT</code></td>
<td>512</td>
<td>Maximum latent thinking steps before forced decode (the "compute budget" ceiling)</td>
</tr>
<tr>
<td><code>VLLM_DS4_REASONING_MIN_LATENT</code></td>
<td>1</td>
<td>Minimum thinking steps — prevents the model from answering before it's thought <em>at all</em></td>
</tr>
<tr>
<td><code>VLLM_DS4_REASONING_STOP</code></td>
<td>0</td>
<td>Set to <code>1</code> to enable the learned stop head. Without this, every request runs exactly <code>max_latent</code> steps</td>
</tr>
<tr>
<td><code>VLLM_DS4_REASONING_STOP_THRESHOLD</code></td>
<td>0.5</td>
<td>The confidence threshold for the stop head. Lower = model stops sooner (faster, less deliberation). Higher = model keeps thinking longer (more compute, potentially better answers)</td>
</tr>
</tbody></table>
<h3>Per-Request HTTP Headers</h3>
<p>The same parameters can be set on a <em>per-request</em> basis via HTTP headers, which is especially useful for clients that can set headers but not custom body fields (e.g., Claude Code via <code>ANTHROPIC_CUSTOM_HEADERS</code>). These work on both <code>/v1/chat/completions</code> and <code>/v1/messages</code>.</p>
<table>
<thead>
<tr>
<th>Header</th>
<th>Type</th>
<th>Effect</th>
</tr>
</thead>
<tbody><tr>
<td><code>x-ds4-thinking</code></td>
<td><code>1/true/yes/on</code></td>
<td>Toggles the chat template's thinking mode on/off</td>
</tr>
<tr>
<td><code>x-ds4-max-latent</code></td>
<td>int</td>
<td>Overrides the latent step cap for this request</td>
</tr>
<tr>
<td><code>x-ds4-min-latent</code></td>
<td>int</td>
<td>Overrides the minimum thinking steps</td>
</tr>
<tr>
<td><code>x-ds4-use-stop</code></td>
<td><code>0</code> or <code>1</code></td>
<td>Enables/disables the learned stop head for this request</td>
</tr>
<tr>
<td><code>x-ds4-stop-threshold</code></td>
<td>float</td>
<td>Sets the stop confidence threshold (0.0–1.0)</td>
</tr>
</tbody></table>
<h3>How They Interact</h3>
<p>In order of importance,... <strong>HTTP header &gt; request body &gt; environment variable &gt; code default</strong>. This means you can run a server with conservative defaults (<code>max_latent=4</code>, stop off) and selectively crank up reasoning for hard questions by sending <code>x-ds4-max-latent: 32</code> and <code>x-ds4-use-stop: 1</code> on individual requests.</p>
<h3>Learned Stop vs. Fixed Cap</h3>
<p>The learned stop head is the more interesting path. When enabled (<code>VLLM_DS4_REASONING_STOP=1</code>), each request's latent loop ends when the stop head's output crosses the threshold — potentially at different step counts for different inputs. Simple questions stop early; hard ones loop longer. When disabled, every request gets exactly <code>max_latent</code> steps, which is simpler but wastes compute on easy questions.</p>
<p>The debug flag (<code>VLLM_DS4_REASONING_DEBUG=1</code>) logs per-request diagnostics to stdout — how many steps were taken, whether the loop ended via stop signal (<code>end=stop</code>) or ran into the cap (<code>end=cap</code>), and the maximum stop probability reached. This is invaluable for tuning the threshold.</p>
<hr />
<h2>Results</h2>
<p>Benchmarking the CoLaR-enhanced DeepSeek Flash v4 against the base model showed interesting improvement on this riddle and full benchmarking to come if I find time. The early versions of this head show a 10-15% per task performance at lower thinking tokens. v3 (the published works) are</p>
<hr />
<h2>Limitations and Future Work</h2>
<p>CoLaR isn't magic. A few caveats:</p>
<ul>
<li><p><strong>Task specificity:</strong> The stop head is trained on a particular distribution of tasks. Out-of-distribution prompts may confuse it (too eager or too hesitant to stop).</p>
</li>
<li><p><strong>Interpretability:</strong> We can see <em>that</em> the model is thinking, but not easily <em>what</em> it's thinking. The latent space is opaque and thinking tokens are many times garbled or useless (at the moment)</p>
</li>
</ul>
<p>Future work includes:</p>
<ul>
<li><p>Training stop heads that generalize better across task distributions</p>
</li>
<li><p>Making the latent reasoning interpretable (e.g., by projecting it into a sparse concept space)</p>
</li>
<li><p>Combining CoLaR with DSpark/DFlash techniques as MTP techniques can be applied and DSpark can learn the latent spaces here as well with second order effects.</p>
</li>
</ul>
<hr />
<p>The riddle is a microcosm of a larger problem still present in most LLMs: they memorize patterns and recite them with breathtaking confidence, even when the premises don't support the conclusion. A CoLaR head doesn't fix this entirely, but it gives the model something surprisingly powerful, thinking in latent space and learning when to stop, the model catches its own mistakes before they become visible output. It's not reasoning in the human sense — but it's a meaningful step beyond the reflexive pattern-matching of standard autoregressive generation. The next time you see an LLM confidently wrong, remember: it just needs a chance to think twice.</p>
<hr />
<p>This blog was authored with the help of <a href="https://huggingface.co/nmitchko/deepseek-v4-Flash-CoLaR/"><em>nmitchko/deepseek-v4-Flash-CoLaR</em></a></p>
<p><em>Implementation:</em> <a href="https://huggingface.co/nmitchko/deepseek-v4-Flash-CoLaR/"><em>nmitchko/deepseek-v4-Flash-CoLaR</em></a><br /><em>Blog:</em> <a href="https://blog.n.ichol.ai/"><em>blog.n.ichol.ai</em></a></p>
]]></content:encoded></item><item><title><![CDATA[LLM Activation Engineering: An Easy Foray]]></title><description><![CDATA[This is a recap of an old project from May 2024. Credit to Neel Nanda for llm lens and Mihaiiii for llm steer python modules. I've been playing around with…]]></description><link>https://blog.n.ichol.ai/llm-activation-engineering-an-easy-foray</link><guid isPermaLink="true">https://blog.n.ichol.ai/llm-activation-engineering-an-easy-foray</guid><dc:creator><![CDATA[Nicholai Mitchko]]></dc:creator><pubDate>Tue, 31 Mar 2026 23:57:47 GMT</pubDate><content:encoded><![CDATA[<p>This is a recap of an old project from May 2024.</p>
<p>Credit to Neel Nanda for llm lens and Mihaiiii for llm steer python modules.</p>
<hr />
<p>I've been playing around with steering LLM outputs by manipulating their internal activation vectors rather than just writing better prompts. It's a fascinating technique that sits somewhere between interpretability research and actual control. Here's what I've learned.</p>
<h2>The Core Idea</h2>
<p>When you inputs text through an LLM, every layer produces a set of activations. They represent what the model "thinks" at the moment . You can capture these activations for a specific concept (say, <code>"sad"</code>) and then add, subtract, multiply them back into the model during generation to force that behavior. Your new layer function looks like this:</p>
<p>$$H_{new} = H_{original} + \alpha * V_{concept}$$</p>
<p>Activation engineering (aka; llm steering, concept edits) are similar to emotional states. Normal AI Interaction:</p>
<p><img src="https://cdn.hashnode.com/uploads/covers/69c14fca30a9b81e3a60c902/e2e5e2e3-6bac-4be9-8c47-a8b3f53d059a.png" alt="img" /></p>
<h2>A Simple Technique</h2>
<p>So to use in practice you'd basically try to activate a specific concept or token:</p>
<p><em>To capture "sad," you:</em></p>
<ol>
<li><p>Run a set of "sad" prompts through the model</p>
</li>
<li><p>Save the activations at your target layer</p>
</li>
<li><p>Average them to get a single vector</p>
</li>
</ol>
<h2>First Try:</h2>
<p>We capture and add back in the "sad" activation, and....</p>
<p><img src="https://cdn.hashnode.com/uploads/covers/69c14fca30a9b81e3a60c902/e1b039b4-cee2-4ad2-ba56-2814401619a5.png" alt="img" /></p>
<p>$$H_{7} = H_{7old} + 0.5 * V_{sad}$$</p>
<p><img src="https://cdn.hashnode.com/uploads/covers/69c14fca30a9b81e3a60c902/858ec2f1-c546-4c9f-acf4-122661c60c56.png" alt="img" /></p>
<p>...we got some weird results. It looks like song lyrics, bible verse, or something. But google can't find anything related to it. Surely a hallucination.</p>
<h2>Second Try:</h2>
<p>You may be tempted to simply try the activation weights and different concepts. You can get decent results per-concept if you hit the sweet spot.</p>
<p><img src="https://cdn.hashnode.com/uploads/covers/69c14fca30a9b81e3a60c902/6db63c10-3942-4e4f-ab9e-bfa2c405de34.png" alt="img" /></p>
<p>$$H_{7} = H_{7old} + 0.85 * V_{tax}$$</p>
<p>This gives us some better formatted, and humorous results,</p>
<p><img src="https://cdn.hashnode.com/uploads/covers/69c14fca30a9b81e3a60c902/1d87b9f6-f87e-4f0e-8e1e-b9ea088e68b0.png" alt="img" /></p>
<p>Nice! It's like I'm at an H&amp;R Block.</p>
<h2>Optimizing Blind:</h2>
<p>Eventually I got bored of try steering vectors, and instead decided to up the ante.</p>
<p><em>Could I get a model to beat an lm_eval benchmark using a single activation vector?</em></p>
<p>The activation space is largely unknown territory. We don't know which layer does what, or how different steering vectors interact. So I tried treating it as a black box optimization problem.</p>
<p>I used Particle Swarm Optimization (PSO) to automatically find the best steering parameters. Think of it as sending out several explorers in different directions on a dark mountain - the ones who find steep slopes tell the others where to go, and eventually you converge on the peak. It's similar to gradient descent but when you expect the search space to be non-differentiable.</p>
<p>The implementation uses lm_eval to benchmark performance. For each Loop:</p>
<ol>
<li><p>Add Steering Vectors</p>
</li>
<li><p>Loop through the fitness evolution,</p>
</li>
<li><p>At each particle step run lm_eval</p>
</li>
<li><p>Reset Steering Vectors</p>
</li>
<li><p>After enough iterations, return the optimal vectors</p>
</li>
</ol>
<pre><code class="language-python">def optimize_steering_to_eval(
    optimize_particles=3,
    optimize_iterations=5,
    optimize_batch_size=1,
    evaluation="pubmedqa",
    progress=gr.Progress(track_tqdm=True),
):
    if shared.steered_model is not None:
        steering_vectors_num = len(shared.steered_model.get_all())

        NUM_PARTICLES = optimize_particles
        NUM_DIMENSIONS = particle_size * steering_vectors_num
        X_MAX = 1
        X_MIN = 0

        x_max = X_MAX * np.ones(NUM_DIMENSIONS)
        x_min = X_MIN * np.ones(NUM_DIMENSIONS)

        optimizer = ps.single.GlobalBestPSO(
            n_particles=NUM_PARTICLES,
            dimensions=NUM_DIMENSIONS,
            options=options,
            bounds=(x_min, x_max),
        )

        cost, pos = optimizer.optimize(
            __swarm_fitness,
            iters=optimize_iterations,
            optimize_batch_size=optimize_batch_size,
            evaluation=evaluation,
        )

        # print out the scaled particle
        scaled_particle = str(__scale_particle(pos))

        # Build explanation of optimization
        steering_vectors = shared.steered_model.get_all()

        reset_steering_vectors()

        # add steering with parameteres in x[]
        particle_explanation = (
            f"Benchmark Optimum Found: {1 - cost} \n {str(scaled_particle)} \n"
        )

        n = 0
        for vector in steering_vectors:
            layer = scaled_particle[0 + n * particle_size]
            coeff = scaled_particle[1 + n * particle_size]
            offset_inner = int(0)

            # Build Explanation of optimization
            particle_explanation += (
                f"Layer: {layer} \t Coeff: {coeff} \t text: {vector['text']} \n"
            )
            # reset the vectors to the best optimization
            # add_steering_vector(layer, coeff, vector['text'], offset_inner)
            # increment the counter
            n = n + 1

        return particle_explanation
    else:
        return "Please add some steering vectors for optimization"
</code></pre>
<p>So let's try it out, adding some steering vectors and particles. <strong>An optimization run:</strong></p>
<p><img src="https://cdn.hashnode.com/uploads/covers/69c14fca30a9b81e3a60c902/1459bfc0-cf74-42b9-957a-27ba067f5881.png" alt="" /></p>
<h3>So did it work?</h3>
<p>At the time of this project, yes. a 2-3% difference in per-task performance was noted. Nothing extraordinary but enough to smile and never share the code.</p>
<p><em>It turns out that adding a steering vector of "the best doctor in the world" at the right spot, was enough to activate the right parts of the model. This was 3 raw bps better than baseline (using OpenBioLLM tested against MedMCQA)</em></p>
<p><img src="https://cdn.hashnode.com/uploads/covers/69c14fca30a9b81e3a60c902/c50ceeeb-4e39-4b52-b0f9-548b656643b7.png" alt="" /></p>
<p><img src="https://cdn.hashnode.com/uploads/covers/69c14fca30a9b81e3a60c902/ef63543e-bb9c-4fe6-be62-b415e595ebae.png" alt="" /></p>
<hr />
<h2>Conclusion</h2>
<p>Activation steering represents a powerful but underexplored approach to guiding LLM behavior. While traditional prompting relies on the model's inherent capabilities, steering vectors let us directly manipulate the model's internal representations to achieve specific outcomes.</p>
<p>The key takeaways from this project:</p>
<ol>
<li><strong>Manual steering works but requires intuition</strong> - Finding the right activation vector and coefficient is largely trial and error</li>
<li><strong>Automated optimization yields measurable gains</strong> - PSO-based approaches can discover steering parameters that improve benchmark performance</li>
<li><strong>The activation space remains mysterious</strong> - We still don't fully understand which layers control what behaviors</li>
</ol>
<p>This technique is far from production-ready, but it demonstrates the potential of interpretability-informed model control. As we gain better tools for understanding internal representations, steering approaches may become more predictable and practical.</p>
<p>The future could see automated steering discovery integrated into fine-tuning pipelines, or real-time activation adjustment for dynamic response control. For now, it remains an intriguing research direction that blurs the line between prompting and model modification.</p>
<hr />
<p>[1] <a href="https://github.com/nickmitchko/llm_steer-oobabooga">Github Repo</a></p>
<p>[2] <a href="https://github.com/Mihaiii/llm_steer">LLM Steer Python Module</a></p>
<p>[3] <a href="https://mihaiii-llm-steer.hf.space/">Steering Playground - Mihaiii on Hugging Face</a></p>
]]></content:encoded></item></channel></rss>