getitune-running-inference
open-edge-platform/geti/skills/library/getitune-running-inference/SKILL.md
Run inference and evaluation with a getitune model (the Geti training library). Use when a user wants to call `engine.predict()` / `engine.test()` or `getitune predict` / `getitune test`, run inference with a PyTorch checkpoint versus an exported OpenVINO IR (`.xml`) or ONNX (`.onnx`) model, or understand how `OVEngine` loads deployed models via ModelAPI. Covers PyTorch, OpenVINO, and ONNX inference backends.
What's in it
- Running inference with getitune
- PyTorch inference (trained model)
- OpenVINO / ONNX inference (exported model)
- Workflow
- CLI
- Related skills
---
name: getitune-running-inference
description: Run inference and evaluation with a getitune model (the Geti training library). Use when a user wants to call `engine.predict()` / `engine.test()` or `getitune predict` / `getitune test`, run inference with a PyTorch checkpoint versus an exported OpenVINO IR (`.xml`) or ONNX (`.onnx`) model, or understand how `OVEngine` loads deployed models via ModelAPI. Covers PyTorch, OpenVINO, and ONNX inference backends.
---
# Running inference with getitune
`getitune` runs inference through `engine.predict()` (per-item predictions) and
`engine.test()` (metrics on the test subset). The same calls work whether the
engine holds a **PyTorch** model or an **exported** OpenVINO/ONNX model — the
backend is selected from what you pass to `model=`.
Run everything from `library/`.
## PyTorch inference (trained model)
```python
from getitune.engine import create_engine
engine = create_engine(
model="efficientnet_b0",
data="/path/to/dataset",
)
test_metrics = engine.test() # metrics on the test subset
predictions = engine.predict() # predictions on the test subset
```
## OpenVINO / ONNX inference (exported model)
```python
from getitune.engine import create_engine
# OpenVINO IR — pass the .xml
ov_engine = create_engine(model="/path/to/exported_model.xml", data="/path/to/dataset")
ov_engine.test()
ov_engine.predict()
# ONNX — pass the .onnx
onnx_engine = create_engine(model="/path/to/exported_model.onnx", data="/path/to/dataset")
onnx_engine.test()
onnx_engine.predict()
```
Passing an `.xml` or `.onnx` path builds an `OVEngine`, which loads the model via
[ModelAPI](https://github.com/open-edge-platform/model_api).
## Workflow
1. **Pick the model surface.** Use a model name/checkpoint for PyTorch inference,
or an exported `.xml`/`.onnx` for deployed inference.
- Done when: `create_engine(...)` returns the expected engine type.
2. **Point `data=` at a dataset with a test subset** (see
`getitune-preparing-datasets`).
- Done when: `engine.test()` runs without a data/format error.
3. **Run `test()` for metrics or `predict()` for per-item outputs.**
- Done when: metrics are produced, or predictions are returned for each item.
4. **Compare backends when validating an export.** PyTorch vs OpenVINO/ONNX
metrics should closely match (small numeric drift is expected).
- Done when: exported-model metrics are within tolerance of the PyTorch model.
## CLI
```bash
# from library/
getitune predict --data_root /path/to/dataset --model efficientnet_b0
getitune test --data_root /path/to/dataset --model /path/to/exported_model.xml
```
## Related skills
- `getitune-exporting-a-model` — produce the `.xml`/`.onnx` used here.
- `getitune-optimizing-a-model` — run inference with an INT8 quantized model.
- `getitune-preparing-datasets` — the `data=` half of inference.
More agent context in open-edge-platform/geti
19 other files this repository gives its agents.
AGENTS.md
CLAUDE.md
Copilot instructions
Skill
- geti-annotating-and-managing-labelsskills/application/geti-annotating-and-managing-labels/SKILL.md
- geti-backend-devskills/application/geti-backend-dev/SKILL.md
- geti-docs-updateskills/application/geti-docs-update/SKILL.md
- geti-import-export-datasetsskills/application/geti-import-export-datasets/SKILL.md
- geti-openapi-syncskills/application/geti-openapi-sync/SKILL.md
- geti-runtime-configuring-inference-pipelineskills/application/geti-runtime-configuring-inference-pipeline/SKILL.md
- geti-runtime-running-live-inferenceskills/application/geti-runtime-running-live-inference/SKILL.md
- geti-ui-devskills/application/geti-ui-dev/SKILL.md
- geti-using-the-pipelineskills/application/geti-using-the-pipeline/SKILL.md
- geti-library-devskills/library/geti-library-dev/SKILL.md
- getitune-discovering-modelsskills/library/getitune-discovering-models/SKILL.md
- getitune-exporting-a-modelskills/library/getitune-exporting-a-model/SKILL.md
- getitune-optimizing-a-modelskills/library/getitune-optimizing-a-model/SKILL.md
- getitune-preparing-datasetsskills/library/getitune-preparing-datasets/SKILL.md
- getitune-training-a-modelskills/library/getitune-training-a-model/SKILL.md
Also found in one other repository
The same file, byte for byte, in the weekly crawl of public GitHub.
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
Reports can't be read right now.
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

