anerinck/moments-ai
ONNX Model Suite for the moments-ai Server
2 min readupdated
The repository provides ready-to-run ONNX versions (universal format for fast model inference) of popular visual AI models, prepared specifically for the moments-ai server (Moments app). Instead of manual weight conversion, users get three configured models: two for text-image search and matching (CLIP) based on Google SigLIP 2, and one for NSFW content classification based on a Falconsai model. Weights are converted without changes relative to the originals and include checksums and reference outputs for validation. This build is useful for anyone deploying moments-ai or looking for verified ONNX exports of SigLIP 2 and the unsafe content detector.
Key features
- Three models in one repository:
siglip2-base-patch16-256,siglip2-so400m-patch16-384, andnsfw-vit-base-patch16-224. - ONNX format with separation into individual
vision.onnxandtext.onnxgraphs for CLIP models. - Each folder contains a
model.jsonwith preprocessing settings and reference outputs for backend self-checking. - All files include SHA-256 checksums and are distributed under the permissive Apache-2.0 license.
What you can do
- Connect the repository directly to the moments-ai server via an environment variable to automatically download models on first launch.
- Use
siglip2-baseor the largersiglip2-so400min your ONNX pipelines for semantic photo archive search. - Integrate
nsfw-vit-base-patch16-224as a lightweight image moderation filter without PyTorch dependencies.
Example
MOMENTS_AI_MODEL_URL=hf://anerinck/moments-ai@Read more
DetailsOriginal models: google/siglip2-base-patch16-256, google/siglip2-so400m-patch16-384, and Falconsai/nsfw_image_detection.
Converted using the tools/export utility from the moments-ai project without modifying source weights.
License: Apache-2.0.










Comments