bupalinyu commited on
Commit
f2c72e6
路
verified 路
1 Parent(s): e1737fc

docs: say what the vision encoder is and how to turn it on

Browse files
Files changed (1) hide show
  1. README.md +38 -0
README.md CHANGED
@@ -453,6 +453,44 @@ and then serves OpenAI- and Anthropic-compatible endpoints:</p>
453
  <p>猬囷笍 <strong>Download:</strong> <strong><a href="https://github.com/Edge0-AI/Edge0/releases">GitHub Releases</a></strong></p>
454
  <p>Open <strong>Edge0 Chat</strong> on Windows and choose a model folder, such as <code>Edge0-120B-NVFP4</code>, to run the model locally. To build the app from source, follow the <a href="https://github.com/Edge0-AI/Edge0/blob/main/edge0-infer/examples/desktop/README.md">Edge0 Chat</a> guide.</p>
455
  </details>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
456
  <p><a name="memory-update"></a>
457
  <a name="deployment-qa"></a>
458
  <a name="memory-deployment"></a>
 
453
  <p>猬囷笍 <strong>Download:</strong> <strong><a href="https://github.com/Edge0-AI/Edge0/releases">GitHub Releases</a></strong></p>
454
  <p>Open <strong>Edge0 Chat</strong> on Windows and choose a model folder, such as <code>Edge0-120B-NVFP4</code>, to run the model locally. To build the app from source, follow the <a href="https://github.com/Edge0-AI/Edge0/blob/main/edge0-infer/examples/desktop/README.md">Edge0 Chat</a> guide.</p>
455
  </details>
456
+ <details open>
457
+ <summary><b>Images</b> 路 the vision encoder in this folder</summary>
458
+ <p><code>mmproj-BF16.gguf</code> is the vision encoder. It turns a picture into the embedding rows
459
+ the language model reads; the language model itself is unchanged. Two entries in <code>model.json</code> wire it in,
460
+ next to <code>args</code>:</p>
461
+ <pre><code class="language-json">"exe": "/path/to/strata",
462
+ "vision": {
463
+ "exe": "/path/to/strata-vision",
464
+ "mmproj": "./mmproj-BF16.gguf",
465
+ "model": "./model-skeleton.gguf",
466
+ "gpu": false,
467
+ "max_tokens": 1024
468
+ }
469
+ </code></pre>
470
+ <ul>
471
+ <li><code>strata-vision</code> ships with the engine build, in the same folder as the engine.</li>
472
+ <li><code>"model"</code> is the text backbone this folder already uses.</li>
473
+ <li><code>"gpu": false</code> runs the encoder on the CPU and takes no VRAM. <code>true</code> runs it on the card and
474
+ keeps about 1.4 GB free for it, so the expert cache gets that much less.</li>
475
+ <li><code>"max_tokens"</code> caps how many tokens one picture becomes. More keeps more detail and takes longer.</li>
476
+ </ul>
477
+ <p>Add <code>--vision</code> to <code>"args"</code> as well. The server adds it by itself when the config has a
478
+ <code>vision</code> section and prints a line saying so; writing it keeps the two in step.</p>
479
+ <p>The log says <code>images on</code> once the encoder is up. Then send a picture: <code>/image /path/to.png</code>
480
+ followed by the question in the terminal chat, or an <code>image_url</code> part over the OpenAI API. That part takes a
481
+ <code>data:</code> URL, an <code>http(s)</code> URL or a local file path.</p>
482
+ <pre><code class="language-bash">curl localhost:8000/v1/chat/completions -H 'content-type: application/json' -d '{
483
+ "model": "edge0_120b",
484
+ "messages": [{"role": "user", "content": [
485
+ {"type": "text", "text": "What does this picture show?"},
486
+ {"type": "image_url", "image_url": {"url": "data:image/png;base64,&lt;base64&gt;"}}
487
+ ]}],
488
+ "max_tokens": 256
489
+ }'
490
+ </code></pre>
491
+ <p>Add <code>"reasoning_effort": "none"</code> to get the answer without a thinking pass first; otherwise the reply can
492
+ come back empty with the token budget spent on the reasoning.</p>
493
+ </details>
494
  <p><a name="memory-update"></a>
495
  <a name="deployment-qa"></a>
496
  <a name="memory-deployment"></a>