getitune-optimizing-a-model
Skill8 starsChanged 6 days agoApache-2.0View on GitHub
Optimize an exported getitune model (the Geti training library) with post-training quantization. Use when a user wants to run `OVEngine.optimize()` / `engine.optimize()` to produce an INT8 model via NNCF, understands calibration-set requirements, or needs to re-validate and run inference with a quantized model versus the original FP32/FP16 model. Covers OpenVINO NNCF post-training quantization and the accuracy/size trade-off.
2 other projects use a version of this.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Most recently taken up by
- open-edge-platform/training_extensionsword for word, first seen Nov 2, 2026
- open-edge-platform/getiword for word, first seen Nov 2, 2026
Other versions2 projects use a version of this.
Word for word · 2
- open-edge-platform/geti★ 1.4k100% same
- open-edge-platform/training_extensions★ 1.4k100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository38 other files it gives its agents.
- anomalib-adding-a-datamoduleSkill
- anomalib-adding-a-modelSkill
- anomalib-benchmarkingSkill
- anomalib-tiled-ensembleSkill
- anomalib-trainingSkill
- chatqna-docker-deploySkill
- chatqna-helm-deploySkill
- dlsps-userSkill
- dlstreamer-coding-agentSkill
- getitune-discovering-modelsSkill
- getitune-exporting-a-modelSkill
- getitune-preparing-datasetsSkill
- getitune-running-inferenceSkill
- getitune-training-a-modelSkill
- geti-using-the-pipelineSkill
- manufacturing-ai-app-builderSkill
- manufacturing-app-recipeSkill
- metro-ai-app-builderSkill
- metro-ai-app-recipeSkill
- model-download-userSkill
- multimodal-dataprep-userSkill
- multimodal-embedding-serving-userSkill
- openedge-cliSkill
- pai-benchmark-policySkill
- pai-configure-inferenceSkill
- pai-export-policySkill
- pai-load-policySkill
- pai-run-policySkill
- pai-train-policySkill
- pai-work-with-datasetsSkill
- scenescape-setupSkill
- time-series-analytics-userSkill
- uav-mission-compute-sdkSkill
- vss-deploy-helmSkill
- vss-deploySkill
- vss-search-indexSkill
- vss-summarize-videoSkill
- skill-nameSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Run everything from libraries/getitune/.
- Very specific: line 45
After optimize() the engine holds the INT8 model.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Optimizing (quantizing) a model with getitune
getitune applies post-training quantization (PTQ) via
NNCF to shrink an exported OpenVINO
model and speed up inference. Quantization runs on an OpenVINO model (an
exported .xml), producing an INT8 version.
Run everything from libraries/getitune/.
Workflow
from getitune.engine import create_engine
# Load an exported OpenVINO model, then quantize it
ov_engine = create_engine(
model="/path/to/exported_model.xml",
data="/path/to/dataset",
)
ov_engine.optimize() # INT8 post-training quantization via NNCF
int8_metrics = ov_engine.test() # validate the quantized model
predictions = ov_engine.predict() # run inference with the quantized model- Start from an exported OpenVINO model (
.xml). If you only have a checkpoint, export it first with thegetitune-exporting-a-modelskill.- Done when:
create_engine(model="....xml", data=...)builds anOVEngine.
- Done when:
- Provide a calibration dataset. Calibration images are taken automatically
from the training subset; 200-500 images is the recommended calibration size.
- Done when:
optimize()runs without a "not enough calibration data" issue.
- Done when:
- Run
optimize(). This replaces the engine's model in place with the INT8 version.- Done when: the call completes and subsequent
test()/predict()use INT8.
- Done when: the call completes and subsequent
- Re-validate accuracy with
test()and compare against the FP32/FP16 baseline; a small accuracy drop is expected in exchange for size/latency.- Done when: the INT8 metric is within your acceptable tolerance of baseline.
Comparing against the original model
After optimize() the engine holds the INT8 model. To re-check the original
FP32/FP16 model, either pass the original .xml path directly to .test() /
.predict(), or create the engine again from the original .xml.
Notes
- Quantization is OpenVINO/NNCF-based and applies to exported IR models — it is not a training-time step.
- Only OpenVINO IR (
.xml) is supported. An ONNX model must be converted to OpenVINO IR first before it can be optimized. - In the Geti application this is exposed as the
quantizejob (application/backend/app/execution/quantization/); libraryoptimize()is the same capability without the job/queue wrapper.
Verify
# from libraries/getitune/
just lint
just test-unit -- -k optimize # when you touched optimization codeRelated skills
getitune-exporting-a-model— produce the OpenVINO.xmlto quantize.getitune-running-inference— run inference with the quantized model.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

