rlx-onnx-import 0.2.5

ONNX → RLX HIR import (bundle loader, ONNX protobuf, op lowering)
docs.rs failed to build rlx-onnx-import-0.2.5
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

rlx-onnx-import

ONNX → rlx-ir HIR lowering used by rlx-onnx native execution.

Features

  • Load RLX bundles (manifest.json + graph.json + weights.safetensors) or raw .onnx
  • Graph rewrites: DynamicQuantizeLinear input aliasing, ConvInteger / MatMulInteger → f32 ops
  • Broad ONNX op lowering (see src/bin/report.rs LOWERED_OPS)

CLI

cargo run -p rlx-onnx-import --bin rlx-onnx-import-report -- /path/to/bundle
cargo run -p rlx-onnx-import --features runtime --bin bundle-compile --release

Set RLX_ONNX_BUNDLE for bundle-compile. Use --quantize-bundle with the report tool for quant fusion rewrites (ImportOptions::quant_bundle()).

Tests

cargo test -p rlx-onnx-import

Optional raw ONNX tests: set RLX_ONNX_TEST_MODEL to a .onnx path.

License

GPL-3.0-only.