bupalinyu commited on
Commit
166f4ec
路
verified 路
1 Parent(s): 8bbf976

docs: say where strata-vision comes from

Browse files
Files changed (1) hide show
  1. README.md +12 -5
README.md CHANGED
@@ -458,16 +458,23 @@ and then serves OpenAI- and Anthropic-compatible endpoints:</p>
458
  <summary><b>Images</b> 路 the vision encoder in this folder</summary>
459
  <p><code>mmproj-BF16.gguf</code> is the vision encoder: it turns a picture into the embedding rows the language model
460
  reads, and the language model itself is unchanged. Reading pictures also needs a small helper program,
461
- <code>strata-vision</code>. That program is <strong>not</strong> in this repository and the Edge0 source tree does not
462
- build it, so it comes from one of these two places:</p>
463
  <ul>
464
  <li><strong>The prebuilt engine archive.</strong> <code>setup.py</code> and <code>strata launch</code> download one and
465
  unpack <code>strata</code> and <code>strata-vision</code> side by side, so an install that ran with <code>--vision</code>
466
  already has the helper next to the engine.</li>
467
- <li><strong>Building it.</strong> Take a Strata source checkout (the <code>tools/vision</code> project lives there, not
468
- in Edge0) and run <code>cmake --build build-vision --target strata-vision</code>, then put the result next to
469
- <code>strata</code>.</li>
470
  </ul>
 
 
 
 
 
 
 
 
 
 
 
471
  <p>Then two entries in <code>model.json</code>, next to <code>args</code>:</p>
472
  <pre><code class="language-json">"exe": "/path/to/strata",
473
  "vision": {
 
458
  <summary><b>Images</b> 路 the vision encoder in this folder</summary>
459
  <p><code>mmproj-BF16.gguf</code> is the vision encoder: it turns a picture into the embedding rows the language model
460
  reads, and the language model itself is unchanged. Reading pictures also needs a small helper program,
461
+ <code>strata-vision</code>. It comes from one of these two places:</p>
 
462
  <ul>
463
  <li><strong>The prebuilt engine archive.</strong> <code>setup.py</code> and <code>strata launch</code> download one and
464
  unpack <code>strata</code> and <code>strata-vision</code> side by side, so an install that ran with <code>--vision</code>
465
  already has the helper next to the engine.</li>
 
 
 
466
  </ul>
467
+ <p>Or build its source, which is in this repository at <code>edge0-strata/tools/vision/</code>. It is a separate CMake
468
+ project that the main build does not compile, and it needs a llama.cpp checkout at the engine's pinned commit
469
+ (<code>third_party/llama.cpp</code> is not vendored; a tree whose main CMake fetched it has one under
470
+ <code>build/_deps/strata_llamacpp-src</code>):</p>
471
+
472
+ ```sh
473
+ cmake -S edge0-strata/tools/vision -B build-vision -DLLAMA_DIR=/path/to/llama.cpp
474
+ cmake --build build-vision --target strata-vision
475
+ ```
476
+
477
+ <p>Put the result next to <code>strata</code>.</p>
478
  <p>Then two entries in <code>model.json</code>, next to <code>args</code>:</p>
479
  <pre><code class="language-json">"exe": "/path/to/strata",
480
  "vision": {