Skip to main content

Module weights

Module weights 

Source
Expand description

Swarm W — production weight bundle + encoder/detector backend.

Native QVWT format (Qualia Vision Weights): mmap-friendly flat f32 tables. Offline conversion from GGUF/P64 may write this format; no Python at runtime.

Honest labels: VisionBackendKind::ProductionWeights only when a bundle is loaded. Seed-built fixtures are regenerable test weights, not a third-party foundation model.

Vendor pack (MIT/Apache ONNX/TFLite): see resolve_vision_asset() — PermissiveReady, never commercial-licence gated. States: WeightAbsent / AdapterMissing.

Re-exports§

pub use load_litert_bytes::load_litert_file;
pub use load_litert_bytes::validate_litert_bytes;
pub use load_litert_bytes::LiteRtFileMeta;
pub use load_litert_bytes::LiteRtLoadError;
pub use load_litert_bytes::LITER_TFLITE_MAGIC;
pub use load_onnx_bytes::load_onnx_file;
pub use load_onnx_bytes::validate_onnx_bytes;
pub use load_onnx_bytes::OnnxFileMeta;
pub use load_onnx_bytes::OnnxLoadError;
pub use onnx_session::probe_onnx_asset;
pub use onnx_session::sface_infer_rgb8;
pub use onnx_session::yunet_infer_rgb8;
pub use onnx_session::OnnxSessionError;
pub use onnx_session::OnnxSessionInfo;
pub use resolve_vision_asset::resolve_vision_asset;
pub use resolve_vision_asset::AssetLicenceTag;
pub use resolve_vision_asset::ResolvedAsset;
pub use resolve_vision_asset::VisionAssetError;
pub use resolve_vision_asset::VisionAssetId;

Modules§

load_litert_bytes
Cold-path Google LiteRT (TFLite / FlatBuffers) model file validation.
load_onnx_bytes
Cold-path ONNX file validation (no runtime inference).
onnx_session
Optional ONNX Runtime session (feature ort).
resolve_vision_asset
Locate a MANIFEST-listed vision weight on disk (caller supplies roots).

Structs§

ProductionVision
Production path: image features → projection → linear head → whole-image or grid cells.
VisionWeightBundle
On-disk / in-memory vision weight bundle.

Enums§

VisionBackendKind
Which detector path is active (product must label this).

Constants§

QVWT_MAGIC
File magic: QVWT little-endian.
QVWT_VERSION