agentleFS
open-edge-platformopen-edge-platform/training_extensions/skills/getitune/getitune-optimizing-a-model/SKILL.md

getitune-optimizing-a-model

Skill1.4k starsChanged 17 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

Week of Sep 13: 0 new projectsWeek of Sep 20: 0 new projectsWeek of Sep 27: 0 new projectsWeek of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projects
Sep 2026Oct 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Most recently taken up by

Who's talking about open-edge-platform/training_extensions

The biggest 5 of 50 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 50

Talked about on GitHub (50 times).

On GitHub · 50

45 more on GitHub

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
  1. Very specific:

    Run everything from libraries/getitune/.

    line 13
  2. Very specific:

    After optimize() the engine holds the INT8 model.

    line 45

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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
  1. Start from an exported OpenVINO model (.xml). If you only have a checkpoint, export it first with the getitune-exporting-a-model skill.
    • Done when: create_engine(model="....xml", data=...) builds an OVEngine.
  2. 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.
  3. 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.
  4. 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 quantize job (application/backend/app/execution/quantization/); library optimize() is the same capability without the job/queue wrapper.

Verify

# from libraries/getitune/
just lint
just test-unit -- -k optimize      # when you touched optimization code

Related skills

  • getitune-exporting-a-model — produce the OpenVINO .xml to quantize.
  • getitune-running-inference — run inference with the quantized model.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.