rlx-vision
NomicVision encoder graph builder for RLX — the image tower behind nomic-ai/nomic-embed-vision-v1.5 (a ViT: 768-dim, 12 layers, 224px, patch size 16, CLS pooling). It shares an embedding space with rlx-nomic's text tower.
Like its siblings, this crate only builds the graph. Preprocessing, compiling, running, and pooling live in rlx-embed.
Public API
use ;
use NomicVisionConfig;
use WeightMap;
let built = build_nomic_vision_built?;
// or the configurable builder:
let built = new.build?;
# Ok
NomicVisionFlow/build_nomic_vision_built(cfg, w, batch) -> NomicVisionBuilt— patch embedding →repeat_vision_layers(ViT blocks) →hidden_states, via nativerlx_flow::ModelFlow.NomicVisionBuilt— theBuiltModelplus the extractedVisionPreprocessWeights(patch-embed / normalization constants pulled from the checkpoint).build_vision_graph_sized— loweredGraphfor inspection.
The graph takes preprocessed pixel values and produces per-patch hidden_states; the CLS token is pooled downstream into a 768-dim image embedding.
Build & test
To embed images end-to-end (preprocess → compile → CLS pool), use rlx-embed.
License
GPL-3.0-only. © 2026 Eugene Hauptmann, Nataliya Kosmyna.