Get a model packaged, verified, and running in under five minutes.
Option A: From release (no Rust) — Download Releases (coelanox-linux-x86_64.tar.gz or coelanox-windows-x86_64.zip), extract, add to PATH. Run ./install.sh on Linux/macOS or add the folder to PATH.
Option B: From source — Rust stable. cd coelanox && cargo build --release -p coelanox-cli. Or: cargo install --path coelanox/coelanox-cli.
coelanox package -i model.onnx -o model.cnox --target cpu
Example output:
✅ Plugin manager initialized
✅ Packaged model written to model.cnox
For a demo model (ResNet-tiny-MNIST bundle):
coelanox package -i resnet_tiny_mnist.bin -o resnet.cnox -m cv --use-demo-translator --target cpu
coelanox verify -f model.cnox
Example output (success):
✅ Container integrity verified
Example output (tampered):
❌ Security validation failed: hash mismatch
# With input file (JSON array of f32)
coelanox run -f model.cnox -i input.json -o output.json
# With dummy input (for testing)
coelanox run -f model.cnox -o output.json
Example output:
✅ Container integrity verified
✅ Inference completed
Output written to output.json
output.json is a JSON array of f32 floats (flattened outputs). For serve (binary IPC), benchmark text vs JSON, and how to turn floats into human-readable text in your app, see INTEGRATION_OUTPUT.md.
coelanox info -f model.cnox
Shows: manifest, input/output shapes, sizes, workspace requirements.
# Generate keypair
coelanox keygen -o ./keys
# Package with signing
coelanox package -i model.onnx -o model.cnox --signing-key keys/secret.bin
# Verify with trusted key
coelanox verify -f model.cnox --trusted-key keys/public.bin
# Run with trusted key
coelanox run -f model.cnox -o out.json --trusted-key keys/public.bin
| Issue | Fix |
|---|---|
Package fails with "No plugin" or format error | Ensure ONNX feature: build with --features onnx-protobuf or use a demo model with --use-demo-translator |
Verify reports hash mismatch | Container is corrupted or tampered; re-download or re-package from a trusted source |
Run is slow | Scalar fallback is in use; place .clfc files in ~/.coelanox/clf/clfc/ for SIMD, or expect scalar for --fallback-only packages |
Run fails with "workspace" or "scratch" | Model needs more memory; use --max-workspace-mb at package or run time |
With CLF in ~/.coelanox/clf/clfc/, full CLF path matches or slightly beats scalar (~56–61 ms cold). Scalar fallback: ~57–66 ms. See Operations for CLF path setup.