<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Mathux  - Modifications récentes [fr]</title>
		<link>https://mathux.org/wiki/Sp%C3%A9cial:Modifications_r%C3%A9centes</link>
		<description>Suivez les dernières modifications du wiki dans ce flux.</description>
		<language>fr</language>
		<generator>MediaWiki 1.45.3</generator>
		<lastBuildDate>Wed, 15 Apr 2026 12:38:51 GMT</lastBuildDate>
		<item>
			<title>Opencode</title>
			<link>https://mathux.org/mediawiki/index.php?title=Opencode&amp;diff=4315&amp;oldid=4309</link>
			<guid isPermaLink="false">https://mathux.org/mediawiki/index.php?title=Opencode&amp;diff=4315&amp;oldid=4309</guid>
			<description>&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://mathux.org/mediawiki/index.php?title=Opencode&amp;amp;diff=4315&amp;amp;oldid=4309&quot;&gt;Voir les modifications&lt;/a&gt;</description>
			<pubDate>Wed, 18 Mar 2026 22:50:37 GMT</pubDate>
			<dc:creator>Mathieu</dc:creator>
			<comments>https://mathux.org/wiki/Discussion:Opencode</comments>
		</item>
		<item>
			<title>Opencode</title>
			<link>https://mathux.org/mediawiki/index.php?title=Opencode&amp;diff=4309&amp;oldid=0</link>
			<guid isPermaLink="false">https://mathux.org/mediawiki/index.php?title=Opencode&amp;diff=4309&amp;oldid=0</guid>
			<description>&lt;p&gt;Page créée avec « === Find a suitable model that fit in RAM === https://ollama.com/search list model size on disk, not on VRAM.  Also find a model that can think and run tools ( this may help https://www.canirun.ai/ )   Model take VRAM size, but context size also. As stated here, we may have to increase context size to 16k-32k.  https://opencode.ai/docs/fr/providers/#ollama  ==== Increase model&amp;#039;s context size ==== &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt; ollama run qwen3.5:2b     &amp;gt;&amp;gt;&amp;gt; /set pa... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== Find a suitable model that fit in RAM ===&lt;br /&gt;
https://ollama.com/search list model size on disk, not on VRAM.&lt;br /&gt;
&lt;br /&gt;
Also find a model that can think and run tools ( this may help https://www.canirun.ai/ )&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Model take VRAM size, but context size also. As stated here, we may have to increase context size to 16k-32k.&lt;br /&gt;
&lt;br /&gt;
https://opencode.ai/docs/fr/providers/#ollama&lt;br /&gt;
&lt;br /&gt;
==== Increase model&amp;#039;s context size ====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
ollama run qwen3.5:2b   &lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; /set parameter num_ctx 32768&lt;br /&gt;
&lt;br /&gt;
Set parameter &amp;#039;num_ctx&amp;#039; to &amp;#039;32768&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; /save qwen3.5:2b-32k&lt;br /&gt;
&lt;br /&gt;
Created new model &amp;#039;qwen3.5:2b-32k&amp;#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Check if it fits in VRAM ====&lt;br /&gt;
Run the model:&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
ollama run qwen3.5:2b-32k&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Then check CPU vs GPU usage. It should be 100% GPU to stay fast&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
ollama ps&lt;br /&gt;
NAME              ID              SIZE      PROCESSOR    CONTEXT    UNTIL              &lt;br /&gt;
qwen3.5:2b-32k    094e78c5fe51    5.1 GB    100% GPU     32768      4 minutes from now&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Opencode ===&lt;br /&gt;
in ~/.config/opencode/config.json&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;$schema&amp;quot;: &amp;quot;https://opencode.ai/config.json&amp;quot;,&lt;br /&gt;
  &amp;quot;provider&amp;quot;: {&lt;br /&gt;
    &amp;quot;ollama&amp;quot;: {&lt;br /&gt;
      &amp;quot;name&amp;quot;: &amp;quot;Ollama (spacemarine)&amp;quot;,&lt;br /&gt;
      &amp;quot;npm&amp;quot;: &amp;quot;@ai-sdk/openai-compatible&amp;quot;,&lt;br /&gt;
      &amp;quot;options&amp;quot;: {&lt;br /&gt;
        &amp;quot;baseURL&amp;quot;: &amp;quot;http://192.168.0.24:11434/v1&amp;quot;&lt;br /&gt;
      },&lt;br /&gt;
      &amp;quot;models&amp;quot;: {&lt;br /&gt;
        &amp;quot;qwen3.5:2b-32k&amp;quot;: {&lt;br /&gt;
          &amp;quot;tools&amp;quot;: true&lt;br /&gt;
        }&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</description>
			<pubDate>Wed, 18 Mar 2026 09:54:05 GMT</pubDate>
			<dc:creator>Mathieu</dc:creator>
			<comments>https://mathux.org/wiki/Discussion:Opencode</comments>
		</item>
		<item>
			<title>Accueil</title>
			<link>https://mathux.org/mediawiki/index.php?title=Accueil&amp;diff=4308&amp;oldid=4032</link>
			<guid isPermaLink="false">https://mathux.org/mediawiki/index.php?title=Accueil&amp;diff=4308&amp;oldid=4032</guid>
			<description>&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Tips&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 18 mars 2026 à 11:39&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l26&quot;&gt;Ligne 26 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 26 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Nintendo DSI XL fix]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Nintendo DSI XL fix]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[opencode|Opencode on local models]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Vovinam Viet Vo Dao ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Vovinam Viet Vo Dao ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[vovinam|Techniques, Quyens, ...]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[vovinam|Techniques, Quyens, ...]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikimedia:diff:1.41:old-4032:rev-4308:php=table --&gt;
&lt;/table&gt;</description>
			<pubDate>Wed, 18 Mar 2026 09:39:58 GMT</pubDate>
			<dc:creator>Mathieu</dc:creator>
			<comments>https://mathux.org/wiki/Discussion:Accueil</comments>
		</item>
</channel></rss>