计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
onnx-and-model-io【效率与协作】Use Hummingbird's ONNX backend, ONNX-ML source conversion, and container save/load workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task mentions ONNX output, ONNX-ML input models,
onnxmltools, skl2onnx, onnxruntime, ONNXContainer, saving a Hummingbird
model, loading a saved digest, or deciding whether override_flag=True is safe.
hummingbird.ml.convert(...) or
convert_batch(...) call shape, route to
../core-conversion/SKILL.md first and return
here for ONNX-specific dependency, tracing, and artifact choices.test_input and use backend="onnx"; read
references/onnx-workflows.md.ModelProto inputs produced by onnxmltools or skl2onnx,
check the ONNX-ML recipe and schema limits in
references/onnx-workflows.md.save()
whenever possible; use override_flag=True only for trusted artifacts. Read
references/model-io.md.references/troubleshooting.md before
changing backends or bypassing integrity checks.Run scripts/onnx_conversion_smoke.py to
validate a small ONNX backend conversion without relying on source notebooks or
tests:
python scripts/onnx_conversion_smoke.py --json
python scripts/onnx_conversion_smoke.py --onnxml --json
python scripts/onnx_conversion_smoke.py --output hb_onnx_demo --json
The default smoke trains a tiny deterministic sklearn classifier, converts it to
Hummingbird's ONNX backend, and asserts label/probability parity. --onnxml
adds an ONNX-ML source-model check when onnxmltools/skl2onnx are importable.
--output is the only mode that writes an artifact.
onnxruntime container behavior.test_input behavior.constants.ONNX_TARGET_OPSET and constants.ONNX_OUTPUT_MODEL_NAME usage.ONNXContainer, TorchContainer, TVMContainer, and generic
hummingbird.ml.load save/load semantics.predict, predict_proba,
transform, decision_function, and score_samples.convert_batch: ../core-conversion/SKILL.md.../optional-source-models/SKILL.md.../advanced-backends-and-performance/SKILL.md.onnx alone as sufficient for Hummingbird ONNX inference;
onnxruntime must be importable for ONNXContainer prediction and loading.digest=save_return_value; use override_flag=True only after an explicit
trust decision.